SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Downloaden Sie, um offline zu lesen
www.researchdesignlab.com Page 1
L298MOTOR DRIVER
L298 MOTOR DRIVER
www.researchdesignlab.com Page 2
L298MOTOR DRIVER
Contents
L298 MOTOR DRIVER................................................................................................................. 1
OVERVIEW ................................................................................................................................... 3
INTRODUCTION ...................................................................................................................... 3
FEATURES ................................................................................................................................ 3
APPLICATION .......................................................................................................................... 3
L298N IC .................................................................................................................................... 4
CIRCUIT DIAGRAM ................................................................................................................ 4
Specifications.............................................................................................................................. 5
PIN DETAILS ............................................................................................................................ 5
WORKING ................................................................................................................................. 6
L298 MOTOR DRIVER SCHEMATIC AND CODES............................................................. 8
ARDUINO CODE ...................................................................................................................... 8
RELATED PRODUCTS .......................................................................................................... 12
www.researchdesignlab.com Page 3
L298MOTOR DRIVER
OVERVIEW
INTRODUCTION
The L298 Driver is a high voltage, high current dual ful bridge
driver designed to accept standard TTL logic levels and drive
inductive loads such relays, solenoids, DC and stepping motors.
Two enable inputs are provided to enable or disable the device
independently of the input signals. The emitters of the lower
transistors of each bridge are connected together the
corresponding external terminal can be used for the connection of an external sensing resistor.
FEATURES
 Operating supply voltage up to 46 V
 .Total DC current up to 4 A
 .Low saturation voltage
 .Over temperature protection.
 .Logical "0" input voltage upto1.5 V (HIGH NOISE IMMUNITY)
 Two motor direction indicator LEDs
 An onboard user-accessible 5V low-dropout regulator
 Schottky EMF-protection diodes
 Screw-terminals for power and motor connections.
 High quality PCB FR4 Grade with FPT Certified.
APPLICATION
1. MCU controlled vehicle.
2. Wheel robots.
www.researchdesignlab.com Page 4
L298MOTOR DRIVER
L298N IC
CIRCUIT DIAGRAM
www.researchdesignlab.com Page 5
L298MOTOR DRIVER
SPECIFICATIONS
PARAMETRE VALUE
Operating Voltage Up to 46v
DC Current 4A
PIN DETAILS
www.researchdesignlab.com Page 6
L298MOTOR DRIVER
WORKING
The L298 integrates two power output stages (A,B). The power output stage is a bridge
configuration and its outputs can drive an inductive load in common or differential mode,
depending on the state of the inputs. The current that flows through the load comes out from the
bridge at the sense output : an external resistor (RSA, RSB.) allows to detect the intensity of this
current.
www.researchdesignlab.com Page 7
L298MOTOR DRIVER
INPUT STAGE
Each bridge is driven by means of four gates the input of which are In1 ; In2 ; EnA and In3 ; In4;
EnB. The In inputs set the bridge state when The En input is high ; a low state of the En input
inhibits the bridge. All the inputs are TTL compatible. A non inductive capacitor, usually of 100
nF, must be foreseen between both Vs and Vss, to ground, as near as possible to GND pin. When
the large capacitor of the power supply is too far from the IC, a second smaller one must be
foreseen near the L298. The sense resistor, not of a wire wound type, must be grounded near the
negative pole of Vs that must be near the GND pin of the IC. Each input must be connected to
the source of the driving signals by means of a very short path. Turn-On and Turn-Off : Before
to Turn-ON the Supply Voltage and before to Turn it OFF, the Enable in-put must be driven to
the Low state.
CURRENT SENSING
Pin 1,15 –current sensing A and B
Between this pin and ground is connected the sense resistor to control the current of the load.
www.researchdesignlab.com Page 8
L298MOTOR DRIVER
L298 MOTOR DRIVER SCHEMATIC AND CODES
ATMEL
http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/ATMEL/L298%20MOTO
R.jpg
http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/ATMEL/L298%20MOTO
R.C
PIC
http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/PIC/L298%20MOTOR.jpg
http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/PIC/L298%20MOTOR.c
To buy this product click the below link
http://researchdesignlab.com/interfacing-board/stepper-servo-motor-driver/l298-motor-
driver.html
ARDUINO CODE
L298 MOTOR DRIVER
/*
* Project name:
DC Moter
* Copyright
(c) Researchdesignlab.com
* Description:
* Test configuration:
MCU: ATMEGA328
Dev.Board: Arduino uno
Oscillator: 16 MHz
Software: Arduino
*/
int in1=2;
int in2=3; //pin connections from arduino to dc motor driver
int in3=4;
int in4=5;
www.researchdesignlab.com Page 9
L298MOTOR DRIVER
void setup()
{
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(in3,OUTPUT);
pinMode(in4,OUTPUT);
}
void loop()
{
digitalWrite(in1, LOW);
digitalWrite(in2,LOW); //motor1 is on and motor2 is off
digitalWrite(in3, HIGH);
digitalWrite(in4, HIGH);
delay(500); // delay of 500ms
digitalWrite(in1, HIGH);
digitalWrite(in2,HIGH);
digitalWrite(in3, LOW); //motor2 is on and motor1 is off
digitalWrite(in4, LOW);
delay(500); // delay of 500ms
digitalWrite(in1, HIGH);
digitalWrite(in2,LOW);
digitalWrite(in3, HIGH);
digitalWrite(in4, LOW);
delay(500); // delay of 500ms
digitalWrite(in1, LOW);
digitalWrite(in2,HIGH);
digitalWrite(in3, LOW);
digitalWrite(in4, HIGH);
delay(500); // delay of 500ms
digitalWrite(in1, LOW);
digitalWrite(in2,LOW);
digitalWrite(in3, LOW);
digitalWrite(in4, LOW);
www.researchdesignlab.com Page 10
L298MOTOR DRIVER
delay(500); // delay of 500ms
}
PWM SPEED CONTROL OF DC MOTOR:
/*
* Project name:
PWM control of DC Motor
* Copyright
(c) Researchdesignlab.com
* Description:
* Test configuration:
MCU: ATMEGA328
Dev.Board: Arduino uno
Oscillator: 16 MHz
Software: Arduino
*/
int E1 = 5; //Enable Pin
int IN1 = 3;
int IN2=4;
void setup()
{
Serial.begin(9600); //Set Baud Rate
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
}
void loop()
{
int value;
www.researchdesignlab.com Page 11
L298MOTOR DRIVER
for(value = 0 ; value <= 255; value+=5)
{
digitalWrite(IN1,HIGH);
digitalWrite(IN2, LOW);
analogWrite(E1, value); //PWM Speed Control
Serial.println(value);
delay(30);
}
}
www.researchdesignlab.com Page 12
L298MOTOR DRIVER
RELATED PRODUCTS
DIY UNO PLAY BREAD BOARD PIC PROJECT BOARD
ATMEL PROJECT BOARD

Weitere ähnliche Inhalte

Was ist angesagt?

Final report on line follower
Final report on line followerFinal report on line follower
Final report on line follower
Priya Hada
 
Automatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counterAutomatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counter
Niladri Dutta
 

Was ist angesagt? (20)

PLC presentation
PLC presentationPLC presentation
PLC presentation
 
Final report on line follower
Final report on line followerFinal report on line follower
Final report on line follower
 
Arduino
ArduinoArduino
Arduino
 
Stepper motor control
Stepper motor controlStepper motor control
Stepper motor control
 
Plc (programming)
Plc (programming)Plc (programming)
Plc (programming)
 
Final report of line follower robot
Final report of line follower robotFinal report of line follower robot
Final report of line follower robot
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
Ultrasonic sensor
Ultrasonic sensorUltrasonic sensor
Ultrasonic sensor
 
Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Hbridge
HbridgeHbridge
Hbridge
 
Pressure sensor Measurement
Pressure  sensor Measurement Pressure  sensor Measurement
Pressure sensor Measurement
 
Obstacle avoiding Robot
Obstacle avoiding RobotObstacle avoiding Robot
Obstacle avoiding Robot
 
Fire Fighting Robot by saurabh
Fire Fighting Robot by saurabhFire Fighting Robot by saurabh
Fire Fighting Robot by saurabh
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Automatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counterAutomatic room light controller with bidirectional visitor counter
Automatic room light controller with bidirectional visitor counter
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automation
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
 
IR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNOIR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNO
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293D
 

Andere mochten auch

L293d(nonanimated)
L293d(nonanimated)L293d(nonanimated)
L293d(nonanimated)
Utsav Jain
 

Andere mochten auch (20)

L293d(nonanimated)
L293d(nonanimated)L293d(nonanimated)
L293d(nonanimated)
 
Motor driver
Motor driverMotor driver
Motor driver
 
L293D
L293DL293D
L293D
 
Advantages and Disadvatages of AC/DC Motor
Advantages and Disadvatages of AC/DC MotorAdvantages and Disadvatages of AC/DC Motor
Advantages and Disadvatages of AC/DC Motor
 
Dc Motor
Dc MotorDc Motor
Dc Motor
 
HAND GESTURE CONTROLLED WHEEL CHAIR
HAND GESTURE CONTROLLED WHEEL CHAIRHAND GESTURE CONTROLLED WHEEL CHAIR
HAND GESTURE CONTROLLED WHEEL CHAIR
 
L298n dATA sHEET
L298n dATA sHEETL298n dATA sHEET
L298n dATA sHEET
 
MECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHER
MECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHERMECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHER
MECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHER
 
Circuito Integrado L293D
Circuito Integrado L293DCircuito Integrado L293D
Circuito Integrado L293D
 
07 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).201607 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).2016
 
Servo motor and AVR Atmel Atmega 16
Servo motor and AVR  Atmel Atmega 16Servo motor and AVR  Atmel Atmega 16
Servo motor and AVR Atmel Atmega 16
 
Ppt on sawtooth wave form generator
Ppt on sawtooth wave form generatorPpt on sawtooth wave form generator
Ppt on sawtooth wave form generator
 
Arduino
ArduinoArduino
Arduino
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
 
Android & IOS Automation
Android & IOS AutomationAndroid & IOS Automation
Android & IOS Automation
 
Breathalyzers and Driving Research PPT
Breathalyzers and Driving Research PPTBreathalyzers and Driving Research PPT
Breathalyzers and Driving Research PPT
 
Sports coaching pedagogy assessment 1
Sports coaching pedagogy assessment 1Sports coaching pedagogy assessment 1
Sports coaching pedagogy assessment 1
 
Embedded systems in automobiles
Embedded systems in automobilesEmbedded systems in automobiles
Embedded systems in automobiles
 
Construcción y consolidación del estado liberal (1833-1874)
Construcción y consolidación del estado liberal (1833-1874)Construcción y consolidación del estado liberal (1833-1874)
Construcción y consolidación del estado liberal (1833-1874)
 

Ähnlich wie L298 Motor Driver

major project ppt 27-4-16
major project ppt 27-4-16major project ppt 27-4-16
major project ppt 27-4-16
rafiya begum
 
Icom 2200 h service manual
Icom 2200 h service manualIcom 2200 h service manual
Icom 2200 h service manual
joffco
 

Ähnlich wie L298 Motor Driver (20)

Dual Converter using Thyristors
Dual Converter using ThyristorsDual Converter using Thyristors
Dual Converter using Thyristors
 
An 1072
An 1072An 1072
An 1072
 
C2000 m en_20120201
C2000 m en_20120201C2000 m en_20120201
C2000 m en_20120201
 
Metal Detector Robotic Vehicle
Metal Detector Robotic VehicleMetal Detector Robotic Vehicle
Metal Detector Robotic Vehicle
 
IRJET - Semi-Automated Electric Automobile Charger Testing Platform
IRJET -  	  Semi-Automated Electric Automobile Charger Testing PlatformIRJET -  	  Semi-Automated Electric Automobile Charger Testing Platform
IRJET - Semi-Automated Electric Automobile Charger Testing Platform
 
Speed Control of DC Motor
Speed Control of DC MotorSpeed Control of DC Motor
Speed Control of DC Motor
 
major project ppt 27-4-16
major project ppt 27-4-16major project ppt 27-4-16
major project ppt 27-4-16
 
Ctara report
Ctara reportCtara report
Ctara report
 
En mtac 01_um_b
En mtac 01_um_bEn mtac 01_um_b
En mtac 01_um_b
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
 
Essential Guide Automation
Essential Guide AutomationEssential Guide Automation
Essential Guide Automation
 
Icom 2200 h service manual
Icom 2200 h service manualIcom 2200 h service manual
Icom 2200 h service manual
 
INTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEMINTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEM
 
Alcohol detection & driver safety
Alcohol detection & driver safetyAlcohol detection & driver safety
Alcohol detection & driver safety
 
Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625
 
Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625
 
FOR AUTONICS IC.pdf
FOR AUTONICS IC.pdfFOR AUTONICS IC.pdf
FOR AUTONICS IC.pdf
 
report
reportreport
report
 
Remote Operated Spy Robot Circuit
Remote Operated Spy Robot CircuitRemote Operated Spy Robot Circuit
Remote Operated Spy Robot Circuit
 
Part 2 master
Part 2 masterPart 2 master
Part 2 master
 

Mehr von Raghav Shetty

Mehr von Raghav Shetty (20)

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485
 
Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
 
LCD Keypad Shield
LCD Keypad ShieldLCD Keypad Shield
LCD Keypad Shield
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
 
Force Sensor
Force SensorForce Sensor
Force Sensor
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
 
DTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoDTMF Decoder Shield for Arduino
DTMF Decoder Shield for Arduino
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

L298 Motor Driver

  • 2. www.researchdesignlab.com Page 2 L298MOTOR DRIVER Contents L298 MOTOR DRIVER................................................................................................................. 1 OVERVIEW ................................................................................................................................... 3 INTRODUCTION ...................................................................................................................... 3 FEATURES ................................................................................................................................ 3 APPLICATION .......................................................................................................................... 3 L298N IC .................................................................................................................................... 4 CIRCUIT DIAGRAM ................................................................................................................ 4 Specifications.............................................................................................................................. 5 PIN DETAILS ............................................................................................................................ 5 WORKING ................................................................................................................................. 6 L298 MOTOR DRIVER SCHEMATIC AND CODES............................................................. 8 ARDUINO CODE ...................................................................................................................... 8 RELATED PRODUCTS .......................................................................................................... 12
  • 3. www.researchdesignlab.com Page 3 L298MOTOR DRIVER OVERVIEW INTRODUCTION The L298 Driver is a high voltage, high current dual ful bridge driver designed to accept standard TTL logic levels and drive inductive loads such relays, solenoids, DC and stepping motors. Two enable inputs are provided to enable or disable the device independently of the input signals. The emitters of the lower transistors of each bridge are connected together the corresponding external terminal can be used for the connection of an external sensing resistor. FEATURES  Operating supply voltage up to 46 V  .Total DC current up to 4 A  .Low saturation voltage  .Over temperature protection.  .Logical "0" input voltage upto1.5 V (HIGH NOISE IMMUNITY)  Two motor direction indicator LEDs  An onboard user-accessible 5V low-dropout regulator  Schottky EMF-protection diodes  Screw-terminals for power and motor connections.  High quality PCB FR4 Grade with FPT Certified. APPLICATION 1. MCU controlled vehicle. 2. Wheel robots.
  • 4. www.researchdesignlab.com Page 4 L298MOTOR DRIVER L298N IC CIRCUIT DIAGRAM
  • 5. www.researchdesignlab.com Page 5 L298MOTOR DRIVER SPECIFICATIONS PARAMETRE VALUE Operating Voltage Up to 46v DC Current 4A PIN DETAILS
  • 6. www.researchdesignlab.com Page 6 L298MOTOR DRIVER WORKING The L298 integrates two power output stages (A,B). The power output stage is a bridge configuration and its outputs can drive an inductive load in common or differential mode, depending on the state of the inputs. The current that flows through the load comes out from the bridge at the sense output : an external resistor (RSA, RSB.) allows to detect the intensity of this current.
  • 7. www.researchdesignlab.com Page 7 L298MOTOR DRIVER INPUT STAGE Each bridge is driven by means of four gates the input of which are In1 ; In2 ; EnA and In3 ; In4; EnB. The In inputs set the bridge state when The En input is high ; a low state of the En input inhibits the bridge. All the inputs are TTL compatible. A non inductive capacitor, usually of 100 nF, must be foreseen between both Vs and Vss, to ground, as near as possible to GND pin. When the large capacitor of the power supply is too far from the IC, a second smaller one must be foreseen near the L298. The sense resistor, not of a wire wound type, must be grounded near the negative pole of Vs that must be near the GND pin of the IC. Each input must be connected to the source of the driving signals by means of a very short path. Turn-On and Turn-Off : Before to Turn-ON the Supply Voltage and before to Turn it OFF, the Enable in-put must be driven to the Low state. CURRENT SENSING Pin 1,15 –current sensing A and B Between this pin and ground is connected the sense resistor to control the current of the load.
  • 8. www.researchdesignlab.com Page 8 L298MOTOR DRIVER L298 MOTOR DRIVER SCHEMATIC AND CODES ATMEL http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/ATMEL/L298%20MOTO R.jpg http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/ATMEL/L298%20MOTO R.C PIC http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/PIC/L298%20MOTOR.jpg http://forum.researchdesignlab.com/L298%20MOTOR%20DRIVER/PIC/L298%20MOTOR.c To buy this product click the below link http://researchdesignlab.com/interfacing-board/stepper-servo-motor-driver/l298-motor- driver.html ARDUINO CODE L298 MOTOR DRIVER /* * Project name: DC Moter * Copyright (c) Researchdesignlab.com * Description: * Test configuration: MCU: ATMEGA328 Dev.Board: Arduino uno Oscillator: 16 MHz Software: Arduino */ int in1=2; int in2=3; //pin connections from arduino to dc motor driver int in3=4; int in4=5;
  • 9. www.researchdesignlab.com Page 9 L298MOTOR DRIVER void setup() { pinMode(in1,OUTPUT); pinMode(in2,OUTPUT); pinMode(in3,OUTPUT); pinMode(in4,OUTPUT); } void loop() { digitalWrite(in1, LOW); digitalWrite(in2,LOW); //motor1 is on and motor2 is off digitalWrite(in3, HIGH); digitalWrite(in4, HIGH); delay(500); // delay of 500ms digitalWrite(in1, HIGH); digitalWrite(in2,HIGH); digitalWrite(in3, LOW); //motor2 is on and motor1 is off digitalWrite(in4, LOW); delay(500); // delay of 500ms digitalWrite(in1, HIGH); digitalWrite(in2,LOW); digitalWrite(in3, HIGH); digitalWrite(in4, LOW); delay(500); // delay of 500ms digitalWrite(in1, LOW); digitalWrite(in2,HIGH); digitalWrite(in3, LOW); digitalWrite(in4, HIGH); delay(500); // delay of 500ms digitalWrite(in1, LOW); digitalWrite(in2,LOW); digitalWrite(in3, LOW); digitalWrite(in4, LOW);
  • 10. www.researchdesignlab.com Page 10 L298MOTOR DRIVER delay(500); // delay of 500ms } PWM SPEED CONTROL OF DC MOTOR: /* * Project name: PWM control of DC Motor * Copyright (c) Researchdesignlab.com * Description: * Test configuration: MCU: ATMEGA328 Dev.Board: Arduino uno Oscillator: 16 MHz Software: Arduino */ int E1 = 5; //Enable Pin int IN1 = 3; int IN2=4; void setup() { Serial.begin(9600); //Set Baud Rate pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); } void loop() { int value;
  • 11. www.researchdesignlab.com Page 11 L298MOTOR DRIVER for(value = 0 ; value <= 255; value+=5) { digitalWrite(IN1,HIGH); digitalWrite(IN2, LOW); analogWrite(E1, value); //PWM Speed Control Serial.println(value); delay(30); } }
  • 12. www.researchdesignlab.com Page 12 L298MOTOR DRIVER RELATED PRODUCTS DIY UNO PLAY BREAD BOARD PIC PROJECT BOARD ATMEL PROJECT BOARD