Electronic – arduino – How to send data through XBee using ATMega328

arduinoatmegaxbeezigbee

I bought

  1. Seeeduino Stalker
  2. UartsBee
  3. Two XBees

When I physically connect (1), (2) and the computer USB, I can receive on my computer data sent by (1) at 115200 Kbps. But when I physically disconnect (1) and to (2), and link them again using the XBees the computer receives no data.

I noticed that in (1) the UART Tx and Rx are directly connected to XBee's Dout and Dint. But in (2) there are 1k resistors in each of those connections. Can such resistance be the cause of the problem?

The UartsBee is configured to use 3V, and I tested both connecting and disconnecting the DTR interrupt from the XBee to the ATMega328 (there is a jumper slot for it on (1)). The board is supplied with a 9V 200mA wall adapter. Both XBees were installed pointing the closest edges of the respective boards.

Best Answer

I think what I am missing is that the XBee's modules must be programmed both to send and to receive data. In the following thread there is someone claiming that acomplished that and posting some code which will run in a ATMega processor:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1223492621/all

I also found a tutorial of how to configure the XBee module using a graphical environment:

http://forums.trossenrobotics.com/tutorials/how-to-diy-128/xbee-basics-3259/

From what I read above, I tested it, and I finally established a connection, then I wrote a tutorial showing how I did it.

http://arduinolessons.blogspot.com/2010/10/how-to-use-xbee-module.html

Unfortunately not all data gets through though...

Since I'm using a XB24-B the following blog gave me some light:

http://lizard43.blogspot.com/2009/04/xbee-series-2-jv-channel-verification.html