Nextion display not communicating with ESP32-S3 and Arduino Nano Every

So I'm new here and I hope I'm doing this right. Here's what's going on. I'm trying to use a ESP32-S3 to print to a Nextion display and it does not seem to want to work with me. It also will not work with my Arduino Nano Every. The funny thing is it works great with my Arduino Uno and my ESP32. But for some reason with the ESP32-S3 and Arduino Nano Every nothing. The wiring and code could not be simpler. As for the wiring GND to GND, 5V to 5V, RX from the boards to TX of the Nextion and lastly TX from the boards to RX of the Nextion. Just as you would think. Below is the code exactly as I'm testing it. As you can see t0 is the text box on the Nextion I'm printing to. Like I said, VERY simple. Any advice would be greatly appreciated!

void setup() {
  Serial.begin(9600);
}
void loop() {
  Serial.print("t0.txt=\"Testing"
               "\"");
  Serial.write(0xff);
  Serial.write(0xff);
  Serial.write(0xff);
  delay(500);
  Serial.print("t0.txt=\"1,2,3"
               "\"");
  Serial.write(0xff);
  Serial.write(0xff);
  Serial.write(0xff);
  delay(500);
}

Again, of the 4 boards I'm working with, 2 work GREAT and 2 NOT at all. My end goal is to use the ESP32-S3 in my project. But I am very curious as to why the Arduino Nano Every is not working as well.

The Nano Every should be communication over Serial1 on pins 0 and 1.

The esp32 should also be using one if its hardware serial ports.

Serial in both those devices is usb serial.

1 Like

Frist all GREAT job on the that call for the Nano Every!! I tried this code below. Added the 1 behind Serial.

void setup() {
  Serial1.begin(9600);
}
void loop() {
  Serial1.print("t0.txt=\"Testing"
               "\"");
  Serial1.write(0xff);
  Serial1.write(0xff);
  Serial1.write(0xff);
  delay(500);
  Serial1.print("t0.txt=\"1,2,3"
               "\"");
  Serial1.write(0xff);
  Serial1.write(0xff);
  Serial1.write(0xff);
  delay(500);
}

But unfortunately, this did not work for my ESP32-S3.

My regular ESP32 works without the 1 after Serial.

I was almost ready to get you a coffee. lol :joy:

I really need the Nextion to work with the ESP32-S3. If you have any other ideas, PLEASE let me know and I will try it.

1 Like

Never mind! Because of the AWESOME suggestion from cattledog above. I decided to try putting a 0 behind Serial and it work great. So again thank you cattledog!

1 Like

hai cole.. i having similiar trouble with esp32.. can i take a look at ur complete code for referrence?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.