Dear Forum Members,
I’ve been having a problem with the Mini Maestro 12. When i have it connected to the computer (through USB), my script works fine. However, when I remove the USB connection and try to run the script externally, the controller does not work as I expect it (it moves the servo more times than I specified in my code).
I am using the servo with a syringe to mimic a respiratory curve. I have posted my code.
begin
normalBreath
3000 delay
smallBreath
3000 delay
repeat
sub smallBreath
0 6 acceleration
150 6 speed
7250 6 servo
60 delay
0 6 acceleration
150 6 speed
8000 6 servo
return
sub normalBreath
0 6 acceleration
400 6 speed
4000 6 servo
300 delay
0 6 acceleration
400 6 speed
8000 6 servo
return
I am powering my entire controller off 4 AA batteries. Any ideas what is going on? Maybe the processor is not getting enough power?
Thanks,
Philip