2 Replies Latest reply on Apr 20, 2017 3:09 PM by Intel Corporation

    Communicate a lcd with edison arduino using uart

    Rachael_Lim

      Hi,

       

      I would like to use a 4.3' inch NX4827T043 Nextion touchscreen display with edison arduino. The connection of hardware is as follow:

      Nextion +5V to Edison 5V,

      Nextion RX to Edison TX (Pin1),

      Nextion TX to Edison RX (Pin0),

      GND connected to GND

       

      Then i uploaded a HMI which contains two numbers n0 on left, n1 on right to the Nextion Display

      i compiled the code as below using Arduino IDE and uploaded to Edison Arduino.

       

      It should alternate sending 123 and 456 between n0 and n1 on my lcd screen however i get no response. Please advice.

       

       

      [code]

      int i = {0}; 

      void setup() {

      Serial.begin(9600);

      Serial1.begin(9600); } 

       

      void loop() {

      i=1-i;

      if (i==0) {

      Serial1.print("n0.val=123ÿÿÿ");

      Serial1.print("n1.val=456ÿÿÿ"); }

      else {

      Serial1.print("n0.val=456ÿÿÿ");

      Serial1.print("n1.val=123ÿÿÿ");

      }

      delay(1000);

      }

      [\code]