3/21/2021 0 Comments Send Rs232 Command Using Cmd
I have used Tx,Rx pins of with mini MAX3232 RS232 to TTL converter.
![]() Send Rs232 Command Using Cmd Code Is AsMy code is as shown below: void setup() Serial.begin(9600); void loop() Serial.print(040O0a1006); delay(1000).![]() That does not make sense as your program does not use SoftwareSerial. The Arduino Tx and RX pins are used by the hardware serial interface. Have the devices got a common GND connection What format is the data expected to be in on the device that you are sending it to Does it expect binary or ASCII data. Post in the forum then everyone will benefit from seeing the questions and answers. Below is my code. SoftwareSerial TRYSerial(10, 11); Arduino RX, Arduino TX void setup() TRYSerial.begin(38400); void loop() TRYSerial.println(040O0a3006.r); My Device expect ASCII data and all devices got common ground. ![]() Color sensor can detect 3 colors so it has 3 different commands to teach 3 colors which i want to send serially and thats why string sent in two codes are different because it is for different different output pins on color sensor. I tried the same i am using baud rate 38400 and also update you mentioned but still it is not working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |