0
votes

I have a USB 2 Serial adapter and the device is working fine. I see the device perfectly configured in my System.

I have connected the TX0 pin of Arduino to DB 2 pin (read pin) of the adapter. Below is my Arduino code:

int i = 0;
void setup()
{
  Serial.begin(9600);
}

void loop()
{
  for(i=0;i<6;i++)
  {
  Serial.write('H');
  delay(100);
  }
}

But when I try to read thru terminal software of data received at my COM port I see some junk character incoming. I am pretty sure that I am using same baud rate / flow setting both side. Why am I facing this issue - do I need to connect any other pins also as I just need to receive data at system side?

2

2 Answers

0
votes

You should connect the ground pin with the ground pin

0
votes

Arduino Communicate with Ur computer using pins 0 and 1( Tx0 and Rx0) you shouldn't be connected to the Tx0 pin to another serial device because arduino use it to communicate with computer. if you are using Uno. Check for Software Serial. and two grounds should be connected.