Zawar
Published © MPL-2.0

Arduino Low Cost High Power Motor Driver 1 to 220V

In this project, I will show you how to make a low cost and high power motor driver using relays, NPN transistors and resisters.

IntermediateProtip4,891
Arduino Low Cost High Power Motor Driver 1 to 220V

Things used in this project

Story

Read more

Schematics

Off Condition

Code

Motor Driver

Arduino
const int in1 = 9;
const int in2 = 8;
const int in3 = 4;
const int in4 = 3;

void setup() {
  pinMode (in1, OUTPUT);
  pinMode (in2, OUTPUT);
  pinMode (in3, OUTPUT);
  pinMode (in4, OUTPUT);

}

void loop() {
      //Move Farword 
      digitalWrite(in1, HIGH); 
      digitalWrite(in2, LOW); 
      digitalWrite(in3, HIGH); 
      digitalWrite(in4, LOW);
      delay(2000);

      //Move Reverse 
      digitalWrite(in1, LOW); 
      digitalWrite(in2, HIGH); 
      digitalWrite(in3, LOW); 
      digitalWrite(in4, HIGH);
      delay(2000);

      //Move Left 
      digitalWrite(in1, HIGH); 
      digitalWrite(in2, LOW); 
      digitalWrite(in3, LOW); 
      digitalWrite(in4, HIGH);
      delay(2000);

     //Move Right
      digitalWrite(in1, LOW); 
      digitalWrite(in2, HIGH); 
      digitalWrite(in3, HIGH); 
      digitalWrite(in4, LOW);
      delay(2000);
     
      
}

Credits

Zawar

Zawar

0 projects • 2 followers

Comments