Well, im here using slider + an arduino bluethooth module, and for some reason, whenever my thumb position changes, the data that i receive in the serial on the arduino, isnt right..
i receive something like [ 0, . , 4, 8, 1, 3] but in my project, i made a label change to what the thumb position is, and its changing correctly.. how do i solve it?
To solve the problem properly requires the code from both sides.
1 Like
Can you explain what you expected this to be and also what you are using these numbers for?
And, you seem to have two sliders and you are sending the thumb positions to the Arduino without telling it from which slider the value is. So, without making this clear we cannot help you.
Anyway, a likely cause for not receiving the right values in the Arduino is that the slider event is firing much faster than the Arduino can handle. What you can do is send an acknowledgement from your Arduino and only send the next value if an acknowledgement is received for the previous one.