I made it work with this configuration :
xbee -> xbee shield -> arduino mega -> pc -> xctu with this configuration :
The program in the arduino should have an empty Setup() method and an empty loop() method.
xbee shield must have this configuration :
- jumper between XB_TX and DIGITAL on the line 1
- jumper between XB_RX and DIGITAL on the line 0
Run XCTU -> it will detect xbee and you will be able to use it.
Then, when you want to use your xbee with arduino IDE (in my case Arduino mega so I can use one of the 3 other hardware serial) :
- plug a jumper wire between xbee XB_TX and arduino TX1 (18) and a jumper wire between xbee XB_RX and arduino RX1 (19)
Then, use Serial1 as xbee serial in your arduino IDE code and it will work.
I made it simplier by first try to make an emitter with arduino IDE and test it with my other arduino plugged into XCTU.
Then, I made the code for receiver and tested with the other arduino plugged into XCTU.
Then, I pushed to code to both arduinos and it works standalone !
Statistics : Posted by shaopeng.zhang • on Mon Feb 02, 2015 5:20 pm • Replies 3 • Views 44
xbee -> xbee shield -> arduino mega -> pc -> xctu with this configuration :
The program in the arduino should have an empty Setup() method and an empty loop() method.
xbee shield must have this configuration :
- jumper between XB_TX and DIGITAL on the line 1
- jumper between XB_RX and DIGITAL on the line 0
Run XCTU -> it will detect xbee and you will be able to use it.
Then, when you want to use your xbee with arduino IDE (in my case Arduino mega so I can use one of the 3 other hardware serial) :
- plug a jumper wire between xbee XB_TX and arduino TX1 (18) and a jumper wire between xbee XB_RX and arduino RX1 (19)
Then, use Serial1 as xbee serial in your arduino IDE code and it will work.
I made it simplier by first try to make an emitter with arduino IDE and test it with my other arduino plugged into XCTU.
Then, I made the code for receiver and tested with the other arduino plugged into XCTU.
Then, I pushed to code to both arduinos and it works standalone !
Statistics : Posted by shaopeng.zhang • on Mon Feb 02, 2015 5:20 pm • Replies 3 • Views 44