Electronic – Arduino Bluetooth Module not holding connection

arduinobluetooth

I am using an HC_05 Bluetooth module and an Arduino Uno to try and set up a simple bluetooth connection with my Windows Phone (HTC 8X). I am following the online tutorial here.

When I go into settings, my phone sees the "HC_05" bluetooth signal. I click on it, and it connects right away. It stays connected for 5-10 seconds, then suddenly disconnects.

I am thinking that my phone is not receiving any data from the bluetooth module, and thus deciding that the signal is worthless, and dropping it. But even if that, why? When I call btSerial.read() from the linked code, isn't that talking to the device?

I'm have tried directing RX/TX directly into 0/1 on the UNO, with a voltage divider, into ports 10/11, redirecting the power to 3.3V, all show the same problem of not holding a bluetooth connection with either my phone or computer.

Best Answer

i had similar problem ..the HC 05 used to get disconnected just after 5 seconds of connection with PC but worked fine with android. But what actually worked out for me was the AccessPort .... The module remains disconnected until the Serial port is switched on in accessport. its the same case with processing ..once the sketch runs the module gets connected automatically.Make sure you add the device to your computer and note down the outgoing and incoming ports.. :) Hope this helps

link for accessport download http://www.sudt.com/en/ap/download.htm