Go Down

Topic: Questions about Programming a Servo Motor [Solved] (Read 1 time) previous topic - next topic


Nov 19, 2019, 04:34 am Last Edit: Nov 19, 2019, 06:44 am by sayHovis
I got the whole thing to work by setting the threshold to 10.
Excellent. Now it might be a good idea to go back to the opening post and edit the title there and add [solved] or similar. (Not that this question is about programming a servo ;) it's about reading an analog sensor and setting its go/no-go threshold.)

edit.. I just looked at your older threads from October, which are presumably on the same project. Back then you had this:

Code: [Select]
  if (sensorValue >= 50) {

It's a pity you didn't stick with a low value like that, since your code in this thread was basically ok all along, just a bad threshold. But all's well that ends well, I guess.

Thanks for the help
You're welcome.

Go Up