hello everyone. i have some problem with serial communication............please help me
i want to send ascii data from PLC SERIAL port to arduino serial port. I have connected serial cable from plc to rs232 to ttl converter. TTL ouput of converter is connected to arduino rx tx pin correctly. i uploaded a blank sketch to arduino.some of the observation i point out below.
- when i send ascii character from plc to arduino it is receving correctly which i can see in serial monitor. 2.the tx light of converter which is connected to rx of arduino is blinking also. 3.when i remove the usb from pc and connect to external power supply and ascii data sent from PLC can be assumed by blinking led of converter.
- but when i write code Serial.begin(9600) in arduino sketch and trnsmit data from PLC then no light is blinking .i.e communication drops.
i am unable to findout the solution...pl help plc is set to 9600, 8bit, N, 1 and in arduino only serial.begin(9600)