Hi guys, Can U help me ..how can I read my servo motor value in serial monitor. I had done control my servo with potentiometer but I want to get value of servo motor in serial monitor
Serial.println (F("This servo is worth $8.99"));
syammzzz:
Hi guys, Can U help me ..how can I read my servo motor value in serial monitor. I had done control my servo with potentiometer but I want to get value of servo motor in serial monitor
You need to post your program so we can see the details of what you are doing.
I suspect you have something like
myServo.write(servoPosition);
and if so you could add
Serial.println(servoPosition);
...R
But it's worth realising that you can't tell the position a normal hobby servo is actually at. Printing the value you last sent to it just tells you where you asked it to go to NOT where it currently is.
Steve