I am trying to make a stepper motor rotate a poster down (like a motorized projected screen) upon the Arduino receiving power, when the Arduino loses power for it to retract. The reasoning behind this is to connect it to a smart plug, so I can activate it via my google home. This is my first Arduino project, so I apologize if it seems really basic. I was thinking that I could use a capacitor or something to charge on power on which could be discharged on power loss by powering the motor, but I'm unsure how/where to connect a capacitor to the Arduino board.
For reference what I will be using:
- Arduino Uno board with AC power adapter plugged into smart plug
- CNC shield
- Nema 14 Stepper motor
If there is a better solution or something else I could use (I saw in someone's projector screen project that they used a potentiometer) I'd love to hear about it.