drive 12v with microcontroller

Discussion in 'General Electronics Chat' started by hertz.12, Aug 12, 2015.

  1. hertz.12

    Thread Starter Member

    Apr 25, 2015
    36
    0
    hi all
    i want to drive 12v motor with
    microcontroller

    the microcontroller work by 5v and the motor 12v 4A how could i control the motor on/off with the microcontroller?
     
  2. #12

    Expert

    Nov 30, 2010
    16,269
    6,781
    This is the shape of it. Place motor in position marked Rl and add a diode across the motor terminals with the positive end of the diode connected to the positive supply of voltage. Do you need help with the math?
     
  3. #12

    Expert

    Nov 30, 2010
    16,269
    6,781
    Here's another one. Place the motor where it says, "relay".
     
  4. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,521
    2,369
    Mosfet's are generally used now for interfacing with μp, no loading of the outputs and the on resistance is usually lower.
    (the 2n7000 is only good for 600ma)
    Max.
     
  5. hertz.12

    Thread Starter Member

    Apr 25, 2015
    36
    0
    hi AAC Fanatic!...thanks for help
    i dont have pnp transistor or logic mosfet! ..i have irf540 & irf640 mosfet....2n222a transistor & 3055 transistor and both npn! any idea?
     
  6. AnalogKid

    Distinguished Member

    Aug 1, 2013
    4,530
    1,248
    Use the IRF540 in circuit a in post #2. Delete Rbe1 and Rb1, connect the gate directly to the uC. As stated before, put the motor in place of RL, and put a diode across the motor to protect the FET from spikes.

    ak
     
    #12 likes this.
  7. #12

    Expert

    Nov 30, 2010
    16,269
    6,781
    Thanks for the help, guys. That was my last post last night and I was falling asleep.;)
     
Loading...