top of page

Rotate Motor on Both Direction using Arduino

Purchase Link -

Arduino Uno - https://www.myinnovation.in/product-page/arduino-nano

L298N driver - https://www.myinnovation.in/product-page/l298-motor-driver

Gear Motor - https://www.myinnovation.in/product-page/10-1000-rpm-gear-motor-12v


12v 2A Adapter - https://www.myinnovation.in/product-page/12v-2a-adapter

Jumper Wire - https://www.myinnovation.in/product-page/jumper-cable-40-pcs-set


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