Due with Nextion ?

Can I use a Arduino Due with a display Nextion ?

Thanks

I'm currently using a Nextion with an Arduino Due that I received in the mail last week. I'm even using the much hated by some "ITEADLIB Arduino Nextion" library. I'm using TX3 & RX3 (#define nexSerial Serial3 in NexConfig.h). I did have to add a delay of 5000 ms after initializing serial, which I expected on other boards but was surprised by needing to do so on this one.

One thing that I've learned about the Due in last couple of days is mine appears to be very sensitive on all serial connections (even at very low baud rates). I had to make sure, even though the Due is 3.3V, that I tied all the grounds together on all connected devices. So, even though I powered the Nextion via the 5V USB power board that comes with it, I also had to tie that negative to the GND pin on the Due to get rid of the noise. Otherwise I've seen tons of noise on all serial connections (including the Arduino IDE's Serial Monitor). On other devices, like the Uno and Leonardo, I can remove this common ground wire without issue.

I'm using my Due as a man-in-the-middle between my laptop and Arduino Uno running GRBL for a CNC I'm building. I have the Nextion displaying feed, speed, and both sets of working and machine coordinates in "real-time" as the GRBL sender on my laptop sends commands to the Uno. The Due intercepts and updates the display on the Nextion. I added my own NexFloat.cpp to deal with Nextion's float fields. Basically a copy of NexNumber.cpp with some very minor mods.

I've also found (in my particular case) that I needed the loop to be very tight... No delays(). Otherwise the nexLoop() call missed a ton of callback activations.

Best,
-Mark

Thank you very much !

What is the model ?

I'm using the small "Nextion Enhanced 2.4 inch Display NX3224K024 Resistive Touch Screen UART HMI LCD Module 320x240 + Acrylic Case Enclosure for Arduino Raspberry Pi". I purchased off of Amazon: https://www.amazon.com/gp/product/B07916W16L back in early May.

Best,
-Mark