My project requires that a hinged box be opened approx 90 deg. with an servo controlled with an Arduino, staying open for approx. 90 seconds. When the lid is open, then a lift mechanism with a stepper motor, also controlled by the Arduino, will raise a platform for approx 60 seconds then lower the platform and close the lid. I an new to coding the Arduino but my research leads me to multitasking with millis().state machine, Can someone help with this
I want to "sandwich" the stepper action in between the servo action
Is changing the project to having the lid opening and the platform coming up (at an appropriate slower rate of course) together,and then reversing the action, then be multitasking? If so, can someone steer me to help with this scenario?
Thanks to all for their response's. I think that I am still to much of a "newbie 1.0" to understand (and modify) the solutions offered. I did find this post.... https://learn.adafruit.com/multi-tasking-the-arduino-part-1/a-clean-sweep....which seems to be enough of a explanation (with code) for me to begin to get a grip on a solution to my project. I'm sure that I will ask for help in the near future about certain aspects of this sketch. I welcome anyone's comments on O.O.P.