Running a single DC motor for a specific amount of time using Arduino Uno.? Answered
This will be my first experience with arduino or any micro controller as well as my first dip into android app development.
I need to run a single bi-directional DC motor in one direction for a set amount of time, say 10 sec, and then later run it in the reverse direction for the same amount of time. The time between these operations will average a couple of hours. The command will be sent from an Android app via Bluetooth to the Uno. I don't need variable speeds, just the ability to set the run-time duration and direction. Also the run-time will be set once and stay the same, it does not vary.
I assume I can develop an app that sends some sort of command (C1) to the arduino and when the arduino receives C1 it can turn the motor on for a set amount of time in direction 1 then turn it off. Similarly when the app sends a new command, C2, the arduino then could run the motor in direction 2 for a set amount of time.
Is this assumption correct?
What sort of commands would the app have to send to make this happen?
Is there an easier way (run-time set in app not arduino code for example)?
I also assume I can use one of the simple motor control circuits here on instructables with this setup. Yes or no?
Sorry if these are incredibly simple questions and thanks for helping a Arduino virgin out.