Digital output to L298n Motor driver

Post Reply
Josef Neto
Posts: 3
Joined: Mon Dec 23, 2019 7:35 am

Digital output to L298n Motor driver

Post by Josef Neto » Sat Dec 28, 2019 11:53 pm

Hi all,

I am trying to drive two dc motors ( 30w, 12V) using controllino Maxi and L298n. My digital output sockets don’t seem to be providing enough current to drive the motor. I am supplying 12v from a Laboratory power supply. I tried perform a test with a LED, putting logic High to Digital Output D0 and it doesn’t work too. I suspect it may have to do with High side switch but if it is case how should i proceed to drive my motors?

Thanks

User avatar
Jarda
Posts: 45
Joined: Fri Dec 14, 2018 10:52 am

Re: Digital output to L298n Motor driver

Post by Jarda » Mon Feb 10, 2020 12:23 pm

Hello,
it is hard to help without the deeper knowledge about schematic, but in general, digital outputs on CONTROLLINOs are for maximum current of 2A, so when you connect the motor directly, of course, outputs can be overloaded (30W/12V = 2,5A) and will not work (also respect to the motor startup current).

You are writing, that you are using L298N which is dual H bridge, but this H bridge has the similar limitation with DC operation of continues 2A. When you are using this bridge, from CONTROLLINO you shall use only digital signals from Pinheader - see the L298N datasheet. If you connected D0 to INPUT or ENABLE of the L298N it burned because on Dx outputs is the CONTROLLINO power voltage.

About the driving of the motors, you can think about the CONTROLLINO MEGA which has Half Bridge outputs already implemented (but also with 2,5A max. current) or you can use every Half or Full bridge IC or shield. Try to google it ;-).

Could you please provide the schematic of your application to be possible to help more?

BR
Jarda

Post Reply