Wishing to operate a micro servo to open a small grating, with one open and one close each day, for a period of up to fourteen days. (approx 90 degrees of servo motion) when the device will be removed from service for potential use elsewhere.
Understandably between operations I don't want to power the servo.
Please be aware that general timing isn't an issue, and neither is the actual positioning, both of which will be determined empirically during development.
How would YOU go about it please? The turning motion on the grating is effectively zero. [it's very light]
The solution would seem to be how to switch the power to the servo, via a gp NPN transistor and relay for the duration of the action?
Understandably between operations I don't want to power the servo.
Please be aware that general timing isn't an issue, and neither is the actual positioning, both of which will be determined empirically during development.
How would YOU go about it please? The turning motion on the grating is effectively zero. [it's very light]
The solution would seem to be how to switch the power to the servo, via a gp NPN transistor and relay for the duration of the action?
Code:
#Picaxe 08m2
symbol relay = c.1
symbol grate = c.2
do
relay high ' power to servo
pause 2000
servo grate, 75 ' close
servopos grate,75
pause 2000
servopos grate, off
relay low ' switch off servo power
<delay 7 hours>
relay high ' power to servo
pause 2000
servo grate, 255 ' open
servopos grate, 255
pause 2000
servopos grate, off
relay low ' switch off servo power
<delay 17 hours>
loop