Pages: [1]   Go Down
Author Topic: beginner, need help with dc motor control  (Read 328 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
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.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 604
Posts: 33421
Solder is electric glue
View Profile
WWW
 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.
Logged

Pages: [1]   Go Up
Jump to: