Purchase Link -
Arduino Uno - https://www.myinnovation.in/product-page/arduino-nano
L298N driver - https://www.myinnovation.in/product-page/l298-motor-driver
12v 2A Adapter - https://www.myinnovation.in/product-page/12v-2a-adapter
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
Comments