L298N one channel getting low power

Hey everyone,
I am interfacing an Arduino Mega with 2x L298N drivers.
The drivers are supplied with 12VDC, a 5v out is given the mega and a common ground is shared.
The thing is that one channel of both the drivers is spinning relatively slower than the other one.

Side note : I have connected all the pins (IN1,2,3,4) of both the drivers to the PWM pins :sweat_smile: this is because I couldn't get the ENA pins working at all! so thats why I tried controlling the speed directly through the pins and it worked so I kept it that way.

I'd like to know the plausible causes on why this could be happening. I'll be getting my hands on the unit in some time later.

Thanks in advance!

If you couldn't make the ENA pins work then I suspect that the boards are faulty.

Schematics would likely help us.


This is a schematic of power distribution, ill send one of the connections between Mega and L298N

Well i tried 2-3 modules, Could you suggest me any code which would help me test the same?

Thanks!
Due to some issues, ill be needing to try them in 2 days and let you know..

no hurry

That schematics is fully okey. Only that the 12 volt source can supply the total current needed.
Actually my question was about the signal wiring.

So it was purely due to a bad motor :sweat_smile:.
thanks for the support guys, and the tutorial worked, thanks for that as well!

Have fun!