I've been trying to get Bluetooth up and running on my project for quite a while now. The basic idea of the project itself is essentially a differential drive R/C car controlled via Bluetooth. There are two Arduino Uno's with a Bluetooth modem (http://www.sparkfun.com/products/10269
) on each. One Arduino takes analog joystick inputs, converts them to values for PWM, and sends the variables over BT. The other Arduino interprets those variables and outputs them to motor drivers.
The problems we're having:
I've looked all over at guides for the BT modems, but I can't seem to communicate with the modules. One by one, I successfully paired with the module on my netbook (green light on the module), found the COM ports, opened up hyperterminal, and tried sending "$$$", "+++", and just about every other command I could find without any response from the module. I'm going to try configuring the module with commands from the Arduino, but after that I'm out of ideas.
The problems I'm worried about:
Even if I get the BT modules communicating, I'm uncertain of how to set up the BT modules so they will pair and communicate with each other. I figure one needs to be set up as master, the other as slave, but that's close to the limit of my understanding.
I'm not sure of the most reliable way to send the data to the receiver. Before I get shut down on this one, I've searched through the forum and found a few examples, but I would like a better understanding on the logic behind the code. The most common instances I've seen have the sender constantly sending out variables followed by a null terminator, and the receiver filling up a buffer of the variables. How exactly does the receiver separate the variables out of the buffer?
Thank you in advance