SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoYong Heui Cho
 
Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino Parvesh Taneja
 
Project Report on Hand gesture controlled robot part 2
Project Report on Hand gesture controlled robot part 2Project Report on Hand gesture controlled robot part 2
Project Report on Hand gesture controlled robot part 2Pragya
 
SUN Tracking Solar panel presentation
 SUN Tracking Solar panel presentation SUN Tracking Solar panel presentation
SUN Tracking Solar panel presentationAJEETKUMAR397
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Alwin Arrasyid
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduinoBetsy Eng
 
Automatic street light using ldr
Automatic street light using ldrAutomatic street light using ldr
Automatic street light using ldrNikhil Sharma
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guidehandson28
 
Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller) Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller) Sushant Shankar
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
IRJET- Solar Powered Multifunctional Agricultural Robot
IRJET-  	  Solar Powered Multifunctional Agricultural RobotIRJET-  	  Solar Powered Multifunctional Agricultural Robot
IRJET- Solar Powered Multifunctional Agricultural RobotIRJET Journal
 
Smart Garden IOT Project
Smart Garden IOT ProjectSmart Garden IOT Project
Smart Garden IOT ProjectAntar975
 
Wireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docxWireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docxAbhishekGM10
 
bluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinhabluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinhaShubham Sinha
 
Solar tracking system using 8051 microcontroller
Solar tracking system using 8051 microcontrollerSolar tracking system using 8051 microcontroller
Solar tracking system using 8051 microcontrollerVISHAL NAGAR
 
Single Axis Solar Tracking Systems
Single Axis Solar Tracking SystemsSingle Axis Solar Tracking Systems
Single Axis Solar Tracking SystemsViral Naik
 
Bluetooth Controlled Robot Project Report
Bluetooth Controlled Robot Project ReportBluetooth Controlled Robot Project Report
Bluetooth Controlled Robot Project ReportSimarjot Singh Kalsi
 

La actualidad más candente (20)

Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino
ArduinoArduino
Arduino
 
Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino
 
Project Report on Hand gesture controlled robot part 2
Project Report on Hand gesture controlled robot part 2Project Report on Hand gesture controlled robot part 2
Project Report on Hand gesture controlled robot part 2
 
SUN Tracking Solar panel presentation
 SUN Tracking Solar panel presentation SUN Tracking Solar panel presentation
SUN Tracking Solar panel presentation
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduino
 
Automatic street light using ldr
Automatic street light using ldrAutomatic street light using ldr
Automatic street light using ldr
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
 
Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller) Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller)
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
IRJET- Solar Powered Multifunctional Agricultural Robot
IRJET-  	  Solar Powered Multifunctional Agricultural RobotIRJET-  	  Solar Powered Multifunctional Agricultural Robot
IRJET- Solar Powered Multifunctional Agricultural Robot
 
Smart Garden IOT Project
Smart Garden IOT ProjectSmart Garden IOT Project
Smart Garden IOT Project
 
Arduino Based Parking Lot System
Arduino Based Parking Lot SystemArduino Based Parking Lot System
Arduino Based Parking Lot System
 
Wireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docxWireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docx
 
bluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinhabluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinha
 
Solar tracking system using 8051 microcontroller
Solar tracking system using 8051 microcontrollerSolar tracking system using 8051 microcontroller
Solar tracking system using 8051 microcontroller
 
Breadboard
BreadboardBreadboard
Breadboard
 
Single Axis Solar Tracking Systems
Single Axis Solar Tracking SystemsSingle Axis Solar Tracking Systems
Single Axis Solar Tracking Systems
 
Bluetooth Controlled Robot Project Report
Bluetooth Controlled Robot Project ReportBluetooth Controlled Robot Project Report
Bluetooth Controlled Robot Project Report
 

Destacado

L293d(nonanimated)
L293d(nonanimated)L293d(nonanimated)
L293d(nonanimated)Utsav Jain
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293DAmit kumar
 
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 MotorFika Khamis
 
L298n dATA sHEET
L298n dATA sHEETL298n dATA sHEET
L298n dATA sHEETkdsonone
 
MECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHER
MECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHERMECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHER
MECHANICALLY OPERATED WHEELCHAIR CONVERTIBLE STRETCHERIAEME Publication
 
Circuito Integrado L293D
Circuito Integrado L293DCircuito Integrado L293D
Circuito Integrado L293DLuiz Sanchez
 
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).2016Mohamed Fawzy
 
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 16Robo India
 
Ppt on sawtooth wave form generator
Ppt on sawtooth wave form generatorPpt on sawtooth wave form generator
Ppt on sawtooth wave form generatorAmit kumar
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics componentABHISHEK MAURYA
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVRDaksh Raj Chopra
 
Breathalyzers and Driving Research PPT
Breathalyzers and Driving Research PPTBreathalyzers and Driving Research PPT
Breathalyzers and Driving Research PPTkcdavis1908
 
Sports coaching pedagogy assessment 1
Sports coaching pedagogy assessment 1Sports coaching pedagogy assessment 1
Sports coaching pedagogy assessment 1TimSpry
 
Embedded systems in automobiles
Embedded systems in automobilesEmbedded systems in automobiles
Embedded systems in automobilesTilak Marupilla
 
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)Teresa Pérez
 

Destacado (20)

L293d(nonanimated)
L293d(nonanimated)L293d(nonanimated)
L293d(nonanimated)
 
Motor driver IC L293D
Motor driver IC L293DMotor driver IC L293D
Motor driver IC L293D
 
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
 
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)
 

Similar a L298 Motor Driver Guide: Schematics, Codes & Applications

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 PlatformIRJET Journal
 
Speed Control of DC Motor
Speed Control of DC MotorSpeed Control of DC Motor
Speed Control of DC MotorMafaz Ahmed
 
major project ppt 27-4-16
major project ppt 27-4-16major project ppt 27-4-16
major project ppt 27-4-16rafiya begum
 
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]akmalKhan55
 
Essential Guide Automation
Essential Guide AutomationEssential Guide Automation
Essential Guide AutomationGilbert Brault
 
Icom 2200 h service manual
Icom 2200 h service manualIcom 2200 h service manual
Icom 2200 h service manualjoffco
 
Alcohol detection & driver safety
Alcohol detection & driver safetyAlcohol detection & driver safety
Alcohol detection & driver safetysanket jain
 
Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625Toàn Huỳnh
 
Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625Delta ch2000 m_en_20120625
Delta ch2000 m_en_20120625Toàn Huỳnh
 
FOR AUTONICS IC.pdf
FOR AUTONICS IC.pdfFOR AUTONICS IC.pdf
FOR AUTONICS IC.pdfeShikhon
 
Remote Operated Spy Robot Circuit
Remote Operated Spy Robot CircuitRemote Operated Spy Robot Circuit
Remote Operated Spy Robot CircuitlaibaNoor60
 

Similar a L298 Motor Driver Guide: Schematics, Codes & Applications (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
 

Más de Raghav Shetty

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-BluetoothRaghav Shetty
 
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 ArduinoRaghav Shetty
 
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 ArduinoRaghav Shetty
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 Raghav Shetty
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration SensorRaghav Shetty
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture SensorRaghav Shetty
 
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 MCURaghav Shetty
 
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 MCURaghav Shetty
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply Raghav Shetty
 
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 ConverterRaghav Shetty
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float SwitchRaghav Shetty
 
DTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoDTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoRaghav Shetty
 

Más de 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
 

Último

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 

Último (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 

L298 Motor Driver Guide: Schematics, Codes & Applications

  • 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