Show Posts
|
|
Pages: [1] 2 3
|
|
14
|
Forum 2005-2010 (read only) / Interfacing / how to run a dc motor with arduino
|
on: March 22, 2010, 11:56:23 pm
|
|
hi,
i have a dc motor that runs with 1.2v battery. I want to run it with arduino. I wrote this code but it is not working.
int motorPin = 9;
void setup() { pinMode(motorPin, OUTPUT); } void loop() { analogWrite(motorPin, 255); }
pls give me the sollution.
|
|
|
|
|