I think it is caused by too much data being sent via Bluetooth. On the receiver side, this data is not received fast enough and the buffer overflows. What is the range of numbers from the slider? And show the code from the device that receives the data.
its 0 to 180 I use it for servo
it works but then gives error
Your code on the Arduino side is too slow for the speed of data sent from the slider.
ok thank u i will make range 0 to 6 then use map
Yes, if you don't need values by 1 degree, this can be a solution. But it's worth thinking more about the arduino code so that the buffer doesn't overflow, and not using delay() commands.
it gives same error
How are you powering your servo? I think when the servo starts working the power source is overloaded and the voltage drops too low causing communication problems.
i power it with arduino 5v and there is also 4 led powered by arduino
This is not a good idea. Try disconnecting the servo from the arduino power supply and see if the error persists.
ok ill try
yes it was the problem thank u
You need to use a more powerful power supply.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.