Hi i am new to arduino boards and just wonder could anyone help me figure out how to get a sevo motor to run for 30mins and then stop. i have been looking at tutorials for the last couple of day and still have no joy. i have copied my program below it currently has a counter and it runs fine its just i want to swap out the counter with some sort of timer to make it run for 30 mins. Thank you
#include <Servo.h>
Servo myservo;
int pos = 0;
int myCounter = 0;
int mySwitchPin = 4;
How accurate does the thirty minutes need to be? It appears that in the worst case, your servo will continue to move for an extra ~3600mS after time is up.
Ye that program works fine..about the 3600ms it wont really make that much of a difference to the application i am doing. Cheers thanks for your help thou