Hello Everyone,
I recently purchased a NX8048T070_011 7" touchscreen. I downloaded some basic examples for using it and am able to upload the code to the screen. But I am having no success reading the the serial data with my Uno... I came across some the idea somewhere that a Mega works better than an Uno. So I tried my Mega.... But still no success.
I've tried "Serial" "Nextion" and "EasyNextion" methods of reading input but haven't had any success with any of them...
I think I am making a simple mistake like connecting the wrong pins or something. If someone would share what works for them even the most simple example would be appreciated.
Have you read this: Using Nextion displays with Arduino ?
The examples were tested on a Mega.
No way to know when you don't give any clues about how you connected it.
I checked out your tutorial. Thanks for the excellent set of instructions! I believe I had ran across it before but I do not have internet service on my personal computer so I downloaded some tutorials and only half of that one downloaded! I got your example up and running.... It didn't want to work right at first but then I changed the Nextion's power source from my phone charger to the Mega and presto! I later powered both from my phone charger and it still worked.... So I suppose the essential part is starting both at the same time?
I had ran across the this example and tried it out... I used your improved code then I opened Dyspho's example and changed it to my screen size, and connected the RX to the digital pin 10 and the TX to the digital pin 11, but couldn't coax any results from it....
That sounds to me like you didn't connect the ground / 0V between the Nextion and the Mega when you were using 2 different power supplies. No, they don't need to start at the same time, well, not with my code anyway.
I can't comment without more details, which means knowing exactly how you had it wired (schematic, not list of this connected to that) YOUR code exactly as you had it (code tags please) and your HMI file.
I edited your example that I had working from your tutorial. And came up with the below file... It works perfectly. I changes the picture every 5000 miliseconds. I think I am getting the hang of it. Thanks a lot for your time. And thanks again for your helpful tutorial.
ChangePic.zip (23.2 KB)
Thanks.
You will need to learn how to use millis for timing so your code is non-blocking. As it stands your code won't work well with my code due to the use of delay.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.