Offline
Newbie
Karma: 0
Posts: 8
|
 |
« on: November 13, 2012, 11:35:15 pm » |
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
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3617
@ssh0le
|
 |
« Reply #1 on: November 13, 2012, 11:56:06 pm » |
|
|
|
|
|
Logged
|
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
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #2 on: November 14, 2012, 11:47:41 am » |
Reading some documentation would be a good start, meanwhile here's a hint
Serial.write (0xAA);
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #3 on: November 15, 2012, 02:07:10 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3617
@ssh0le
|
 |
« Reply #4 on: November 15, 2012, 07:37:46 pm » |
Serial.write(0x00); barfs up an error use
Serial.write(byte(0x00));
|
|
|
|
|
Logged
|
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
|
|
|
|
|