I just purchased an Arduino and Motor controller from Adafruit along with a stepper motor. I have everything hooked up and working. The problem is I am having trouble with the code since I am not really a programmer.
I wanted to have the servo go forward a number of revolutions, stay there for a few hours and then reverse a number of revolutions back to its original position. The application would be to lower a small shelf, sit for awhile and then return back into the ceiling. I would also like to use a push-button to override the timer and make the shelf go up or down.
I cannot figure out a few methods. Such as the timer ? Is there a 24 hr. timer built into the Arduino ? Also the ability to make the stepper motor turn a number of revolutions. Are there preset calls/programs that in the Arduino code to say ex. “number of forward rev = 100”.
Any help much appreciated.
Jim
My Flow would be:
-
Timer sets off at 6:00pm
-
Servo goes forward direction a number of turns and drops shelf
3.Timer sets off at 8:00pm
- Servo goes backward direction a number of turns shelf returns back to ceiling.
5 Timer sets off at 6:00pm
6.Process repeats
- Ability to override timer by pushing one of two switches. Switch one, UP, switch two Down.