The L298N motor driver module with PWM control is a great option for working with DC motors. It allows you to adjust the speed and direction of your motors easily. Additionally, this module is compatible with various microcontrollers, such as the STM32 and NodeMCU ESP8266. Therefore, it is versatile and suitable for many different projects.
The L298N motor driver module can control two DC motors simultaneously. Its H bridge motor driver setup allows you to change the motor direction easily. This module helps you build a robot or complete an automation project.
Connecting this module to a Joystick Module for Arduino lets you control motor movements more smoothly. The L298N handles different voltage levels, making it perfect for various projects. It’s designed to last, so you can count on it to keep running smoothly.
When it comes to the L298N motor driver price, it’s quite affordable. Not only do you get a reliable product, but you also save money. Moreover, the module includes built-in diodes that offer safety and protection against electrical issues. Therefore, your motors and devices remain safe.
This L298N motor driver module is easy to use, even if you’re starting. It connects easily to your DC motors and works well with other components like sensors and controllers. With this module, you can control your motors with precision and confidence.
If you’re working on a DC motor project, consider using the L298N motor driver module. Firstly, it’s a solid and budget-friendly choice. Moreover, it’s popular among hobbyists and professionals needing dependable motor control.
L298N Features
- Drives up to 4 motors.
- Power-On LED indicator.
- Dual H-Bridge Motor Driver
- Current Sense for each motor.
- Wide Voltage Range (5V to 35V)
- Heatsink for better performance.
- PWM Control for Speed Adjustment.
- High Current Capacity (2A Continuous, 3A Peak.
L298N Pinout
- Out 1: Connects to Motor A
- Out 2: Connects to Motor A
- Out 3: Connects to Motor B
- Out 4: (Can handle power from 5v to 35v, labeled as 12v)
- GND: Ground connection
- 5v: 5v input (not needed if your power source is between 7v and 35v, as it can provide 5v output in that case)
- EnA: Controls the speed of Motor A using PWM
- In1: Activates Motor A
- In2: Activates Motor A
- In3: Activates Motor B
- In4: Activates Motor B
- EnB: Controls the speed of Motor B using PWM
Controlling DC Motor using L298N Motor Driver
To fully control a DC motor, we must manage its speed and the direction in which it rotates. By using these two methods together, we can do that easily.
- PWM – For controlling speed
- H-Bridge – For controlling rotation direction
PWM – For controlling speed
You can control a DC motor’s speed by adjusting the input voltage. One simple method is using PWM, which stands for Pulse Width Modulation. With PWM, the motor receives quick bursts of power rather than a continuous flow. The motor’s speed depends on how long each burst (or pulse) lasts, called the Duty Cycle. Specifically, the longer the pulses are ON, the faster the motor will spin.
When you increase the duty cycle, more voltage goes to the DC motor, so it runs faster. On the other hand, if you decrease the duty cycle, the motor receives less voltage, which makes it slow down.
H-Bridge – For controlling rotation direction:
You can change the direction a DC motor spins by adjusting the input voltage. For example, you can use an H-Bridge to do this. An H-bridge is a simple circuit with four switches arranged in an H shape. The motor is placed in the middle of this setup.
By closing two switches at once, you reverse the voltage applied to the motor, which changes the direction it spins.
L298N Motor Driver IC: The large black chip with a big heat sink on the module is the L298N. This chip is a motor driver that can simultaneously control two DC motors. Because it can drive each motor separately, it’s perfect for projects like building two-wheel robots.
Power Supply: The L298N motor driver module connects to power through easy-to-use 3-pin screw terminals. These pins are used as follows: one for the motor’s power supply (VS), one for ground, and another for a 5V logic power supply (VSS). Additionally, this setup makes it straightforward to connect and power your motor.
The module includes a 5V regulator from STMicroelectronics. A jumper wire allows you to turn it on or off.
When you place the jumper wire, the 5V regulator turns on and provides power from the motor supply. The 5V input terminal then works as an output pin, giving out 5V at 0.5A. You can use it to power your Arduino Uno or other devices that need a 5V power supply. It’s perfect for powering various projects that require a stable 5V source.
If you remove the jumper wires, the 5V regulator will turn off. You’ll need to supply 5V separately through the 5 Volt input terminal.
Wiring L298N Motor Driver Module with Arduino UNO
We learned about the L298N motor driver module; we can start connecting it to the Arduino Uno board.
First, you have to connect the L298N module to the motors. In this concept, we will use a DC motor, which usually controls BO wheels. They are rated 3 to 12V. Connect an external 12V power supply to the VCC terminal to increase their voltage. Due to the voltage drop inside the L298N IC, the motors receive about 10V. This lower voltage might cause the motors to run a bit slower. But that’s fine.
Next, we must supply 5 volts to the L298N’s logic circuit. We will use the built-in 5V regulator to get 5 volts from the motor power supply. Additionally, make sure the 5V-EN jumper wire stays connected. This ensures everything works correctly.
We connect the input and enable pins (ENA, IN1, IN2, IN3, IN4, and ENB) of the L298N module to six digital output pins on the Arduino (9, 8, 7, 5, 4, and 3). Additionally, remember that pins 9 and 3 on the Arduino support PWM.
Connect one motor to terminals A (OUT1 & OUT2) and B (OUT3 & OUT4). If needed, you can swap the motor connections between these terminals. There is no right or wrong way to do this.
Vayuyaan is committed to customer satisfaction. We import each product and thoroughly test it to meet supplier standards. After all the possible quality checks, we make the product available to our customers.
Reviews
There are no reviews yet.