Hi all.
I am very new to Arduino, but I need some help with a school project. If you take a look at the attached picture, how would I both setup and code the motor to rotate counterclockwise for a certain amount of time (enough time that would allow the hand sanitizer bottle to pump down), have the motor stop for one second, and then have the motor rotate clockwise for the same amount of time as the first rotation so that after it is all said and done, the motor will be back in the same position that it started in???? Again, I am very new to using Arduinos so the more descriptive/easy-to-understand the better. I am not sure if this makes a difference or not but what you can probably tell from the attached PDF is that this motor will be triggered by a motion sensor. Sorry to be too needy, but a quick reply would be so greatly appreciated, I am trying to work against a deadline and this is pretty much my only hope.
COVID KILLER 2.pdf (194 KB)
COVID KILLER.pdf (160 KB)