I looked at the file you sent. but I could not run. I connected the signal I want to see on p1 and p1. I connected tx and rx. I installed the program on psoc. but there is no change on the nextion screen. Where can I be doing wrong?
Everything is a little more complicated. Nextion is a device with a program inside.
This program creates an image on the screen and serves your actions.
PSoC simply provides and receives data by communicating with this program.
The process is as follows:
In my archive you will find a program for display: test_V053.HMI
You have to rework it for your display and upload it to your Nextion.
You will see the image on the screen.
After that you can connect the PSoC and watch it communicate with the display program.
I made the stages you said one by one.I see the screenshot you share on the LCD screen.
But the graphical change is not on the LCD display.
I loaded the display and checked it with my program (LabVIEW)
nextion baudrate = 115200 but PSoC baudrate = 230400 it seems they do not match.
hmm ... i forgot how to install baudrate in nextion (
Try changing the baudrate in PSoC to 115200
You can see messages from nextion in the UART by pressing the buttons using any terminal (I use hercules_3-2-8).
I downloaded and checked the project - baudrate match (115200) everything works.
I changed PSoC bits per second 115200. p1  and p1  have connected the signal generator. but it still does not work. what else can I do to work?
The picture looks a little different (offset up). Version should remain v0.53
Let's check in parts:
send your project file for Nextion Editor * .HMI
My nextion editor is v0.53. I'm loading the nextion screen as *.tft not *.hmi . I see the file I downloaded on the screen.I tried the test file and the graphic file, but there is no change on the screen. did you run these files yourself? I can't find where I made a mistake.
Yes, I checked PSoC5LP_NEXTION_test.zip it works.
It seems you have problems with UART.
Check the fill 10,50,150,150,RED command on the Nextion Editor simulator
Do you have a USB-> UART_TTL converter?
ı dont have a USB-> UART_TTL converter. what is the converter required for? I am doing loading with sd card to the nextion screen.
You can use the USB-> UART_TTL converter to test connectivity with NEXTION and PSoC.
CY8CKIT-059 PSoC 5LP has a USB-> UART_TTL converter (P12.7 = Tx P12.6 = Rx)
For example, you should see the result of pressing the button
You can just use half of the psoc 5 board (the kitprog) to communicate between the PC and he screen for testing and programming the screen, the kitprog is a USB bridge too
The pins you select must be RX to TX and TX to RX from screen to board
I found out where the problem is.Thank you very much for your help. Finally I want to ask something.I want to draw current-voltage graph. do I use the current on the x axis?
can you explain this code
NEXTION_UART_PutArray( (uint8*)test, 14);
we fill the waveform component with data (127x255 pixels):
add id, ch, val \ xFF \ xFF \ xFF - for each point from 0 to 255
id = 3 waveform component ID
ch = 0 waveform component channel
val - simply sloping line Y = k * x () I chose 128- (i >> 1) should be in the interval (0 - 127)
sprintf inserts the value val in the form of three digits in the range 000 - 127
for example: add 3,0,123\xFF\xFF\xFF