Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
weatherbox:team_quasar:basic_arduino_api_packet_sending [2016/03/06 01:49] jobatake created |
weatherbox:team_quasar:basic_arduino_api_packet_sending [2021/09/19 21:59] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== Packet Sending: to Arduino XBee ===== | ===== Packet Sending: to Arduino XBee ===== | ||
+ | Another short tutorial I followed to send packet to XBee Arduino: | ||
http://www.desert-home.com/2012/10/using-xbee-library.html | http://www.desert-home.com/2012/10/using-xbee-library.html | ||
+ | {{:weatherbox:team_quasar:arduinoxbeereceiving.png?200|}} | ||
===== Packet Sending: from Arduino XBee ===== | ===== Packet Sending: from Arduino XBee ===== | ||
You must download the XBee Library for Arduino! | You must download the XBee Library for Arduino! | ||
+ | ==== Packet Receiving XBee ==== | ||
+ | *Connect the RX XBee to XCTU | ||
+ | *Get the High and Low 64 Bit Address and write it down. It should most likely be 0 if you didn't change the original settings. This is different from your PAN ID. | ||
+ | |||
+ | ==== Packet Sending XBee ==== | ||
*Go to Arduino->File->Examples->XBee Library->Series2_Tx Example | *Go to Arduino->File->Examples->XBee Library->Series2_Tx Example | ||
*You must download it as a binary file | *You must download it as a binary file | ||
*Got to Arduino->Sketch-> Export File Binary | *Got to Arduino->Sketch-> Export File Binary | ||
+ | *Check it compiles | ||
+ | *Change the SH + SL Address of receiving XBee to the address you wrote down previously | ||
*Check it compiles and upload to the Arduino | *Check it compiles and upload to the Arduino | ||
+ | *Wire up board with Arduino and XBee (Make sure XBee TX goes to Arduino RX and XBee RX goes to Arduino TX) | ||
+ | |||
+ | ==== Bringing two components together ==== | ||
+ | *Open XCTU and go to the Console Log screen | ||
+ | *In Arduino, open the Serial Monitor | ||
+ | *You should receive a packet in XCTU and the XBee Serial Monitor should say it received data | ||
+ | |||
+ | CONGRATS! You sent a packet :D | ||
+ | {{:weatherbox:team_quasar:arduinoxbeesending.png?200|}} |