- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to draw graphics with psoc using Nextion.but I couldn't find out how. Have friends who have worked previously with the nextion?I would be glad if you help me in this regard.
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I looked at the file you sent. but I could not run. I connected the signal I want to see on p1[4] and p1[5]. 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
I used Nextion Editor v0.53 for my display (NX4024T032_011)
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
p.s.
I downloaded and checked the project - baudrate match (115200) everything works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I changed PSoC bits per second 115200. p1 [4] and p1 [5] have connected the signal generator. but it still does not work. what else can I do to work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ı dont have a USB-> UART_TTL converter. what is the converter required for? I am doing loading with sd card to the nextion screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you explain this code
sprintf(test,"add 3,0,%03d\xff\xFF\xFF",128-(i>>1));
NEXTION_UART_PutArray( (uint8*)test, 14);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Tags:
- waveform