Serial Bluetooth RF Transceiver Module RS232

noobee
Posts: 66
Joined: Fri Feb 25, 2011 2:57 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by noobee »

Hamburger wrote:
noobee wrote:
Hamburger wrote:Hi noobee,

what name does the BT module display if you scan for it from some computer/smartphone?
You may try sending it 'AT+BAUD8" at 9600. That will set it to 115200.
Sending 'AT+NAMEname' will set the name.
No AT commands, no further options.
Hamburger


the device is discovered as "linvor".

when there is no bluetooth session established, i can send "AT" on the wired side and it responds with "OK" (i just powered up the board normally). i tried "AT+BAUD8" and "AT+NAMEname" but there is no response.

my baseboard as an LED that flashes when there is no bluetooth sesssion and goes solid where there is, this LED is tied to PIO1.


Hi,

I have one of these as well.
You are correct about the module:
one LED, blinking and going solid on being connected.
being delivered set to 9600.
does NOT need a programming pin to be pulled high for setup.
Takes following commands
at
at+BAUDx
at+NAMEname
That's it.
Hamburger


found the problem.

apparently, i need to cut and paste the AT command string, instead of trying to "type it quickly". i could type just "AT" fast enough for it to acknowledge and respond, but not "AT+BAUD8". once i pasted the "AT+BAUD8" string, the module responded before switching over to the new baud rate.

thanks.

ZonK
Posts: 2
Joined: Sat Apr 30, 2011 12:29 pm

MultiWiiConf doesn't bind to BT module, Serial Terminal does

Post by ZonK »

Guys,
I'm stuck in the last step : Having my module working with MultiwiiConf (1.7).
My Bluetooth module appears to be HC-04 (Only basic AT commands + led connected on PIO1).
I successfully connected it and can get data transfert between arduino and PC with a terminal emulator.
However, when I launch MultiWiiconf, I can not get the led stop blinking, as if connection was not initialized.

I managed to get logs from "Serial Monitor" (Trial at http://www.hhdsoftware.com/serial-monitor) that allows to compare application behaviour between the two procedures :

Serial Terminal :
When I press "Open" the terminal connects to the module and led stop blinking (115200/8 /None).

Code: Select all

888139: Create Request (DOWN), 30.04.2011 14:01:01.515 +1115.015
Process 0x18e8 (hercules_3-2-4.exe) attempted to open the device

888140: Create Request (UP), 30.04.2011 14:01:05.125 +3.609
Process 0x18e8 (hercules_3-2-4.exe) create request status: 0x00000000

888157: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate
  Baud Rate=115200

888158: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate

888159: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

888160: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

888161: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_DTR: Clear DTR

888162: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_DTR: Clear DTR

888163: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control
  WordLength=8
  StopBits=1 stop bit
  Parity=No parity

888164: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control

888165: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters
  EofChar=0x4
  ErrorChar=0x0
  BreakChar=0x0
  EventChar=0xa
  XonChar=0x0
  XoffChar=0x0

888166: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters

888167: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information
  ControlHandShake=0
  FlowReplace=0
  XonLimit=8192
  XoffLimit=2048

888168: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information

888169: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts
  ReadIntervalTimeout=0
  ReadTotalTimeoutMultiplier=0
  ReadTotalTimeoutConstant=0
  WriteTotalTimeoutMultiplier=0
  WriteTotalTimeoutConstant=0

888170: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts

888171: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_DTR: Clear DTR

888172: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_DTR: Clear DTR

888173: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

888174: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

888175: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_PURGE: Purge requests
  Purge mask=TXABORT: Read requests, RXABORT: Receive buffer, TXCLEAR: Write requests, RXCLEAR: Write buffer

888176: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_PURGE: Purge requests

888177: I/O Request (DOWN), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_WAIT_MASK: Set current event mask
  WaitMask=RXCHAR: Any Character received, CTS: CTS changed state, DSR: DSR changed state, RING: Ring signal detected

888178: I/O Request (UP), 30.04.2011 14:01:05.125 +0.0
IOCTL_SERIAL_SET_WAIT_MASK: Set current event mask


If I send a "A", I can get the 84bytes in return from the sketch :
SuccessTransfert.jpg

MultiWiiConf :
When I press "Com12" on the GUI, BT module keeps blinking.
Initialization is full of garbage compared to terminal (multiple "Set Baud Rates" at 9600 & 115200):

Code: Select all

958695: Create Request (DOWN), 30.04.2011 14:16:07.921 +7.578
Process 0x378 (javaw.exe) attempted to open the device

958696: Create Request (UP), 30.04.2011 14:16:10.546 +2.625
Process 0x378 (javaw.exe) create request status: 0x00000000

958697: Close Request (DOWN), 30.04.2011 14:16:10.546 +0.0
Buffer size: 0x0 bytes

958698: Close Request (UP), 30.04.2011 14:16:10.546 +0.0
Buffer size: 0x0 bytes
Status: 0x00000000

958699: Create Request (DOWN), 30.04.2011 14:16:11.718 +1.171
Process 0x378 (javaw.exe) attempted to open the device

958700: Create Request (UP), 30.04.2011 14:16:11.781 +0.062
Process 0x378 (javaw.exe) create request status: 0x00000000

958701: Close Request (DOWN), 30.04.2011 14:16:11.781 +0.0
Buffer size: 0x0 bytes

958702: Close Request (UP), 30.04.2011 14:16:11.781 +0.0
Buffer size: 0x0 bytes
Status: 0x00000000

958703: Create Request (DOWN), 30.04.2011 14:16:11.781 +0.0
Process 0x378 (javaw.exe) attempted to open the device

958704: Create Request (UP), 30.04.2011 14:16:11.843 +0.062
Process 0x378 (javaw.exe) create request status: 0x00000000

958705: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_QUEUE_SIZE: Set queue size
  InSize=2048
  OutSize=1024

958706: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_QUEUE_SIZE: Set queue size

958735: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate
  Baud Rate=9600

958736: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate

958737: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

958738: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

958739: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_DTR: Set DTR

958740: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_DTR: Set DTR

958741: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control
  WordLength=8
  StopBits=1 stop bit
  Parity=No parity

958742: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control

958743: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters
  EofChar=0x4
  ErrorChar=0x0
  BreakChar=0x0
  EventChar=0xa
  XonChar=0x0
  XoffChar=0x0

958744: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters

958745: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information
  ControlHandShake=1
  FlowReplace=0
  XonLimit=0
  XoffLimit=0

958746: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information

958747: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts
  ReadIntervalTimeout=0
  ReadTotalTimeoutMultiplier=0
  ReadTotalTimeoutConstant=0
  WriteTotalTimeoutMultiplier=0
  WriteTotalTimeoutConstant=0

958748: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts

958777: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate
  Baud Rate=9600

958778: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate

958779: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

958780: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

958781: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_DTR: Set DTR

958782: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_DTR: Set DTR

958783: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control
  WordLength=8
  StopBits=1 stop bit
  Parity=No parity

958784: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control

958785: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters
  EofChar=0x4
  ErrorChar=0x0
  BreakChar=0x0
  EventChar=0xa
  XonChar=0x0
  XoffChar=0x0
958786: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters

958787: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information
  ControlHandShake=1
  FlowReplace=0
  XonLimit=0
  XoffLimit=0

958788: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information

958789: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts
  ReadIntervalTimeout=4294967295
  ReadTotalTimeoutMultiplier=0
  ReadTotalTimeoutConstant=0
  WriteTotalTimeoutMultiplier=0
  WriteTotalTimeoutConstant=0

958790: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts

958831: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate
  Baud Rate=115200

958832: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate

958833: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

958834: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_CLR_RTS: Clear RTS

958835: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_DTR: Set DTR

958836: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_DTR: Set DTR

958837: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control
  WordLength=8
  StopBits=1 stop bit
  Parity=No parity

958838: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control

958839: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters
  EofChar=0x4
  ErrorChar=0x0
  BreakChar=0x0
  EventChar=0xa
  XonChar=0x0
  XoffChar=0x0

958840: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_CHARS: Set special characters

958841: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information
  ControlHandShake=1
  FlowReplace=0
  XonLimit=0
  XoffLimit=0

958842: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information

958843: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts
  ReadIntervalTimeout=4294967295
  ReadTotalTimeoutMultiplier=0
  ReadTotalTimeoutConstant=0
  WriteTotalTimeoutMultiplier=0
  WriteTotalTimeoutConstant=0

958844: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts

958845: I/O Request (DOWN), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_WAIT_MASK: Set current event mask
  WaitMask=RXCHAR: Any Character received

958846: I/O Request (UP), 30.04.2011 14:16:11.843 +0.0
IOCTL_SERIAL_SET_WAIT_MASK: Set current event mask

When "start" is pressed, MultiWiiConf sends repeated "A" chars to com port but Bluetooth modules doesn't respond (since obviously not initialized) :
FailedTransfert.jpg


I compared MultiWiiConf init sequence between BT or Wired and it's the same (but wired, it works)
It looks like my BT module doesn't comply with MultiWiiConf initialisation procedure.
Anyone has a clue :?:
Thanks,
ZonK

miniquad
Posts: 65
Joined: Wed Mar 23, 2011 8:17 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by miniquad »

Zonk, are you using the toshiba BT stack? As far as I know only the toshiba BT stack works along with MultiWii config tool.

ZonK
Posts: 2
Joined: Sat Apr 30, 2011 12:29 pm

Bluetooth stack matters !

Post by ZonK »

I noticed later this afternoon that I was able to get MultiWiiConf to connect to BT module if I manually connected the BT virtual serial port (right click --> connect) before I click on "ComX" button in the GUI.

Following Miniquad advice, I just changed my computer BT Stack (formerly Broadcom 5.5) to a Toshiba 8.0
It now works flawlessly without having to connect manually !
Thanks Miniquad !!! :P

Toshiba stack adds a lot of virtual serial port by default (about 9 if I remember, mainly used for file transfert purposes)
Those numerous ports slows down a lot GUI startup. Just remove them if you don't need them to speed things up (with Windows device manager : Toshiba option panel won't let you do this).

ZonK

User avatar
Berkely
Posts: 29
Joined: Fri Jan 21, 2011 8:25 pm
Location: Belgium, coast

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Berkely »

Hi,

Just to summarize what I did to get it working. Not a big deal but others may just find it usefull.

I bought this blue-tooth module (Link http://cgi.benl.ebay.be/ws/eBayISAPI.dll?ViewItem&item=280611558914&ssPageName=STRK:MEWNX:IT)with on-board 3.3V regulator, the board connects directly to the Arduino FTDI plug.

Arduino --> BT Module
GND ---> GND
VCC --> +5V
RX --> TX
TX --> RX

Image

I used the standard USB FTDI cable to set the module to 115000bps.
FTDI -->BT Module
GND ---> GND
5V --> +5V
RX --> TX
TX --> RX

Using Hyper terminal, I was initially unable to communicate with the module until the flow control was disabled.
Image

The unit responded on the command AT (Upper-case only).
The baud rate was changed by copying AT+BAUD8 & pasting the command into hyper terminal (Use paste to host from the edit menu) --> answer 115200OK
The name was changed by the command AT+NAMEMULTI --> answer OKsetname

In Windows device manager the speed from the comm port was changed to 115000bps
Image

At last, the blue-tooth stack was updated to Toshiba v. 8.00, unfortunately this seems like a 30day trial version. The device was added, a new com port created. I needed to bind with the default "pin" 1234 by the way.

Now I just need to get the app on my Blackberry.

Thanks Hamburger, Miniquad & the others for the posts where all above information can be found.

Regards
B.
Attachments
Serial com port settings in device manager ports.jpg
(34.24 KiB) Not downloaded yet
Serial com port settings Hyper Terminal.jpg
(35.92 KiB) Not downloaded yet
Bluetooth Module Ebay.jpg
(30.92 KiB) Not downloaded yet

Georgeus
Posts: 4
Joined: Tue Mar 01, 2011 2:05 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Georgeus »

whic is suitable?

Arduino Serial Bluetooth RF Transceiver Module with Backplane Host
http://www.goodluckbuy.com/arduino-seri ... lane-.html

Arduino Serial Bluetooth RF Transceiver Module RS232 Passive
http://www.goodluckbuy.com/arduino-seri ... ssive.html

Serial Bluetooth RF Transceiver Module RS232 w/ Backplane Enable & State Pin
http://www.goodluckbuy.com/serial-bluet ... pin-1.html

JussiH
Posts: 39
Joined: Thu Jan 20, 2011 1:16 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by JussiH »

Hi people...

I have the new promini shields with BT module pads in now....

I am offering some up for free to people who has had succes with BT modules for testing and research....

Contact me for details

Jussi

dpackham
Posts: 16
Joined: Wed Mar 23, 2011 8:50 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by dpackham »

PM Sent :)

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

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Hamburger »

PM sent over at RCG.

Jussi, thanks for your ongoing efforts.

Hamburger

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

Re: Serial Bluetooth RF Transceiver Module RS232

Post by PatrikE »

PM sent

JussiH
Posts: 39
Joined: Thu Jan 20, 2011 1:16 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by JussiH »

Hi Guys.

I have received a lot of PM´s on the shields...It seems to me you are all qualified (about 10-15 people)

I will go through them during the weekend and send shield kits to you monday! I will probably ask you all to pay for the shipping, but thats it...

Jussi

JussiH
Posts: 39
Joined: Thu Jan 20, 2011 1:16 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by JussiH »

An update on the shields....

As it turns out, I have used a wrong footprint for the 7805 regulator, and missed a track between A5 and the pullup next to it!

As a consequence, I have decided not to put them up for sale in the shop!

However - the two errors are easy to fix (by hooking the 7805 up with some wires and placing a small jumper on A5. And the BT functions should still be good, I think. So they could still be of use for those who dont mind to fix this themselves or want to explore the BT functions.

So the plain shields (No components) are up for grabs @ cost value plus shipping/handling!

This amounts to 2E a piece and shipping of 2E (anywhere in the world) Up to 4 can ship for the price of one! They come "as-is" and is a non-profit offer to the community. I will upload pictures of how to do the fixes, of course!

Send money to jussibox@gmail.com via paypal. Send them as "payment owed" with you paying the fee!

I will consider to offer component sets if enough people want them, but for legal reasons I will have to sell those thru the shop with the VAT-thing and all that....

kiliam
Posts: 14
Joined: Mon Feb 14, 2011 11:06 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by kiliam »

I had this bluetooth with the circuit miniquad posted earlier.
It was working till i ordered this base plate for 5v: http://www.goodluckbuy.com/serial-bluet ... board.html

Now the led on the base blinks and i connect to it and led goes solid red, i open multiwiiconf and press com40 but after start no graph, i press read and no values but if i press write the arduino led blinks like it is working.
So, i burned my rx pin right???

gompf-2
Posts: 136
Joined: Sun Jun 05, 2011 11:46 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by gompf-2 »

Hi kiliam,

Yes, I would say so. As you can see from the schematics, the "5V base plate" only carries a voltage regulator circuite+status LED. The RX/TX lines are pure 3.3v and RX still needs a resistor divider to accept 5V. NP on TX as the AVR accepts 3,3V as H, buts as you just found out the 5V H from the AVR burns the 3.3V level RX on the BT module :cry: .

Regards,
gompf

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

gompf-2 wrote:Yes, I would say so. As you can see from the schematics, the "5V base plate" only carries a voltage regulator circuite+status LED. The RX/TX lines are pure 3.3v and RX still needs a resistor divider to accept 5V. NP on TX as the AVR accepts 3,3V as H, buts as you just found out the 5V H from the AVR burns the 3.3V level RX on the BT module :cry: .
Regards,
gompf


Dear gompf,

I also have this plate.
Would you like to help and write the real schematic how to connect it to
the 5v driven MCU?

Thanks,
Il

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

gompf-2 wrote:Yes, I would say so. As you can see from the schematics, the "5V base plate" only carries a voltage regulator circuite+status LED. The RX/TX lines are pure 3.3v and RX still needs a resistor divider to accept 5V. NP on TX as the AVR accepts 3,3V as H, buts as you just found out the 5V H from the AVR burns the 3.3V level RX on the BT module :cry: .
Regards,
gompf


Dear gompf,

I also have this plate.
Would you like to help and write the real schematic how to connect it to
the 5v driven MCU?

Thanks,
Il

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

gompf-2 wrote:Yes, I would say so. As you can see from the schematics, the "5V base plate" only carries a voltage regulator circuite+status LED. The RX/TX lines are pure 3.3v and RX still needs a resistor divider to accept 5V. NP on TX as the AVR accepts 3,3V as H, buts as you just found out the 5V H from the AVR burns the 3.3V level RX on the BT module :cry: .
Regards,
gompf


Dear gompf,

I also have this plate.
Would you like to help and write the real schematic how to connect it to
the 5v driven MCU?

Thanks,
Il

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

gompf-2 wrote:Yes, I would say so. As you can see from the schematics, the "5V base plate" only carries a voltage regulator circuite+status LED. The RX/TX lines are pure 3.3v and RX still needs a resistor divider to accept 5V. NP on TX as the AVR accepts 3,3V as H, buts as you just found out the 5V H from the AVR burns the 3.3V level RX on the BT module :cry: .
Regards,
gompf


Dear gompf,

I also have this plate.
Would you like to help and write the real schematic how to connect it to
the 5v driven MCU?

Thanks,
Il

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

gompf-2 wrote:Yes, I would say so. As you can see from the schematics, the "5V base plate" only carries a voltage regulator circuite+status LED. The RX/TX lines are pure 3.3v and RX still needs a resistor divider to accept 5V. NP on TX as the AVR accepts 3,3V as H, buts as you just found out the 5V H from the AVR burns the 3.3V level RX on the BT module :cry: .
Regards,
gompf


Dear gompf,

I also have this plate.
Would you like to help and write the real schematic how to connect it to
the 5v driven MCU?

Thanks,
Il

miniquad
Posts: 65
Joined: Wed Mar 23, 2011 8:17 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by miniquad »

Hi Clinkme,
You can check the schematic at http://www.pial.net/post/Using-the-HC-0 ... oller.aspx and find out how to use voltage divider using resistors on the rx pin to make it tolarent to 5v driven MCUs. For more details about voltage dividers, you can visit the wiki page at http://en.wikipedia.org/wiki/Voltage_divider

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

miniquad wrote:Hi Clinkme,
You can check the schematic at http://www.pial.net/post/Using-the-HC-0 ... oller.aspx and find out how to use voltage divider using resistors on the rx pin to make it tolarent to 5v driven MCUs. For more details about voltage dividers, you can visit the wiki page at http://en.wikipedia.org/wiki/Voltage_divider


Thank you very much for your reply.
I need only TX pin (one way communication),
but I'm very strange about the resistor is only 10 Ohm. No error here?

gompf-2
Posts: 136
Joined: Sun Jun 05, 2011 11:46 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by gompf-2 »

Hi clinkme, miniquad was faster...

10 Ohms is OK, iirc I used 33 Ohms, but just because I had this one at home. TX is not critical as you drive the 5V input of the AVR with only 3.3V from the BT modul. The resistor in this line is just an additional safety for current limiting.

Regards,
gompf

clinkme
Posts: 7
Joined: Wed Jun 15, 2011 3:35 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by clinkme »

gompf-2 wrote:Hi clinkme, miniquad was faster...

10 Ohms is OK, iirc I used 33 Ohms, but just because I had this one at home. TX is not critical as you drive the 5V input of the AVR with only 3.3V from the BT modul. The resistor in this line is just an additional safety for current limiting.

Regards,
gompf


Thank you very much guys!
Will try ;)

Kayle
Posts: 141
Joined: Sun Feb 13, 2011 6:45 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Kayle »

Hey guys,

i received my bluetooth module. These with CSR BC417 Chip. I configured this module with my Pin and my bluetooth Name. With normal Terminalprogramm i can send data from my netbook to my pc. Now i wan´t to use this module on my wii copter. But Multi Wii Config doesn´t recognize the com port. In this thread i read that only the toshiba bluetooth stack works with the multi wii config. But why ? The Toshiba stack is only Demo for 30 Days. Is it possible to make the Multi Wii Config working with the original win7 bluetooth stack ?

kind regards
Kayle

dodecopter
Posts: 35
Joined: Fri Jan 21, 2011 7:37 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by dodecopter »

thanks for all that hints in this thread , helped me very much , and i am happy that it works now. :).

after connecting rx to rx and tx to tx (without crossover!) my 5V bluetooth adapter works fine with the last DEV on my flyduino mega.

now i ll have to buy an android-phone, as this will be not much more expensive than this "golden" toshiba-stack. :shock:

is that issue arduino-software made, or does it affect just multiwii-GUI - and might this bluetooth problem be solved in future?

lazarus
Posts: 7
Joined: Fri Jul 22, 2011 9:16 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by lazarus »

miniquad wrote:The 3v3 connection on Pin 34 is to enable AT command to configure the BT module. When the BT module starts with Pin 34 high, the module runs on AT command receive mode and you can send AT commands to modify settings of the BT module. But make sure the BT module you have has the same firmware as this. Because I have seen another version of this module with older version firmware with a little bit of different pin layouts for the LED pins and AT command enable pin. This perticular module support both master and slave mode.



Hi miniquad. I don't suppose you can remember which pin the older firmware versions is used to get in to AT mode can you? I think i may have landed my self with one. It's stuck solid at 38400 baud and i can't get in to change it, it shows up as OBDII when detected via bluetooth. If i drop the baud rate in the arduino code it will talk quite happily to to the android PID app, just not to mulitwiiconf.

Image

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Alexinparis »

lazarus wrote:If i drop the baud rate in the arduino code it will talk quite happily to to the android PID app, just not to mulitwiiconf.

There is no problem to adapt also multiwiiconf baud rate setting.

lazarus
Posts: 7
Joined: Fri Jul 22, 2011 9:16 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by lazarus »

Ooo do tell. I'm not much of a coder more of a hardware monkey but if its fairly straight forward i'll give it a go.

thank you

edit:
looks like my fun with this part of the project has been cut short. As i was tidying up the bench last night I knocked the arduno board off the bench with all the sensors still connected. long story short the bluetooth adapter snagged on my soldering iron and ripped the rx pad clean off.
I've ordered up a new one (board layout looks like an an HC-06) that should at least have a bit more documentation to go with it.

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

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Hamburger »

lazarus wrote:Hi miniquad. I don't suppose you can remember which pin the older firmware versions is used to get in to AT mode can you? I think i may have landed my self with one. It's stuck solid at 38400 baud and i can't get in to change it, it shows up as OBDII when detected via bluetooth. If i drop the baud rate in the arduino code it will talk quite happily to to the android PID app, just not to mulitwiiconf.


lazarus,
I started the beginning of a collection of howto tweak the various BT modules here viewtopic.php?f=6&t=373.
If it is of help to you, cool. Please add your new findings to the collection.
Hamburger

lazarus
Posts: 7
Joined: Fri Jul 22, 2011 9:16 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by lazarus »

I've added what i did find out to your list. sorry there isn't any info on how to make changes to it.

AndrewRadford
Posts: 8
Joined: Fri Aug 05, 2011 5:18 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by AndrewRadford »

Anyone actually try connecting one of these things to a 5V arduino and see what happens? I have a Bt module with an adaptor board, which does not have the voltage divider resistors. I can't be bothered adding them, and was wondering if anyone has got away with it?

User avatar
captaingeek
Posts: 228
Joined: Fri Jan 28, 2011 6:42 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by captaingeek »

hi im thinking about picking one of these up. is goodluckbuy the way to go?

also has anyone ggotten it working with a droidx?

thanks!!

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by copterrichie »

AndrewRadford wrote:Anyone actually try connecting one of these things to a 5V arduino and see what happens? I have a Bt module with an adaptor board, which does not have the voltage divider resistors. I can't be bothered adding them, and was wondering if anyone has got away with it?


I have toyed with connecting the BT device directly to the arduino using the 3.3 volts, it worked but I would suggest getting one of these.

http://www.goodluckbuy.com/serial-bluetooth-rf-transceiver-module-interface-board.html

User avatar
captaingeek
Posts: 228
Joined: Fri Jan 28, 2011 6:42 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by captaingeek »

Nosepo wrote:Hello guys, this module its compatible with us copters. There are two androids App with works with the MultiWii system.

http://wbb.multiwii.com/viewtopic.php?f=8&t=248
http://www.rcgroups.com/forums/showpost.php?p=18050473&postcount=1


Great configuration tutorial from Berkely
http://wbb.multiwii.com/viewtopic.php?f=6&t=133&start=50#p1515


only cost $10.21with shipping fee.

Image
http://www.goodluckbuy.com/serial-bluetooth-rf-transceiver-module-rs232-w-backplane-enable-and-state-pin-1.html


Seems there are about 7 different BT adaptors linked in this thread. Is the above one tested and working?

User avatar
captaingeek
Posts: 228
Joined: Fri Jan 28, 2011 6:42 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by captaingeek »

copterrichie wrote:
AndrewRadford wrote:Anyone actually try connecting one of these things to a 5V arduino and see what happens? I have a Bt module with an adaptor board, which does not have the voltage divider resistors. I can't be bothered adding them, and was wondering if anyone has got away with it?


I have toyed with connecting the BT device directly to the arduino using the 3.3 volts, it worked but I would suggest getting one of these.

http://www.goodluckbuy.com/serial-bluetooth-rf-transceiver-module-interface-board.html


Ok what is the purpose of this one and whats the difference from the others?

AndrewRadford
Posts: 8
Joined: Fri Aug 05, 2011 5:18 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by AndrewRadford »

I have a similar 'backplane' board - but as mentioned earlier in this thread, all they really provide is a 3.3V regulator and a LED - the TX and RX lines go straight into the BT module. Maybe not a good thing when the Arduino is 5V and the BT module expects a 3.3V signal.

Maybe the BT module can handle 5Vsignal input? has anyone tried?

cardboard
Posts: 183
Joined: Tue Mar 15, 2011 9:40 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by cardboard »

i tired just pluging it straight in, it blinked for 10-20sec then died. seems a logic level converter is needed but they are dirt cheap also so no big deal.

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Katch »

Finally worked out how to get a bluetooth connection to the GUI on WIDCOM stack. This was only possible on Toshiba stack before so I thought I'd share the process as it's a little odd.

The guide is for Windows XP and my dongle is a Belkin mini but the process may work on 7/Vista. I assume you have a working RS232 bluetooth serial device for your multiwii.

First install the WIDCOM drivers and get your bluetooth device working in Windows. Also power up your multiwii board. At this point the BT device on the multiwii will be flashing

Once installed right click the bluetooth tray icon and add a device (start using bluetooth if its the first time you've clicked it)

You'll find the multiwii bluetooth device and click to add it - it'll ask for the pairing code - this is usually 1234.

After this completes right click BT tray icon, quick connect, bluetooth serial port, and you should see your MultiWii BT listed - click it.

After a few moments the flashing light on the multiwii BT device will go solid.

Now usually in a few seconds the pairing is lost and the MultiWii BT will start flashing again. Trying to reconnect fails.


Now - unplug the multiwii and the unplug your PC bluetooth dongle (or disable if it is built in).

Plug in dongle (re-enable PC bluetooth)

Plug in MultiWii

Run GUI and wait for it to load

Select what will be your BT serial com port (usually 8) - wait for port to go green.

Right click BT tray icon and quick connect, BT serial, your device

Wait 1 second before clicking start in the multiwii GUI.

You are now connected.

User avatar
captaingeek
Posts: 228
Joined: Fri Jan 28, 2011 6:42 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by captaingeek »

captaingeek wrote:
Nosepo wrote:Hello guys, this module its compatible with us copters. There are two androids App with works with the MultiWii system.

http://wbb.multiwii.com/viewtopic.php?f=8&t=248
http://www.rcgroups.com/forums/showpost.php?p=18050473&postcount=1


Great configuration tutorial from Berkely
http://wbb.multiwii.com/viewtopic.php?f=6&t=133&start=50#p1515


only cost $10.21with shipping fee.

Image
http://www.goodluckbuy.com/serial-bluetooth-rf-transceiver-module-rs232-w-backplane-enable-and-state-pin-1.html


Seems there are about 7 different BT adaptors linked in this thread. Is the above one tested and working?


I guess i'll have to be the guinea pig here.

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Katch »

captaingeek wrote:
captaingeek wrote:
Nosepo wrote:Hello guys, this module its compatible with us copters. There are two androids App with works with the MultiWii system.

http://wbb.multiwii.com/viewtopic.php?f=8&t=248
http://www.rcgroups.com/forums/showpost.php?p=18050473&postcount=1


Great configuration tutorial from Berkely
http://wbb.multiwii.com/viewtopic.php?f=6&t=133&start=50#p1515


only cost $10.21with shipping fee.

Image
http://www.goodluckbuy.com/serial-bluetooth-rf-transceiver-module-rs232-w-backplane-enable-and-state-pin-1.html


Seems there are about 7 different BT adaptors linked in this thread. Is the above one tested and working?


I guess i'll have to be the guinea pig here.


I ordered that exact device. Works after configuration.

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

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Hamburger »

Katch wrote:I ordered that exact device. Works after configuration.

Hi Katch, cool finding.
By what name does it represent itself initially? Which command set (probably AT+BAUD8 style)? Does it require hardware mod for reprogramming (pinX high at powerup)? At what speed is reprogramming done if not equal to initial or set baud rate?
Does this particular module while having two additional pins provide any advantage when used compared the standard 4 pin setups? Or do you connect only 4 pins to arduino as usual?
Please share your findings here: viewtopic.php?f=6&t=373
Hamburger

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Katch »


AndrewRadford
Posts: 8
Joined: Fri Aug 05, 2011 5:18 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by AndrewRadford »

Interesting link. On that page is a link to this page:
http://item.taobao.com/item.htm?id=9812432239
(Use google translate)
Very Very interesting. It appears to suggest that a resistive divider is not necessary, just a 1K resistor inline. This would suggest there is a VCC clamping diode or some other type of input protection. So still a resistor is necessary, but only 1, not 2 :)

I will have a play to see if it is true.

Cid156
Posts: 5
Joined: Sat May 14, 2011 3:32 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by Cid156 »

So if I understand well.

If I bought the one from goodluckbuy. I have first to:
- Programm it with a ftdi module
- Add a llc
- Install it on my tri

As I have a duelmilanove board, my questions are:
Can programm it with my duelmilanove ? I can remove the shield with the sensor and connected it to rx and tx. Then I do not need to buy a ftdi.
Do I really need a llc as I have a 3.3v output on the duelmilanove

didlawowo69
Posts: 38
Joined: Tue Oct 11, 2011 1:42 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by didlawowo69 »

it's really usefull
thx for your time this soft is awesome.

can you release your source ? maybe someone can addon the visibility of GUI in action.

User avatar
captaingeek
Posts: 228
Joined: Fri Jan 28, 2011 6:42 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by captaingeek »

just ordered lets see how long it takes good luck buy to ship

zviratko
Posts: 50
Joined: Sat Oct 15, 2011 4:49 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by zviratko »

resistor? wait... what? I just connected it to the FTDI with no mods (on mini) and nothing burned (can't say it works perfectly, there seems to be a problem with my MS bluetooth stack)

KaiK
Posts: 58
Joined: Thu Jul 28, 2011 8:32 pm
Contact:

Re: Serial Bluetooth RF Transceiver Module RS232

Post by KaiK »

You dont need a LLC, just put a 1K resistor between Arduino TX and BT RX (vice versa should be safe without resistor i think).

druckgott
Posts: 32
Joined: Mon May 02, 2011 8:47 pm

Re: Serial Bluetooth RF Transceiver Module RS232

Post by druckgott »

Hallo, I want to connect with my Win7 Machine to the Stick. Over Android it works perfekt, but on win 7 I connect and I see the comport (two)
but I can´t connect.

what can I do??

zarkon
Posts: 68
Joined: Sat Oct 15, 2011 8:25 am

Re: Serial Bluetooth RF Transceiver Module RS232

Post by zarkon »

Berkely wrote:Hi,

Just to summarize what I did to get it working. Not a big deal but others may just find it usefull.

I bought this blue-tooth module (Link http://cgi.benl.ebay.be/ws/eBayISAPI.dll?ViewItem&item=280611558914&ssPageName=STRK:MEWNX:IT)with on-board 3.3V regulator, the board connects directly to the Arduino FTDI plug.

Arduino --> BT Module
GND ---> GND
VCC --> +5V
RX --> TX
TX --> RX

Image

I used the standard USB FTDI cable to set the module to 115000bps.
FTDI -->BT Module
GND ---> GND
5V --> +5V
RX --> TX
TX --> RX

Using Hyper terminal, I was initially unable to communicate with the module until the flow control was disabled.
Image

The unit responded on the command AT (Upper-case only).
The baud rate was changed by copying AT+BAUD8 & pasting the command into hyper terminal (Use paste to host from the edit menu) --> answer 115200OK
The name was changed by the command AT+NAMEMULTI --> answer OKsetname

In Windows device manager the speed from the comm port was changed to 115000bps
Image

At last, the blue-tooth stack was updated to Toshiba v. 8.00, unfortunately this seems like a 30day trial version. The device was added, a new com port created. I needed to bind with the default "pin" 1234 by the way.

Now I just need to get the app on my Blackberry.

Thanks Hamburger, Miniquad & the others for the posts where all above information can be found.

Regards
B.


I have FTDI basic too tried this but hyperterminal said connected but nothing happen sending AT command does not respond to anything :), still firguring out why the bluetooth is visible by the name of linvor

I even followed this guide http://fangin.com/blog/2011/05/28/add-b ... wiicopter/ but still no luck at all connecting to it via serial port

update: for some reason it worked now! great!

Post Reply