Ladies and Gentlemen,
I am trying to figure out the best way to control an analog clock hand (stepper motor, servo motor, continuous servo, etc) that will stop on a given time.
I have tried a few ideas...using a stepper set to rotate a set number of steps to reach the specific time: Some issues I ran into was determining a way to keep track of the steppers location and if the stepper was sent the command to move to let's say 2 o'clock twice accidentally, then the stepper will simply rotate said number of steps twice and all work is lost and I must start from scratch again >:( .
Second, I have tried using a continuous rotating servo with the clock hand blocking photoresistors and then stopping the servo based on light level readings. This works in my head, but I am struggling with the code, i.e. if (photoresistor 1 is blocked) stop servo...if not continue rotating, but if (photoresistor 2 is blocked) stop at this time, etc. In other words, 4 different photoresistors corresponding to 4 different times. When the clock hand passes over one of the 4 photoresistors corresponding to the desired time, then stop the clock hand. If a new command is sent to move to a different time, rotate the servo until reaching that photoresistor and then stop.
I truly do not know if either of the above ideas are reasonable and would greatly welcome any input that would help me.
Thank you so much!