L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
Hello everyone! I hope you all will be absolutely fine and having fun. Today I am going to elaborate you  about Introduction to L298. L-298 is an Integrated Circuit (IC) available in two type of packages now a days which will be given later. L 298 is a dual full bridge driver that has a capability to bear high voltage as well as high current. It receives basic TTL (Transistor Transistor Logic) logic levels and is able to operate the different loads such as DC motors, stepper motors, relays etc. You should also have a look at Introduction to L23D. L-298 has two enable input to control any device by enabling or disabling it. L 298 IC is most commonly used to make motor drivers or motor controllers. These motor controllers can be controlled by any micro controller e.g Arduino, PIC, Raspberry Pi etc. They receives input from micro controllers and operate the load attached to their output terminals correspondingly. L-298 motor driver (H-Bridge) is able to control two different DC motors simultaneously. While it can control a single stepper motor as well. L 298 has two Pulse Width Modulation (PWM) pins. PWM pins are used to control the speed of the motor. By changing the voltage signal's polarity at its input we can rotate the motor in either clockwise or counter clockwise direction. It has a lot of real life applications e.g robotics, doors lock systems, CNC machines etc. You should also have a look at L298D Motor Driver Library for Proteus.

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
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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.
L298 Pinout, L298 basics, basics of L298, getting started with L298, how to get start with L298, how to use L298, L298 proteus, L298 proteus simulation
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 Arduino Source Code
  • 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:
L298 Motor Driver Library for Proteus, l298 motor driver, l298 motor driver in proteus, l298 proteus
  • You can have a look at How to use L298 in Proteus in below video:
That was the detailed discussion about Introduction to L298. I have shared almost all the important details regarding L 298 IC and motor driver/controller. If you have problem, you can ask us freely anytime you want. Our team is always here to entertain you. I will share a lot of informative topics in my upcoming tutorials. So till then take care :)