Pages: [1]   Go Down
Author Topic: beginner, need help with dc motor control  (Read 353 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, i'm a new arduino user and i don't know very much about programming.
This is what i want my dc motor to do:
1. I press a push button, the motor runs for a few seconds
2. the motor stops, and doesn't start until i press the button again.

i have the motor, a push button and the arduino uno board
thankful for any help.

Manchester (England England)
Offline Offline
Brattain Member
Karma: 637
Posts: 34581
Solder is electric glue
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You need some sort of driver to convert the small ammount of current from the pin into enough to drive the motor.
As for software it is just like you do the same thing with a LED look at the examples in the arduino software about detecting a change in state of the input, not just reading its value.

Pages: [1]   Go Up
Jump to: