L298N MOTOR DRIVER MODULE

by HarshS91 in Circuits > Arduino

17926 Views, 7 Favorites, 0 Comments

L298N MOTOR DRIVER MODULE

L298N MODULE (2).jpg

This is an instructable on how to control a DC motor and run a bipolar stepper motor by using the L298N motor driver module.
Whenever we use the DC motors for any project the main points are,

  1. speed of DC motor,
  2. The direction of the DC motor.

This could be achieved by using the motor diver module so, I use the L298N motor driver module because it is cheap and easy to use.

Supplies

why we will use a motor driver/motor driver module?

because the microcontroller was not delivering a specific amount of current and voltage which will reruired for motors etc.

Specification & Features of L298N Module

l298.jpg

The L298N is a dual-channel H-Bridge motor driver capable of driving two DC motors and one stepper motor. means it can individually drive up to two DC motor for any applications like 2WD robots, Small drill machine, solenoid valve, DC lock etc.

An L298N motor driver module consists of an L298N motor driver chip(IC). which is an integrated monolithic circuit in a 15-lead Multiwatt package. It is a high voltage, a high current dual full-bridge driver designed to accept standard TTL logic levels. For more details the datasheet given to the below link.

L298N datasheet

  • Logical voltage : 5V
  • Drive voltage : 5V-35V
  • Logical current : 0-36mA
  • Drive current : 2A (MAX per bridge)
  • Max power : 25W
  • voltage drop : 2v
  • Dimensions : 43 x 43 x 26mm
  • Weight : 26g

Functions of Pins & Terminals of Module

pin desc.jpg
GGHG.PNG
notes.PNG
  • OUT 1, OUT 2: terminals are used to connect a Device(DC motor 1).
  • OUT 3, OUT 4: terminals are used to connect a Device(DC motor 2).

&

  • and all these(OUT 1, 2, 3, 4) are used to connect a bipolar DC stepper motor.
  • Vs: This pin is used to provide a positive power to a motor driver module/devices.
  • GND: for common ground.
  • 5v(Logic power supply): It is an input and output terminal, If a 5V-EN jumper is in place, this pin acts as output and provide 5v from voltage regulator on board. If a 5V-EN jumper is removed, this pin act as an input(means the module is required 5v for logic enable).
  • EN A: It will control the speed of DC motor 1, by removing the jumper(so, PWM is enable).
  • EN B: It will control the speed of DC motor 2, by removing the jumper(so, PWM is enable).
  • I/P 1, 2: These pins control the direction of DC motors 1. means Forward & Reverse.
  • I/P 3, 4: These pins control the direction of DC motors 2. means Forward & Revers.
  • For more info about the pin (I/P 1, 2, 3, 4) see above photos.

DC Motors With L298N Motor Driver Module

Untitled Sketch_bb.jpg

COMPONENTS

  • Arduino UNO(with USB cable)
  • L298N motor driver module
  • 6 x male to female jumper wires
  • 1 x male to male jumper wires
  • 12v Battery
  • 2 x DC motors(i use 300RPM)
  • Wires
  • Arduino IDE(software for writing code)

First, connect the circuit as per the above diagram and then upload belove code to Arduino UNO.
Note:

  • take common ground.

Downloads

Bipolar Stepper Motor With L298N Motor Driver Module

stepper_bb.png

COMPONENTS

  • Arduino UNO(with USB cable)
  • L298N motor driver module
  • 8 x male to female jumper wires
  • 1 x male to male jumper wires
  • 12v Battery
  • Bipolar stepper motor(i use NEMA 17)
  • Wires
  • Arduino IDE(software for writing code)

First, connect the components as per above-given photos then upload the beloved code to Arduino UNO.

Notes:

  • Take common ground,
  • Use the multimeter in continuity mode for chek the proper coil of a stepper motor.

Downloads