How to power 3 L298N with each getting a 12v supply

I have a group of electro magnetics that receive oscillating current via Arduino pwm and powered by three L298N. Currently each group work as intended separately, when supplied with a 12V voltage, however they couldn’t work together. How to power three L298N motor driver with each getting a 12 v power supply?

Methods I’ve tried:
Connect three drivers together with 12 v external supply -> results: zero to none voltage in all drivers;

Connect three drivers together with 24 v external supply -> results: around 5v in all drivers;

Connect a step up voltage adapter to each driver-> result: initially each driver receive a 12 v supply, after Arduino board plugged in, voltage dropped to around 5 v for each driver;

Haven’t tried:
Get three 12 V power supply cable and plugged them to three drivers separately. I’m trying to avoid this scenario.

Any suggestions are appreciated. If any information is needed pls leave it in the comments. Thanks

The supply has to deliver the current taken by all magnets. Check the supplied voltage with all modules connected.

Perhaps jumpers on the driver boards are not correctly set?

Do the drivers support the required current?

Are all PWM signals set to 100%? You can test each driver with the Arduino disconnected and all inputs connected directly to LOW/HIGH level.

The L298 dinosaurs will drop up to 4V from the supplied voltage, converting the drop into unwanted heat. You may be better off with more modern (MOSFET) drivers.

For more detailed analysis a symbolic circuit diagram is required. No Fritzing please.

Not sure if this will make any difference, but try removing the 12v jumper and give the boards 5v input externally (you need to remove the jumper if the voltage is higher then 12v and then provide the 5v from another source).
This is how I'm running my L298N on 24v power supply.

1 Like

Hi, @asdfwer11
Welcome to the forum.

Can we please have a circuit diagram?
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.

Do you have a DMM?

Thanks... Tom... :grinning: :+1: :coffee: :australia:

Your electro magnets will demand a large amount of in-rush current when turned on. I'm suspecting your power source isn't capable to provide the required current.

While measuring the voltage and current At The Power Source, turn on the 1st magnet, then the 2nd. If 2 work, the current increased and the voltage is still correct, turn on the 3rd. Did the voltage drop?

If the voltage didn't drop, measure the voltage converter outputs. Keep moving down until you find where the voltage drops.

No. Purely inductive loads as electromagnets does the opposite. Don't mix with DC motors.

You are correct. That's exactly what I did. I struck through that comment. Thank you for correcting me on this.

I need to stop posting on forums at O-wakeUp-thirty.

We are all human. Just didn't like the risc that new members would hook up on it.

Wiring diagram:

Correction: I didn't use PWM on Arduino. L298N drivers signal pins only receive High/low signals.

  • The reason why I used L298N for electromagnetic is because I need to change the current directions to get magnets change poles . I happened to have leftover drivers for DC motors from last project, which can change current directions.
  • Another thing that I tried was to connect the grounds of all drivers to Arduino ground, didn't solve the voltage issue.

This is to protect the onboard 5V regulator from from execessive stress of input volatge to the driver is > 12V.

Connect GND is mandatory!
Power the driver logic from the Arduino: remove power jumper, connect Vcc to Arduino 5V.

@asdfwer11
The layout depicted in post No.9 looks reasonable.
I suggest some heavier gauge wire than the junky jumper situation (as shown in post No.1, lots of 'spaghetti' there)
Wire the 12V supply to a terminal strip and distribute to the L298 boards from there.
tb

Hi, @asdfwer11
Good try with the schematic.
Please label ALL pins, including the motor drivers and ALL gnds.

Thanks.. Tom... :grinning: :coffee: :+1: :australia:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.