Nextion with Arduino

I have a problem that I have been struggling with for days, I am connecting a nextion NX8048T070 screen with an Arduino, I am using the Serial of my Arduino Uno and my idea is to change what a text box on the screen says, I have tried everything and no I get nothing, the text changes in the Nextion debug but not physically, what can I do?

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {

  Serial.print("t0.txt=");     // This is sent to the nextion display to set what object name (before the dot) and what atribute (after the dot) are you going to change.
  Serial.print("\"");          // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
  Serial.print("De entrada");  // This is the text you want to send to that object and atribute mentioned before.
  Serial.print("\"");          // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
  Serial.write(0xff);          // We always have to send this three lines after each command sent to the nextion display.
  Serial.write(0xff);
  Serial.write(0xff);

  delay(1000);
  
  Serial.print("t0.txt=");     // This is sent to the nextion display to set what object name (before the dot) and what atribute (after the dot) are you going to change.
  Serial.print("\"");          // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
  Serial.print("Apoco si");  // This is the text you want to send to that object and atribute mentioned before.
  Serial.print("\"");          // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
  Serial.write(0xff);          // We always have to send this three lines after each command sent to the nextion display.
  Serial.write(0xff);
  Serial.write(0xff);
  delay(1000);
}

I can't immediately see anything wrong with that.

Do you know that the serial port is shared with the serial monitor? If you open the serial monitor what is displayed there?
Can you post a photo of your set up? Make sure the photo clearly shows your wiring. Maybe 2 or 3 photos, close up for clarity, further away for context.

Thanks,

Sorry for not answering in a long time, I will post the photos of my connections shortly


For now I changed the text from nextion, but I haven't been able to get it to change with my Arduino code, I don't know if it has anything to do with the fact that my screen is basic

Is the Arduino ground connected to the Nextion ground?

Yes

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