This is used for and Android app I’ve been working on, which is based on Copter-GCS. The app, which I have dubbed the most original Android GCS, is a drone ground station that should work with any Mavlink enabled autopilots, but I have been testing it with an Ardupilot 2.
The bridge connects a Bluetooth serial radio to an XBee radio (or 3dr radio). The XBee provides a long range link to the airplane or ‘copter, and the Bluetooth provides the link to an android device. The great thing about this setup is that it allows you to easily connect any Bluetooth enabled computer as well, without switching cables, etc.
The setup works incredibly well. The only downside I found was my android phone heats up a bit from the intense Bluetooth connection, but I have not seen any big battery drain.
Parts List:
RN-41: Roving Networks Serial Bluetooth 2.0
XBee (I use 900mz, but any will work)
LD1117V33: 3.3v voltage regulator
0.1 uF and 10uF Capacitors
Adafruit XBee Adapter (Not absolutely needed for this setup, but I used it just for the pin breakout)
I etched my own board for this, since I hate having a rats nets of wires, so here’s the first draft:
Pretty hard to follow, huh? Ok, the RN-41 is the footprint on the bottom right, the power supply is on the bottom left, and the connection to the XBee is the top left. The power supply gives power and ground to thew RN-41, as well as the XBee. The TX from the XBee is connected to the RX of the RN-41, and vice-versa. I added plenty of pads for testing, expansion, as well as a connection indicator LED for the RN-41. It was a pain in the ass soldering the smd chip… those are tiny pads! I ended up ripping off the pads I wasn’t using so I didn’t bridge anything. If I did it again, this board would be slightly reconfigured, sent out for fab, and I would reflow the chip onto it, but this is a good prototype.
The next part is setting up the bluetooth. I only had to set the baud rate to 57k, and the RN-41 has a great set of AT commands. Linking with my android phone was easy, and there is a great set of instructions that accompanies this chip. The difficult part is this is a 3.3v part, and my TTL Serial supplies 5 volts. I ended up powering the chip with 3.3v through the circuit board, and attaching jumpers to tx and rx from my TTL cable.
To enter command mode on the RN-41: $$$<cr>
then to set to 57k: SU,57<cr>
That’s all you need to change, but I changed the device name (SN,<name>), added a security pin (SP,1234). Pairing is easy, just plug the RN-41 into power, scan for devices on your phone, and click on what it finds. If a pin is required, the default is 1234.
I made this bridge a while ago, but I recently added in a Y-splitter to the serial connection, and attached a arduino that listens to the serial stream, or transmits with the flick of a switch. I intend to add in an antenna tracker based on the arduino.