
If you supply is up to 12V you can leave in the 12V jumper (point 3 in the image above) and 5V will be available from pin 6 on the module. Next, connect your power supply - the positive to pin 4 on the module and negative/GND to pin 5. Otherwise, you may need to swap them over when you set both motors to forward and one goes backward!

If you're using two motors for a robot (etc) ensure that the polarity of the motors is the same on both inputs. First, connect each motor to the A and B connections on the L298N module. To control one or two DC motors is quite easy. Connect to PWM output for DC motor speed control. Leave this in place when using a stepper motor.
L298n motor driver 5v output how to#
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.įirst, we'll run through the connections, then explain how to control DC motors then a stepper motor.
-550x550.jpg)
These L298 H-bridge dual motor controller modules are inexpensive and available from the Tronixlabs Australia store.

There is also an onboard 5V regulator, so if your supply voltage is up to 12V you can also source 5V from the board. 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. In this tutorial, we'll explain how to use our L298N H-bridge Dual Motor Controller Module 2A with Arduino.
