Author Options:

Question about using a L298N motor driver with arduino ? Answered

I was looking at making a small rc tank with the lawnbots code. i have tryed small home built motorcontrollers and had seccus but thought It may be tine to build somthing better. I was looking at the L298N motor driver b ut dont have any idea what the EN_1 and EN_2 connections are for. Can someone please tell me? (Datasheet)
Thanks, David.



Best Answer 6 years ago

Hi David,
Here is a better looking PDF of the L298
As Rick points out they are TTL High ( 4.5v to 5.5v ) Enable pins.
I like to view them as active low Disable pins.
To stop A or B or both outputs the two ENA and ENB are pulled to TTL Low
which the spec says is anything below 1.5v.


So could I drive it with my arduino with two pmw enables (foward back).
I have Not looked at your datsheet yet because I need to go to school.

If the motor is under 48VDC and draws less then 4 amps at stall.
YES you can run it of the Arduino logic pins.

The LN298 will drive 2 motor so everything is duplicated - EN stands for enable.