Project tutorial
MOTOR Driver L293D FOR DIY ROBOT KITS MADE BY SDTECH ROBOTIC

MOTOR Driver L293D FOR DIY ROBOT KITS MADE BY SDTECH ROBOTIC © GPL3+

MOTOR DRIVER L293D FOR DIY ROBOT KITS MADE BY SDTECH ROBOTICS L293D MOTOR DRIVER FOR 5-12V motor

  • 748 views
  • 0 comments
  • 5 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

MOTOR DRIVER L293D FOR DIY ROBOT KITS made by SDTECH ROBOTICS

Code

L293d code Arduino
//L293D
//Motor A
const int motorPin1  = 5;  // Pin 14 of L293
const int motorPin2  = 6;  // Pin 10 of L293
//Motor B
const int motorPin3  = 10; // Pin  7 of L293
const int motorPin4  = 9;  // Pin  2 of L293

//This will run only one time.
void setup(){
 
    //Set pins as outputs
    pinMode(motorPin1, OUTPUT);
    pinMode(motorPin2, OUTPUT);
    pinMode(motorPin3, OUTPUT);
    pinMode(motorPin4, OUTPUT);
    
    //Motor Control - Motor A: motorPin1,motorpin2 & Motor B: motorpin3,motorpin4

    //This code  will turn Motor A clockwise for 2 sec.
    digitalWrite(motorPin1, HIGH);
    digitalWrite(motorPin2, LOW);
    digitalWrite(motorPin3, LOW);
    digitalWrite(motorPin4, LOW);
    delay(2000); 
    //This code will turn Motor A counter-clockwise for 2 sec.
    digitalWrite(motorPin1, LOW);
    digitalWrite(motorPin2, HIGH);
    digitalWrite(motorPin3, LOW);
    digitalWrite(motorPin4, LOW);
    delay(2000);
    
    //This code will turn Motor B clockwise for 2 sec.
    digitalWrite(motorPin1, LOW);
    digitalWrite(motorPin2, LOW);
    digitalWrite(motorPin3, HIGH);
    digitalWrite(motorPin4, LOW);
    delay(2000); 
    //This code will turn Motor B counter-clockwise for 2 sec.
    digitalWrite(motorPin1, LOW);
    digitalWrite(motorPin2, LOW);
    digitalWrite(motorPin3, LOW);
    digitalWrite(motorPin4, HIGH);
    delay(2000);    
    
    //And this code will stop motors
    digitalWrite(motorPin1, LOW);
    digitalWrite(motorPin2, LOW);
    digitalWrite(motorPin3, LOW);
    digitalWrite(motorPin4, LOW);
  
}


void loop(){
  

}

Schematics

schematics
L293d sdtech robotics schematic 8rfmy0gugi
L293D SDTECH ROBOTICS PCB BOTTOM SIDE
L293d sdtech robotics pcb bottom side h1wnp33iuj
L293D SDTECH ROBOTICS PCB TOP SIDE
L293d sdtech robotics pcb top side qjht9lqt5z
L293D SDTECH ROBOTICS
L293d sdtech robotics efa5txrpjl

Comments

Similar projects you might like

DIY 3-Axis CNC VMC

Project tutorial by Amit Nandi (BigWiz)

  • 23,478 views
  • 11 comments
  • 84 respects

Amazing 6WD Off-Road Robot | Arduino RC Robot

Project tutorial by Jithin Sanal

  • 10,888 views
  • 0 comments
  • 58 respects

How to Make a Gesture Control Robot at Home

Project tutorial by Shubham Shinganapure

  • 11,461 views
  • 14 comments
  • 66 respects

Controlling a Robot with a PlayStation Controller

Project tutorial by Andrew R Gross and Jonathan Gross

  • 7,437 views
  • 1 comment
  • 10 respects

Arduino Motor Shield PCB V1 | 4 Motors at Once

Project tutorial by Jithin Sanal

  • 3,176 views
  • 0 comments
  • 15 respects
Add projectSign up / Login