Run DC Motor Reverse and Forward Using L293d Arduino
by Mr innovative in Circuits > Arduino
17329 Views, 8 Favorites, 0 Comments
Run DC Motor Reverse and Forward Using L293d Arduino
L293d is very fantastic component to run dc motor in both direction
Material Req.
Arduino uno
L293d
Breadboard
9v dc motor
Wire for connection
L293d
Breadboard
9v dc motor
Wire for connection
Connect
Wire all components as shown in dwg
Code
Void setup () {
pinMode(13, OUTPUT);
PinMode(12,OUTPUT);
}
Void loop(){
digitalWrite(13, HIGH);
delay(1000);
digital write(12, HIGH);
delay(1000);
}
pinMode(13, OUTPUT);
PinMode(12,OUTPUT);
}
Void loop(){
digitalWrite(13, HIGH);
delay(1000);
digital write(12, HIGH);
delay(1000);
}