Have problem to connect to my HC-06 bluetooth device.
I get the HC-06 to appear on my phone and when i connect and write the password it says that i am connected but
the LED on the bluetooth never stops blinking and then it "disconnects" my phone.
Any solution to this.
mogren3000:
Any solution to this.
Not if it's an iPhone but, if it isn't, you might find the following background notes useful
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino
I have been trying both of these. I have testing it on my windows phone and a friends android and not so much luck at all. I have been running it on COM4 and used putty to test it and the code works. Its waiting on something to send back.
I wonder if its the Bluetooth device that's broken. Its blinking when there is no connection and as it seems it wont connect to anything even if the devices tested say that they have established connection.
If they was truly connected the LED on the Bluetooth should be not blinking.
mogren3000:
I have been trying both of these. I have testing it on my windows phone and a friends android and not so much luck at all. I have been running it on COM4 and used putty to test it and the code works. Its waiting on something to send back.
It sounds like you are doing the right things - test on the PC terminal via USB cable, then run bluetoth
I wonder if its the Bluetooth device that's broken. Its blinking when there is no connection and as it seems it wont connect to anything even if the devices tested say that they have established connection.
I don't want to badmouth the HC-06 but I had a case where my tablet would not work with it. I then found it was OK with an HC-05. I blamed the tablet but maybe I was wrong. My phone was fine with both.
If they was truly connected the LED on the Bluetooth should be not blinking.
This is true but maybe your problem is at the Android end. You should only need to pair once. This gets Linvor "on the book" and then you just establish the connection when starting the Android terminal.
In my direct experience i can say that i wasn't able to make an HC-06 work with several devices. With a symbian Anna , i cannot discover the bluetooth device. With an android Gingerbread 2.3.6, i cannot pair it (even if the code is correct) . Instead, i made it work with android 4.1.2 Jellybean and Pc bluetooth device. Cannot say why.
For Windows phone, i cannot say , never had one .
I have now been trying. Android, Windows Phone and my Laptop and no luck. I can send AT commands and change things so thats all good but connect to it does not seem to be something it let me do.
mogren3000:
I can send AT commands and change things so thats all good
It doesn't seem to be "all good" at all - quite useless, in fact. Right now, I guess the best AT command you are ever going to send is an AT command that resets to factory defaults, but I'm afraid I don't know if there is one for that. Once that is eventually sorted, you might try establishing communication without any any AT commands.
How many pins has you module? ( intended as pins going out of the breakout board)
If memory does not joke me, i read an article a long time ago, talking about the Enable and State pin on the breakout board used to select between AT mode and normal connection.... maybe there's a problem with this pins i guess... or the chip hasn't been programmed right by the producer....
i'm really confused about that.
The module has 4 pins. RX,TX,GND,VCC
Ok, so you can't control State and Enable pin .
In my personal opinion i think your module is stuck in AT mode . Tonight i'm going to look for the old document that i mentioned before and maybe i'll have more informations for you to tomorrow ( sorry, now i'm at work ) .
Ok. That will be interesting. One document i found is this if its any help here:
http://silabs.org.ua/bc4/hc06.pdf
Hey mogren,
i guess you have one of these : http://www.ebay.it/itm/121345901885ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
If you look at the schematic in the description, there's a a pin named Reset . I Read on this tutorial that it must be pulled down to reset the chip.
Another tutorial says that :
KEY: according to the data sheet, I need to pull-up this pin while power-on-reset of the module to enforce AT mode.
i guess there's something wrong with that pin. I think you should verify the voltage with a multimeter to see if something is going wrong. if, like mine, your module is protected by a silicone layer, you may have to remove it to access the reset pin....
Personally , i would proceed like this : ( Preamble, i've never done it on this chip)
- Verify with the tester the voltage of KEY and RESET pin.
- Try to drive the RESET pin LOW with a big resistance ( to avoid arduino absorbing too much current) and then test the device again
- Try to work on the KEY state as you can see in the datasheet...
- Wait for someone that already had this problem and can help you more than me

Now if I have understand this right to reset the HC-06 I should take a voltmeter and set one on PIN 11 and one on GND to reset it or am I totaly wrong here?
If I am right nothing has changed. I still cant pair it.
No, this is wrong , connecting one multimeter terminal to reset pin and the other on GND, will only give informations about the voltage of that pin .(RED terminal on Reset pin and BLACK on GND pin )
To drive that pin low ( and so have a reset as reported in the documents ) you have to wire it to the GND pin of ARDUINO through a resistor that you have to choose.
Here's an example. If the multimeter displays that on Reset pin ( on the bluetooth module) there are 5Volts, you have to wire it to ARDUINO GND with a resistor that lets flow a current that's smaller than 40 mA ( the maximum current that an arduino pin can absorb) . So , it's simply OHMs law V/R = I --------> R = V/I
[5V( Reset pin on bluetooth) - 0V( arduino ground)] / X ( resistor value ) must be < 40mA
So 5V/X must be smaller than 40mA . To be more secure of not damaging arduino pin , i would suggest to do this maths with 20mA insted of 40 mA
The Wiring is : Reset Pin ( bluetooth ) ----------------//////----------------------GND pin (arduino)
X ( resistor)
To reset the pin needs to be driven low just for a short time and not forever! So you don't have to make persistent wiring or sodering. Just wire a correct-sized resistor on the GND arduino pin and then touch with the other terminal the Reset pin on the bluetooth module
Now the reset is done and I still have the connection problem.
If I look closely and carefully at the blinking LED as i connect with my computer or my phones i notice that at the exact same moment the devices say they are connected the LED have a longer pause between the blinking.
Ok....my resources of answers is running out , but one last, stupid question. Did you try to switch VCC between 5V and 3.3V ? I use my module with 5V on VCC but in the tutorial i posted previously says that " The module does not like anything but 3.3 "
Try this, if you are running with 5V, try 3.3V, or vice-versa
I have already tried this. I have ordered a new one so maybe that will work. I let you know if i was a success
Ok, that seems to be the best solution. Maybe you can contact the seller of the old module and report the strange behavior. I did that in the past and often they ships you a new one without doing many questions ( especially if the problem is well-known).
Let me know! ( write me a MP )