Introduction to L298

Introduction to L298
L298 is a high current and high voltage IC. Its receives TTL logic signals and operates different loads like motors, solenoid, relays etc. It is mostly used in motor driver's designing. It has two specific pins for enabling or disabling the particular device attached at its output. Its features include low saturation voltage, over temperature protection etc. Its has a lot applications including robotics, automated door lock systems, CNC machines etc. The further detail about L-298 will be given later in this tutorial. You can download L298 Datasheet by clicking below button: Download L298 Datasheet
1. L298 Pinout
- L 298 IC has 15 pins in total, each having different functions associated with them.
- The animated image of L-298 IC is shown in the figure given below.
2. L298 Features
- L-298 has a lot of amazing features including low saturation voltage, over current protection etc.
- Some of the major features are given in the table shown below.
3. L298 Ratings
- The rating of a device displays basically its power requirement for the normal operation of that device under normal circumstances.
- The current, voltage and power ratings of L 298 IC are shown in the table given below.
4. L298 Motor Controller/Driver
- L-298 IC is most commonly used to design motor driver/controller.
- So, now I am going to discuss about L298 motor controller/driver.
- L-298 motor driver or motor controller's image is shown in the figure below.
5. L298 Motor Controller Pinout
- The pinout diagram usually consists of complete pin configuration of a device.
- L-298 motor controller's pinout diagram is shown in the figure given below.
6. L298 Motor Controller Pins
- L 298 motor controller has fourteen (14) pins in total, each having different individual function.
- All of the 14 pins along with the pin number are given in the table shown below.
7. L298 Motor Controller Pin Functions
- L 298 motor controller's each pin has different functions.
- The function associated with each of the pin are given in the table shown below.
8. L298 Motor Controller Schematic Diagram
- The schematic diagram of an equipment shows its internal structure and working flow.
- L-298 motor controller schematic diagram is shown in the figure given below.
9. L298 Motor Controller Interfacing with Arduino & DC Motor
- In order to control the DC motor using Arduino UNO and H-Bridge (L 298 motor controller) first we have to build a proper circuit diagram.
- The complete circuit diagram is shown in the figure given below.
10. DC Motor Control Arduino Source Code
- I have written a simple DC motor direction control source code in Arduino software as shown below.
int dir1PinA = 6;
int dir2PinA = 7;
void setup() {
Serial.begin(9600); // baud rate
lcd.begin(20, 4);
pinMode(dir1PinA,OUTPUT);
pinMode(dir2PinA,OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
int inByte = Serial.read();
switch (inByte) {
case 'C': // Clockwise rotation
digitalWrite(dir1PinA, LOW);
digitalWrite(dir2PinA, HIGH);
Serial.println("Clockwise rotation");
Serial.println(" ");
break;
case 'S': // No rotation
digitalWrite(dir1PinA, LOW);
digitalWrite(dir2PinA, LOW);
Serial.println("No rotation");
Serial.println(" ");
break;
case 'A': // Clockwise rotation
digitalWrite(dir1PinA, HIGH);
digitalWrite(dir2PinA, LOW);
Serial.println("Anti Clockwise rotation");
Serial.println(" ");
break;
}
- You need to just copy and paste the source code in your Arduino software.
- After uploading it to the Arduino board, you will be able to control the direction of DC motor.
- You can download the circuit diagram and source code here by clicking on the button below.
- Download .rar file, extract it and enjoy the package.
11. L298 Motor Controller Applications
L-298 motor controller/driver has several different real life applications, a few of which are given below.- Robotics.
- Weight lifters.
- CNC machines.
- Automatic door control systems.
12. L298 Motor Driver Simulation in Proteus
- I have also designed a new L298D Motor Driver Library for Proteus. Using this Library you can easily simulate L298 Motor driver in Proteus.
- You can download this driver library by clicking above link.
- Here's a screenshot of how it looks in Proteus:
- You can have a look at How to use L298 in Proteus in below video:
×
![]()















































































