Arduino to DWIN Display Serial communication issue

I have 5 inch DWIN display Model Number : DMG80480C050-03WTC
connected to Arduino Uno
When I connect RX TX to arduino I am able to get data but the data starts with 0000 instead of 0X5A
The data in the serial monitor is attached as image

// https://www.youtube.com/watch?v=UIH0ghxAj4Q
unsigned char Buffer[9];
//byte ledon[]={0X5A,0xA5,0x06,0x83,0x55,0x00,0x01,0x00,0x01};
//byte ledoff[]={0X5A,0xA5,0x06,0x83,0x55,0x00,0x01,0x00,0x00};
int led=10;
void setup() 
{
  Serial.begin(115200);
  pinMode(led, OUTPUT);
  digitalWrite(led,LOW);
  Serial.println("Touch 1 on DWIN to ON LED , 0 to OFF....");
}

void loop() 
{
 //Serial.write(ledon,8);
 if(Serial.available())
  {
  //  Serial.println("inside avaailable");
    for(int i=0;i<=8;i++)   //TO store whole frame in buffer array. 0X5A A5 06 83 55 00 01 00 01 For ON
    {
  // Serial.print(i);
   // Serial.println();
    Buffer[i]= Serial.read();
    Serial.println( Buffer[i]);
  //  Serial.println();
    }
   //  Serial.print(Buffer[0]);
    if(Buffer[0]==0X5A)
      {
        switch(Buffer[4])
        {
       
          case 0x55:  //for led
            if(Buffer[8]==1)
            { digitalWrite(led,HIGH);
              Serial.println("led on");
              //Serial.write(ledon,8);
               }
            else
            {digitalWrite(led,LOW);
              Serial.println("led off");
               //Serial.write(ledoff,8);
             
              }
            break;
            
      
          default:
           Serial.println("No Data");
           break;
        }
    }
  }
delay(10);
}

CIRCUIT CONNECTION
DWIN 5 INCH --- ARDUINO UNO
RX2 TO TX
TX2 TO RX
GND TO GND
VCC TO VCC

REFERENCE VIDEO:- https://www.youtube.com/watch?v=UIH0ghxAj4Q&list=PL0SrfCGiNprSMUgAoekA-BJOxJpuw_Gj5

Please read the topic:

and then redo your topic giving information so that we can be able to help you.

sorry for that now im updated kindly please us to crack this!

Hi @ashwin21 ,

I cannot support to solve your problem as I do not have access to these displays. However there seems to be a comprehensive document from the manufacturer:

Unfortunately the link to the PDF doesn't copy...
Please google for

and
T5L_DGUSII Application Development Guide

Maybe that it can be of assistance...

Good luck!

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