I have a DC motor which rotates between position A and position B. These positions define the complete range over which the motor will rotate over. In general, these positions are more than one full revolution apart.
Similar to a power window (but for rotary motion i.e. not linear), I need a way of rotating and stopping the motor when it reaches either position A or position B. I also need to know at which position the motor is in i.e. whether it is at A or B.
One idea I had was that given I know position A and position B initially, I can use an multi-turn incremental shaft encoder, using either position as an index/origin and measure the number of turns/distance between the two. Then, I simply need to rotate the motor between these two positions.
From research, I've found that a limit switch/snap action switch may also be able to do the job. I haven't been able to find much info on these.
Are limit switches suitable for this and/or is the encoder route less well/better suited to meet the requirements?
Thanks in advance!