Do I need the enable A pin on L298N board

Discussion in 'General Electronics Chat' started by quique123, Sep 10, 2018.

  1. quique123

    Thread Starter Member

    May 15, 2015
    90
    3
    when working with a single dc motor and no need to control different speeds or different directions, do I still need to wire the EnA pin on the l298n to the microcontroller?
     
  2. AlbertHall

    AAC Fanatic!

    Jun 4, 2014
    6,373
    1,476
    No, you can just permanently wire it as enabled.
     
  3. quique123

    Thread Starter Member

    May 15, 2015
    90
    3
    What do I wire it to?
     
  4. MrChips

    Moderator

    Oct 2, 2009
    16,866
    5,178
    Connect to +5V.

    If you are using the common L298 driver board, leave the jumpers in place at H and M in the diagram:

    [​IMG]
     
  5. KeepItSimpleStupid

    Distinguished Member

    Mar 4, 2014
    2,834
    497
    Datasheet: https://www.sparkfun.com/datasheets/Robotics/L298_H_Bridge.pdf

    This does use enable or a high turns on the motor. I've used chips with A NOT ENABLE pin so that when you disconnect the input the motors don't run. TTL normally floats high. Relay drivers such as the uLN2003 will drive the relay off when the control is disconnected and off when the input is low and on when the input is high.

    Motor on/off is a speed control of 0% and 100% So, if always on or always off, then no connection to micocontroller is needed. Just strap the pin to the correct logic level.
     
  6. quique123

    Thread Starter Member

    May 15, 2015
    90
    3
    Never mind, I got it. I hadnt connected the GNDs!

    Thanks
     
    Last edited: Sep 10, 2018
Loading...