HC05 module getting disconnected automatically after 2 - 3 seconds when connected to laptop

I am currently working on a project that involves establishing a wireless connection between an Arduino UNO and a laptop using an HC-05 Bluetooth module. However, I am facing a issue where the HC-05 module disconnects automatically after 2-3 seconds.

For testing purposes, I have simplified the setup to just the Arduino and HC-05. To enable wireless communication and control servos using Python, I am using the Pyfirmata library and have uploaded the standard Firmata code into the Arduino with the baud rate set to 9600.

Despite my efforts, the HC-05 module continues to disconnect. I have explored various solutions, including providing a stable power source using two 18650 Lithium cells (2600mAh), as well as attempting power supply from the laptop via a USB cable. I have also updated the Bluetooth driver, thoroughly checked all connections, and tested with multiple HC-05 modules to eliminate the possibility of a damaged module. Additionally, I've confirmed that the HC-05 is in AT mode.

As a newcomer to this field, I would greatly appreciate any guidance the community can provide to help me resolve this connectivity issue.

Reading and following the topic "How to get the best out of this forum" would give us a chanse to assist You.

Thereby making life more difficult. You don't need any library to use Bluetooth, and Py-anything shuts a lot of people out of the game.

Bluetooth can't connect if it is in AT mode. You are either not explaining things properly, or your two seconds is actually zero.

Have you tried sending a simple "hello, hello" to a phone?

Sir please find the solution i am facing the same issue if you get the solution please let me know

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.