Let me start off by saying that I’m a newb.
I am taking an introduction to robotics class and for my final project I am turning my currently lego-Arduino Uno robot into a remote control. Simultaneously, I’m working on a project for another class where we will eventually be required to set up a ZigBee network using XBee Series 2 modules. I decided, "hey, why not kill two birds with one stone by familiarizing myself with these early–while making a cool RC car for my project?’ Now, about 48 sleepless hours later, I’m regretting not going with the “plug-and-play” XBee S1 chips for this project that is due next Thursday.
Here is my hardware:
~The two XBee S2 modules are: https://www.sparkfun.com/products/10414
~I’m using an XBee Serial USB: https://www.sparkfun.com/products/8687
~I was using the Explorer Regulated (https://www.sparkfun.com/products/11373) but had a bit of a soldering incident, so now I am using a Seeed Studio:http://www.seeedstudio.com/depot/xbee-shield-p-419.html.
~I have access to two Arduino Uno’s: https://www.sparkfun.com/products/11021
~The two motors are Lego XL motors (http://shop.lego.com/en-US/LEGO-Power-F … Motor-8882) driven from an ArduMoto board: https://www.sparkfun.com/products/9896
Here are my questions/problems.
FIRST: A question about the XBee Serial USB Board:
After I initially fried my Explorer Regulated board, I tried simply hardwiring BOTH XBees into my Arduino Unos using the 3.3V output, ground, RX and TX, and hardwiring in the reset pin to ground on the Unos. This worked great! I was able to make one XBee set to Router AT mode, talk to another XBee set to Coordinator AT using the terminal in the X-CTU program. I then tried hooking one of the XBees–into the remaining Serial USB board–into the Arduino Uno in the same fashion (5V (I also tried the 3.3V pin), ground, RX and TX), so I could monitor the boards LED for transmission confirmation. When I used the Serial USB board WITH the Uno, X-CTU would not recognize it. Not sure what’s up with that… I’d like to be able to have the LED confirmation lights, while still using the Arduino to power the XBee.
SECOND: Those… strange… data packets/no data transmission:
I decided to go buy the Seeed Studio shield from RadioShack, and was quickly able to get that working so I could see the LED showing connectivity between the two, from one unit at least. Using the LED’s on this for connectivity and my two Arduino Uno’s as serial adapters, I was able to transmit data from one Arduino Uno to the other and display it on the Serial Monitor (still with one as a Router in AT mode, and another as a Coordinator in AT mode). Then, I tried to do this tutorial: http://www.youtube.com/watch?v=CzH146rR-7I where he uses an Arduino Uno connected to an XBee in Coordinator API mode, wirelessly talking to an XBee set in Router AT mode to turn an LED connected to the XBee Router on and off simultaneously making the LED on the transmitting (coordinator end) Uno turn on and off. I followed his example thoroughly, made the LED on the Arduino turn on and off, the transmission light on the Seed shield tell me it was transmitting, but nothing happened on the other end… After doing hours of research, I’m GUESSING it has something to do with knowing nothing about the data packages, addresses and all. However, I did set my modules up exactly as he did, and wrote my code to perfectly match his, so I don’t know where I could be going wrong.
My end goal, hopefully before next week is to get the two XBees to communicate, allowing me to drive the car forward, backwards, turn right and left using my laptop, via either X-CTU or the Arduino compiler, but without being able to get my XBees to work I have ABSOLUTELY no idea where to start. :o