
- HOW TO SET UP THE L298N MOTOR DRIVER DRIVER
- HOW TO SET UP THE L298N MOTOR DRIVER CODE
However, in this case, the nominal battery voltage will not be enough to power the L298N module onboard 5V regulator. If you are using high power 6-volt dc motors, you may be looking to use a 2S (7.4V) RC LiPo battery or six 1.2V rechargeable batteries.
HOW TO SET UP THE L298N MOTOR DRIVER DRIVER
L298N Power Solution Example Motor Driver Battery Packs Connect a 5v power source to the H-Bridge driver module can be the same power source in point 4 above.Otherwise, connect a dc-dc Constant Voltage Step Up Down converter to the motor power supply to power your micro-controller. Use a separate power supply for your Arduino, and common the power ground rails.Connect 3v-6v dc motors to the H-Bridge module.Disable the onboard 5v dc regulator by opening the jumper pin.
Connect 6v dc motor power supply to the H-Bridge module. Connect a 5v power source to the H-Bridge driver module it can be the same power source in point 4 above. Otherwise, connect a dc-dc step-down converter to the motor power supply to power your micro-controller. Connect 24v dc motors to the H-Bridge module. Disable the onboard 5v dc regulator by opening the jumper pin. Connect the 24v dc motor power supply to the H-Bridge module. You can power your Arduino from the onboard 5v dc regulator. Connect 12v dc motors to the H-Bridge module. Enable the onboard 5v dc regulator by shorting the jumper pin. Connect the 12v dc motor power supply to the H-Bridge module. In addition, you will need to consider the difference between the battery nominal voltage and the fully charged battery voltage.Ĭonsequently, when matching dc motors to various battery types and battery voltages, your dc motors in some cases are going to be slightly under or overpowered. Also, in the case of the L298N H-Bridge Module, there will be about 1.4v voltage drop between the battery and dc motor. Knowing this will help you decide when you need to disable the H-Bridge 5v regulator.įurthermore, in the case of dc motor battery supply voltage, it is not always convenient to try to perfectly match battery supply voltage to ‘nominal’ dc motor voltage. Therefore it is necessary to consider what is the maximum and lowest voltage you need for good system operation. In most situations, the H-Bridge Module is likely to be powered by battery where the voltage is likely to drop over time. Therefore, a transistor or MOSFET circuit will only be necessary to drive a DC motor if driving the motor spin in only one direction. For it is only necessary when you need to change the rotation direction of the motor spin. So you might want to consider the TB6612FNG instead which is also great for the Micro Metal Gear Motors – Link to guide.ĭC motors typically do not need an H-Bridge driver to operate. For the DC motors that are found in a child’s RC toy vehicle, the L298N H-Bridge Module can be a bit overkill. You can consider using the L298N H-Bridge Module for driving DC motors that are typically installed in custom built robots or vehicles.
However, with the size of motor that this can support, you can have a vehicle large enough to support its physical size. The L298N Module is large in size and will need plenty of space if fitting inside a vehicle.
HOW TO SET UP THE L298N MOTOR DRIVER CODE
Included, is an easy wiring connection diagram and some start code for quick reference.
So this quick how-to guide will help you get going quickly with the L298N Dual H-Bridge DC Motor Driver Module. If you are looking to build your own robot vehicle, you may consider using DC Motor H-Bridge Modules.