Hi everyone. I am absolutely amazed at the arduino community and hoped someone could help a simpleton like me. My girlfriends son has a school project and I am helping him build a castle. We wanted to add a motor to pull up a draw bridge. It's a small mini type castle so I found a small dc motor in something I had but hoped I could use a arduino mini or nano to make it run for a few seconds, if that.
Basically, my idea was maybe to have a laser/optical trigger. A small soldier type character goes past the entrance and the draw bridge goes up.
So something crosses the optical field, the motor turns on for a few seconds, then turns off abruptly, and stays off until tripped again.
Can anyone help me with this code? I didn't think I would need the motor shield since it would only run for a few seconds at a time at most, and even then wouldn't run many time or have any load on it.
Thanks in advance!!!