Electrical – How to correctly power the l298n motor driver with 6v

batteriesdc motorl298raspberry pi

Recently, I have purchased the L298N Motor Driver with a couple of 3V-6V motors. I am planning to make a robot buggy to hold other projects I may do with the Raspberry Pi. Currently, I have been unable to figure out how to properly power the motors and the driver at the same time. For now, I have taped four AA batteries together to test the motors on with the driver. On my version of the L298N, the power inputs include 12V and 5V. After scouring the internet for hours, I have not been able to figure out exactly what to do with my dual-motor setup. For now, both of the jumpers on ENA and ENB have been attached. I tried connecting the 12V input on the driver to the temporary AA batteries, but the red power LED on the driver didn't turn on. The red LED would turn on though when I supplied 5V through the 5V punch block. That had not powered the motors sufficiently. What is the proper way to do this?
Here is a schematic of the wiring I have set up.
Keep in mind the pins that the wires are connected to on the Raspberry Pi are random (Couldn't "pin" them down correctly)
Schematic from Fritzing

Best Answer

4 batteries add up to 6V, apparently this board requires 9 to 12 volts power supply. Try throwing a couple more batteries in series or get a 9V battery instead.

The 5V next to the power supply input is an output which you can use to power your raspberry, but make sure to not mess up the ground as you have in the picture you've shown. Ground is physical pin 6 on the raspberry, not 5.

If you really insist on powering it with a 6V supply, then get a boost converter.

Related Topic