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.