Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
training:using_xbee [2016/06/30 06:38]
aobatake created
training:using_xbee [2021/09/19 21:59] (current)
Line 8: Line 8:
 2 Xbee USB Explorer Board(with cables)\\ 2 Xbee USB Explorer Board(with cables)\\
 1 Arduino with Xbee Shield(or Bare Arduino with Xbee Breakout Board)\\ 1 Arduino with Xbee Shield(or Bare Arduino with Xbee Breakout Board)\\
-Download XCTU and Xbee Arduino Library ​+Download ​[[https://​www.digi.com/​products/​xbee-rf-solutions/​xctu-software/​xctu|XCTU]] and the [[https://​github.com/​andrewrapp/​xbee-arduino|Xbee Arduino Library]]. 
  
 ==== Xbee Communication ==== ==== Xbee Communication ====
Line 26: Line 26:
  
 ==== Xbee & Arduino ==== ==== Xbee & Arduino ====
-Go to the config page of your Router Xbee and note the High and Low Destination Address(Should be 0 by default, I change it to High:0, Low:​FFFF).\\+Go to the config page of your Router Xbee and note the High and Low Destination Address(Should be 0 by default, I change it to High:0, Low:FFFF). Make sure the High and Low Destination Addresses are the same for both XBees.\\
  
 Set up the Router Xbee on the Arduino shield and connect it to your computer. \\ Set up the Router Xbee on the Arduino shield and connect it to your computer. \\
 Open the Arduino IDE and open the sketch "​Series2_Tx"​ example from the Xbee Library.\\ Open the Arduino IDE and open the sketch "​Series2_Tx"​ example from the Xbee Library.\\
  
-Change the line"​XBeeAddress64 addr64 = XBeeAddress64(0x0013a200,​ 0x403e0f30);"​ to include your address that you noted earlier. For example, for my high and low I would insert "​XBeeAddress64 addr64 = XBeeAddress64(0x0,​ 0xFFFF);//+Change the line"​XBeeAddress64 addr64 = XBeeAddress64(0x0013a200,​ 0x403e0f30);"​ to include your address that you noted earlier. For example, for my high and low I would insert "​XBeeAddress64 addr64 = XBeeAddress64(0x0,​ 0xFFFF);\\
  
 Open the the Coordinator that is still open in XCTU and upload the sketch to the Arduino.(Note:​ On the Xbee shield there is a switch that has two sides, UART and DLINE. When you upload the sketch to the Arduino the switch needs to be on DLINE or else it won't upload. Switch it back to UART after the sketch uploads);\\ Open the the Coordinator that is still open in XCTU and upload the sketch to the Arduino.(Note:​ On the Xbee shield there is a switch that has two sides, UART and DLINE. When you upload the sketch to the Arduino the switch needs to be on DLINE or else it won't upload. Switch it back to UART after the sketch uploads);\\
  • training/using_xbee.1467268680.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)