bluetooth connect after number of attempts

Hi everyone, first post on this forum!

Ok, I am using my Arduino Uno to connect to an android phone via the HC-06 bluetooth chip. I works perfectly, but I am struggling with the ever present Bluetooth problem. Sometimes I have to unplug and re-plug (power it down) the BT unit from the arduino a couple of times, then only the phone connects and the light on the unit stops flickering.

Why does this happen with BT and is there anything I can do on the Arduino, since it is directly linked with the BT device? I would really like to make the user experience smoother by avoiding them having to switch the unit off and on a couple of times before the connection works.

Thanks in advance for any advice!

Hi guys

After reading through the datasheet again, I noticed that the pin 11 on the module has a reset feature. It says the following, but I am not sure what inputting LOW LEVEL refers to?

RESET, the reset PIN of module, inputting low level can reset the module,
when the module is in using, this PIN can connect to air.

I tried the reset pin by putting ground onto it and the unit resets, but that does not seem to solve the connection problem...

chubbspet:
RESET, the reset PIN of module, inputting low level can reset the module,
when the module is in using, this PIN can connect to air.

Sounds like the typical HC-0x gobbledygook. At a guess, it means that grounding the pin resets any changes to factory default, and it is left disconnected in normal use. I don't think this problem is ever-present, I'm sure you don't need to touch pin 11, and I don't think there is anything to be done to the Arduino. Providing the connection is kosher, it just sends stuff over serial, and the rest is down to Android.

Thanks nick, got it.

I will dig a bit deeper into the android code and see if I can make the connection more reliable.