Hello,
I am quite new to arduino, Currently i am using Arduino Uno board.I am trying to access RX and TX pins in the Arduino board, i tried to send a character using the serial monitor and the serial monitor shows the character that we exactly sends to it. But when take access of TX and connect it to pc using usb ,it shows completely different one.My program is attached along with this mail . Please help me to sort out this issue.
send recieved (TX)
a O
b '
c N
d null
e M
f &
g L
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data.
And, please include short programs directly in your Post like this so that people don't have to download your file
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
while(Serial.available()==0);
char c=Serial.read();
Serial.write(c);
}
thanks for your prompt replay...
Actually it works perfectly while using arduino serial monitor. The problem happens while communicating using RX and TX (0 & 1) pins with pc.