1. This project is based on the upgrade of the old physical therapy instrument in order to show a better experience to customers.

a. Add touch screen button function.

  • Through communication with Arduino serial port, realize the touch screen input to control the output of the product.

2. Upgrade the interface, add touch buttons to replace the silicone physical buttons and encoder on the right side of the product.

a. Make English pictures with the location of the touch buttons.

b. Import the picture into Tool4.3, make and configure normal buttons, incremental buttons and return value buttons.

3. Connect STVI056WT-01 serial screen and Arduino control board to realize programming control.

a. Connect the serial screen to the MCU.

b. Serial communication and control function programming.

c. Online debugging.

Planning as above, the next step is to do the specific work and solve the problems that will be encountered in the process of doing it.

First, make English pictures with touch button locations

That is, add the necessary buttons in each interface so that these buttons can achieve a reasonable jump between interfaces; there are also incremental buttons to adjust the output intensity instead of the encoder. Two examples are as follows.

Next, import the image into Tool4.3 and create three buttons

This will be done by continuing to watch the related videos and consulting the Tool software instruction manual that you downloaded last time. Of course, the point is to take good notes.

*General button. In Tool4.3 Tools menu Touch Configuration (M), select "Botton", or click on the button tool at "1" to create a button in the desired location, and fill in the "2" at the "botton effect" for the effective page location, "Page switch" for the jump page, you can complete the button jump function. The same button can be copied on different pages.

**Incremental button. Check "Incremental adjustment" in the Tool4.3 menu Touch Configuration (M) or click on the button tool at "1" in the figure to create a button at the desired location and fill in the "variable memory address" at "2" so that it is the same as the data variable address (0X0888); check the box" after the data automatically upload" at "3" to automatically upload changes to the serial port of the Arduino development board; select "the adjustment way" as "++" or "--"at "4"; in "5", fill in "adjust the step size" with a step value of 1; in "6", check the box "long-press quick adjust" to achieve long-press quick adjustment by touching the button.

*** Return value button. Check "Return pressed key-value" in the menu Touch Configuration (M) of Tool4.3 tool software, or click on the button tool in the picture as above, create a button in the desired location, and fill in the variable address and key value in the marker as above. Check the box to automatically upload the return value when pressed. The "test" button variable address is 0X0868, and the key value is changed to "0055" (0x0055); the "cure" button variable address is 0X0858, the key value is changed to "0066" (0x0066); the key test serial assistant returns the following values.

Next, connect the serial screen to the MCU.

By experience, a simple connection Arduino development board TX, RX, GND to the serial screen DIN, DOUT, GND, properly "enjoy" a failure. Quickly check the "Datasheet STVI056WT-01" pdf electronic file manual, on page 31 to find the serial screen circuit diagram, found that the screen interface DIN, DOUT signal is RS232. Also, check the "LY-F2 development board circuit diagram", it is obvious that Arduino development board TX, RX is directly from the microcontroller out of the TTL signal. The reason for failure is obvious, how to solve the problem? By the way, STONE comes with an adapter board, I was looking for a long time, but also has not seen the circuit diagram of the adapter board, so I drew a circuit diagram(manual...

Read more »