Software apps and online services
Ok, my Nextion LCD can communicate with Arduino MEGA by Serial 2 ports. Nextion library and its examples allowed this. When I upload one of nextion example (like Compslider etc..) and connect it to my Mega by serial 2 ports it works.. but MEGA is so "MEGA", what about using my nextion LCD with UNO, Pro mini or Nano... when I tried same example with UNO Arduino IDE always gives error to me about serial connection.. sometihng wrong... something "deep inside" must be wrong.. :)
But firstly you can check this project to use Nextion LCD without SD card..
Thanks to @Spirko with this explanation..
- Firstly, open your Nextion library folder and find "Nexconfig.h" file.
and right click it and open with Notepad..
Find this line;
#define nexSerial Serial2
and change it with this lines,
#include <SoftwareSerial.h> extern SoftwareSerial HMISerial; #define nexSerial HMISerial
save it and close. Sure, you can keep old file with different name to use it with Mega in future.
Then open your Arduino nextion example..choose one of them..
and add this line to your code..
SoftwareSerial HMISerial(10, 11);
and its ready to compile and upload to arduino uno..
Use this connections:
Nextion - Arduino UNO
TX - 11
RX - 10
Now your Arduino UNO will communicate with Nextion LCD...
You can find my example nextion firmware and arduino code in this project..