BT on MultiWii

Post Reply
dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

BT on MultiWii

Post by dale.e »

Ok, I got myself my first MW from HobbyKing, the new SE V2 it came with MW 2.1 on it tho.
no biggie, I am getting into this, got how to flash and make changes to sketch etc.
SO I orderd some toys for it, a GPS and a I2C board, they are another story....

I got a Crius Bluetooth board from an Ebay seller.
this one : http://www.ebay.ca/itm/261097262124?ssP ... 1497.l2649

so how hard could it be? most everything I find says works in a few easy steps right?

1) remove USB FTDI adaptor from MWC
2) plut BT adaptor into UART port.(plug in battery now)
3) pair with device
4) tell software what port to use
5) enjoy

ummm nope, did not go like that, actually it just plain wont work. I can pair my laptop BT to it, device shows up as HC-07 and pairs with code "1234" device manager shows it on com 14
aim the multiwii configure software at that port, and it appears to connect, everything goes green, click start. Everything is flat lines, nothing comming in from BT
do I have to change something in the scetch for baud rate to the uart or something?

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: BT on MultiWii

Post by Hamburger »

1. Set baudrate of bt to 115200
2. Swap rx.tx lines

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »

Hamburger wrote:1. Set baudrate of bt to 115200
2. Swap rx.tx lines


I have switched rx.tx lines back an forth many times and tried 115,200 as well.
is the port rate of the BT chip set from the MW Sketch?
if so that is set to 115200 and my laptop port is set to 115200
also tried 9200 on both settings

I think I must have a bad BT or MW

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: BT on MultiWii

Post by Hamburger »

dale.e wrote:
Hamburger wrote:1. Set baudrate of bt to 115200
2. Swap rx.tx lines


I have switched rx.tx lines back an forth many times and tried 115,200 as well.
is the port rate of the BT chip set from the MW Sketch?
if so that is set to 115200 and my laptop port is set to 115200
also tried 9200 on both settings

I think I must have a bad BT or MW


you must manually set the baud rate on the cable serial side of the bt to 115200 (once). There is no automatic vodoo doing it for you - too many different BT module types out there;

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »

ok, is this the uart speed in the config.h you are refering to? as below?

/*************************************************************************************************/
/***************** ***************/
/**************** SECTION 5 - ALTERNATE SETUP *******/
/***************** ***************/
/*************************************************************************************************/

/****** Serial com speed *********************************/
/* This is the speed of the serial interface */
#define SERIAL_COM_SPEED 115200

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »

I dont think the BT module operates at 115200.
is there a way to configure the module itslef?

jef79m
Posts: 23
Joined: Sun May 06, 2012 11:38 am

Re: BT on MultiWii

Post by jef79m »

use the ftdi adaptor to connect to teh bt module. start a terminal session to that serial port (not via bluetooth). issue some command to set the bt serial side to 115200. (AT+BAUD8) or something.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: BT on MultiWii

Post by PatrikE »


dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »



will try this as soon as I get home!

thanx guys!

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »

score!!!
I knew it was some simple thing.

thanx all and special thanx to PatrikE for maintaining that 'how to'

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »

rather than open a new thread for another BT question I decided to tack it into here.

can I upload a new scetch via Arduino 1.01 through the BT?
I was going to try it last night but the Arduino software wont see my BT com port?
WinGUI and MultiWiiConf_2_1 are connecting to the port and working via BT fine.
and yes, I shut them down b4 I tried to ensure the port is not in use :)

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: BT on MultiWii

Post by PatrikE »

Short answer....
No....
The programmer resets the Ardu before uploading.
BT don't have that much function.

But.
It may work if you manually press reset when the led on Ardu blinks shortly before uploading starts.
I we never tried though.

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: BT on MultiWii

Post by dale.e »

ic ok, no worries. there is not reset on this one :) in a few weeks I get a wireless setup thats on its way now:
http://shop.ciseco.co.uk/erf-0-1-pin-sp ... io-module/
as well as its USB counterpart for the ground station to work with.

as it turns out, it looks like rctimer has a better and less expensive alternitive, albiet with much larger antenne.

that will do it :)
on the good news side, my quad left the ground today, maiden flight was smooth!

tj_style
Posts: 12
Joined: Mon Aug 27, 2012 5:31 pm

Re: BT on MultiWii

Post by tj_style »

PatrikE wrote:Short answer....
No....
The programmer resets the Ardu before uploading.
BT don't have that much function.

But.
It may work if you manually press reset when the led on Ardu blinks shortly before uploading starts.
I we never tried though.

Actually we can use unused pin for reset pin, i use PIO11 (with capacitor) to act as reset pin.
Btw i'm using hc-05 module only, without backplane.

I see other people have done too on using bluetooth for programming arduino, also with two mosfet for level converter:

http://letsmakerobots.com/node/30915

Post Reply