Servo motor

Please help me!! How to read the servo motor position?

How to read the servo motor position?

In most cases you can't.

The vast majority of servos do not have any method to feedback their current position, but you could perhaps add it for yourself.

In any case, you commanded the servo to its current position so you know where it is. Unless, of course, you are using what is called a continuous rotation "servo" which is no such thing.

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.,148850.0.html

You don't, you use the command you sent to put it in that position as the location it is in.

If you are trying to find its starting position after just starting the program, then you will need some form of position feedback on the servo shaft.

If you need the servo to start at a particular position, then you can send that position command in the void setup() part of the code.

Can you tell us your electronics, programming, Arduino, hardware experience?

Thanks.. Tom... :slight_smile: