How To Add Bluetooth to your MultiWiiCopter
For not much more than $10, a Bluetooth adaptor is a cheap and easy way to get in-flight real time feedback from the onboard sensors and allows quick and easy modification to PID values via the MultiWiiConf software. Here's how to do it.
-
Buy a serial to bluetooth adaptor – "Serial Bluetooth RF Transceiver Module RS232 w/ Backplane Enable & State Pin". The one from goodluckbuy.com is simple and works fine with the Arduino.
-
Connect the USB FTDI adaptor to the BT adaptor. I used my breadboard wiring leads to hook up the pins in the following order.
-
FTDI BT VCC VCC GND GND TXO RXD RXI TXD - Connect the FTDI USB Adaptor to a PC. The BT adaptor should now be powered with a blinking red led. Before using it with an Arduino running muliwii software, the baud rate of the BT adaptor has to be changed to 115200 from the default 9600. Now this is the part that stumped me for ages and sent me off looking up forums, updating bluetooth stacks etc etc until I figured out what I was doing wrong. To configure the BT adaptor, you need it physically connected to the PC via the FTDI USB adaptor but you don't want to connect the PC to the BT adaptor …. yet. The BT adaptor can only be configured when it's in an un-connected state. In your "Bluetooth Places" you should be able to see the device (by default called "Linvor") but it should show "not connected") and the red light should be flashing on the BT adaptor.
- I used Advanced Serial Port Terminal to connect to FTDI USB. The AT commands must be copy and pasted to send to the device because it constantly polls and if you can't type fast enough to complete a command before it reads it in.
- Send the "AT" command. BT responds with "OK"
- Send "AT+NAMEMultiWiiCopter" to change the default from Linvor.
- Send "AT+BAUD8" to change the Baud rate to 115200.
- Now connect to the Arduino as per the connections in the table above.
- Run the MultiWiiConf software and choose the BT COM port.
- Now you can fly around and see the gyro and accelerometer inputs change while in flight!
I found a page with quite a lot of detailed information on the BT adaptor during my searches. While it's native language looks Chinese, the Google Chrome browser seems to do a pretty good job translating it.
9 Responses to “How To Add Bluetooth to your MultiWiiCopter”
Comment from Katch
Time 2 September, 2011 at 2:34 am
Followed your guide and got mine working perfectly thank you!
Comment from Kai
Time 2 September, 2011 at 7:38 am
Hi,
you dont use resistors for voltage division… I think Arduino has 5V and BT module 3.3V? Maybe it can burn the device?
Kai
Comment from Michael
Time 19 September, 2011 at 3:51 am
Hi, thank you for the information. first i tried to use the build in terminal program of th arduino software, but that is not working fully (cant set AT command for baud rate). so i switch to hercules 2.x from HWGroup and it works perfectly. also the BT stack on my Asus Netbook is not working well (cant pair the device), but the software on my android phone works like a charm. thats enough for me to change data on the fly.
Comment from mattmc
Time 19 September, 2011 at 7:42 am
I still have problems pairing with my laptop and it seems there is a very specific process for connecting, powering and starting the multiwiiconf software. I need to try with a different laptop or maybe a droid.
Comment from Williwaw
Time 22 October, 2011 at 6:12 am
Any other free options to Advanced Serial Port Terminal?
-Thanks
Comment from mattmc
Time 22 October, 2011 at 7:47 am
I’m pretty sure there is a demo version available to download that gets the job done.
Pingback from Frame black crow 4 et multiwii PFV – Modelisme.com
Time 14 November, 2011 at 12:03 pm
[...] Rien de mieux qu'un lien … @+ How To Add Bluetooth to your MultiWiiCopter | fangin.com [...]
Pingback from aiuto "configurazione"bluetooth x PID – Pagina 2 – BaroneRosso.it – Forum Modellismo
Time 12 February, 2012 at 2:55 am
[...] RXI TXD Ho trovato tutto in questo sito (forse postato sul barone o su rcgroup, ora non ricordo): How To Add Bluetooth to your MultiWiiCopter | fangin.com Spero di esservi stato utile. p.s. non ho inventato niente io, ho solo cercato in rete [...]
Comment from ThorstenS
Time 18 August, 2011 at 8:11 pm
wow nice, thanks for sharing!
/thorsten