Go Down

Topic: Serial Communication (Read 654 times) previous topic - next topic

Hello, I know how to use the serial communication of the Arduino. I have this 12 Byte Hexadecimal number I want to send through the serial of the Arduino and I don't how to do so. The number is AA0Dh, 00h, 00h, 00h, 00h. Any suggestions on how to do so?

Thank You

Osgeld

http://arduino.cc/en/Reference/Serial
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

Graynomad

Reading some documentation would be a good start, meanwhile here's a hint

Serial.write (0xAA);

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Thank you Rob for replying back, I know how to use the serial of the Arduino but I had some problems with sending HEX numbers through the Arduino. Thank you again for your reply it helped alot

Osgeld

Serial.write(0x00); barfs up an error use

Serial.write(byte(0x00));
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

Go Up