how to overcome this problem I made an app its working but the Bluetooth module (HC-05) is disconnecting while I sliding the slider to control the servo motor.
Sliders trigger their events very quickly as they move.
If you try to send a message to the HC-05 each time that happens, it might overwhelm the hc-05.
Try having the slider just update a global variable with its thumb, and have a Clock Timer with a less twitchy speed watch the variable for changes and send to the hc-05 when it has changed.
1 Like