Description :
Dual-channel H-bridge driver working mode creates higher working efficiency, L298N as main chip, ST corporation production. Can drive one 2-phase stepper motor, one 4-phase stepper motor or two DC motors. To avoid damage the voltage stabilizing chip, please use an external 5V logic supply when using more than 12V driving voltage. Use large-capacity filter capacitors and diode with freewheeling protection function, increasing reliability. High working power to 46v, a large current can reach 3A MAX and continue current is 2A, a power to 25w. Large capacity filter capacitance, after flow protection diode, more stable and reliable.
Specification :
- Chip: L298N
- Logic voltage: 5V
- Logic current 0mA-36mA
- Storage Temperature: -20 ℃ to ℃ to +135
- Operating mode: H-bridge driver (dual)
- Drive voltage: 5V-35V
- Drive current: 2A (MAX single bridge)
- Maximum power: 25W
Pins:
- Out1: Motor A lead out
- Out2: Motor A lead out
- Out3: Motor B lead out
- Out4: Mo (Can actually be from 5v-35v, just marked as 12v)
- GND: Ground
- 5v: 5v input (unnecessary if your power source is 7v-35v, if the power source is 7v-35v then it can act as a 5v out)
- EnA: Enables PWM signal for Motor A (Please see the “Arduino Sketch Considerations” section)
- In1: Enable Motor A
- In2: Enable Motor A
- In3: Enable Motor B
- In4: Enable Motor B
- EnB: Enables PWM signal for Motor B (Please see the “Arduino Sketch Considerations” section)
Usage:
H-bridges are typically used in controlling motors’ speed and direction but can be used for other projects such as driving the brightness of certain lighting projects such as high powered LED arrays.
Two things to mention:
- Make sure you have all of your grounds tied together; Arduino, Power source, and the Motor Controller.
- The PWM Pins are unnecessary if you do not want to control PWM features
Features:
- Current Sense for each motor.
- Heatsink for better performance.
- Power-On LED indicator.
- Drives up to 4 motors.
Package Includes:
1 x L298N Based Motor Driver Module – 2A (Standard Quality)
Arduino Sketch Considerations:
The Arduino code sketch is pretty straightforward. Since there isn’t a library for the L298N Dual H-Bridge Motor Controller you just have to declare which pins the controller is hooked to.
The “int dir(number)Pin(letter)”‘ pins can be connected to any available digital pin you have available, as long as you declare the correct pin in your sketch. This makes the L298N Dual H-Bridge Motor Controller very versatile if your project is using a lot of Arduino pins.
The int“speeding(letter)” pins need to be connected to a PWM pin on the Arduino if you want to enable speed control through PWM.
As a quick cheat I have included a list of PWM pins for the main two types of Arduino’s I use:
- AT MEGA – PWM: 2 to 13 and 44 to 46. Provide 8-bit PWM output with the analogWrite() function.
- UNO – PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function.
Note: Built-in 5v power supply, when the driving voltage is 7v-35v
Features:
- Current Sense for each motor.
- Heatsink for better performance.
- Power-On LED indicator.
- Drives up to 4 motors.
Package Includes:
1 x L298N Based Motor Driver Module – 2A (Standard Quality)