L298N Dual Motor Controller Module 2A and Arduino.
In this tutorial we'll explain how to use our L298N H-bridge Dual Motor Controller Module 2A with Arduino. This allows you to control the speed and direction of two DC motors, or control one bipolar stepper motor with ease. The L298N H-bridge module can be used with motors that have a voltage of between 5 and 35V DC.
There is also an onboard 5V regulator, so if your supply voltage is up to 12V you can also source 5V from the board.
These L298 H-bridge dual motor controller modules are inexpensive and available from the Tronixlabs Australia store. Furthermore if you're completely new to the world of Arduino we highly recommend you review a copy of "Arduino Workshop", and if you have questions, ask in our customer forum.
So let's get started!
First we'll run through the connections, then explain how to control DC motors then a stepper motor.
৳ 150.00 |
Qty: Add to Cart |
Currently item(s) in cart. |
|
Module pinouts
Consider the following image - match the numbers against the list below the image:
- DC motor 1 "+" or stepper motor A+
- DC motor 1 "-" or stepper motor A-
- 12V jumper - remove this if using a supply voltage greater than 12V DC. This enables power to the onboard 5V regulator
- Connect your motor supply voltage here, maximum of 35V DC. Remove 12V jumper if >12V DC
- GND
- 5V output if 12V jumper in place, ideal for powering your Arduino (etc)
- DC motor 1 enable jumper. Leave this in place when using a stepper motor. Connect to PWM output for DC motor speed control.
- IN1
- IN2
- IN3
- IN4
- DC motor 2 enable jumper. Leave this in place when using a stepper motor. Connect to PWM output for DC motor speed control.
- DC motor 2 "+" or stepper motor B+
- DC motor 2 "-" or stepper motor B-
0 Reviews:
Post a Comment