top of page

Rotate Motor on Both Direction using Arduino

Purchase Link -



Code -

void setup()

{

pinMode(6,OUTPUT);

pinMode(7,OUTPUT);

}

void loop()

{

digitalWrite(6,HIGH);

digitalWrite(7,LOW);

delay(780);

digitalWrite(6,LOW);

digitalWrite(7,HIGH);

delay(780);

}

How to Change for Different Motor -

For 100 RPM set 780

Here i set for 100 RPM.

Now for 60 RPM its 1300


Video Tutorials -



bottom of page