by AbideMoment » Sat Nov 10, 2012 7:07 pm
For my engineering class, I need to design a robot (car) that travels 10 feet, drops off a payload on a target, then proceeds 10 feet to the finish line. What I have set up is an Arduino Uno with an Adafruit motorshield that runs to a DC motor inside a gearbox and a small RC micro servo with an arm that knocks the payload off the back of the robot. I want the motor shield to run the DC motor for however long it takes to go 10 feet, then pause, then initiate the servo to knock off the payload, then reinitiate the DC motor so it can proceed to the finish line. How do I get the motor to just simply run at a constant speed for a couple seconds, then stop, then reinitiate after the servo does its job? Thanks!