Glory Arduino L298n Wiring
The generic wiring schematic above should do the trick for most.
Arduino l298n wiring. You can consider using the l298n h bridge module for driving dc motors that are typically installed in custom built robots or vehicles. The pwm pins are unnecessary if you do not want to control pwm features. Arduino power source and the motor controller.
It comes with two separate channels called a and b that you can use to drive 2 dc motors or 1 stepper motor when combined. Two things to mention. L298n motor driver interfacing with arduino.
In our experiment we are using dc gearbox motors also known as tt motors that are usually found in two wheel drive robots. Here are some ways to wire it depending on your use case. So we will connect external 12v power supply to the vcc terminal.
If your using two motors for a robot you need to ensure that the polarity of the motors is the same on both outputs otherwise you need to swap them when you set the motors to forward and backward. Wiring l298n motor driver module with arduino uno. Make sure you have all of your grounds tied together.
It can control both speed and spinning direction of of any bipolar stepper motor like nema 17. With this motor driver you can control dc motors stepper motors relays and solenoids. However with the size of motor that this can support you can have a vehicle large enough to support its physical size.
The pin labelled 5v is a 5v output that you can use to power your arduino. They are rated for 3 to 12v. The l298n motor driver board is built around the l298 dual full bridge driver made by stmicroelectronics.