Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Designing DC motor with 8051 and transisors

  1. Apr 24, 2014 #1
    I want to design a bidirectional DC motor ,
    so use four transistors in the H bridge circuit.

    I can understand the first circuit,
    but for the second, I can't understand why input signal ,
    eg: A, is connected to the same side of transistors?

    What is the differences, which one I should choose?



    Attached Files:

  2. jcsd
  3. Apr 24, 2014 #2
    The difference is the path to ground. In the first figure, the design uses npn transistors, and in the second it uses pnp transistor to pull to ground. With bipolar transistors you will probably see using either of these designs, more heat generated in the transistors than if you used a design with MOSFETs. In the top design, the bottom transistors will be driven into saturation with sufficient voltage on A or B (provided there is enough current), this really depends on the specs of the motor and how much current you need to push through the motor. [Saturation is driving the transistor into its most ON state, this drops the least voltage across the CE junctions and passes the most current while limiting the power dissipated (heat) from the transistor.] On the second design the path to ground will be limited to the PN junction voltage from motor to base, so if A is operating from the same supply, you will probably not achieve saturation in design 2 on the ground path from the motor.

    Both designs will require A & B voltage probably be about 0.5 to 1 volt above +V to drive the top rail (+V) to the motor such that the upper transistors are in saturation. If these are very small motors and if you are driving A & B with CMOS 8051 outputs direct, then you should limit +V to about 4.0 - 4.25 at most. Otherwise, you will need voltage translation to try and drive the upper transistors into saturation.

    If the motor you are trying to control draws much current under normal run conditions, I would recommend searching the web for MOSFET H bridge alternative.
  4. Apr 24, 2014 #3
    I want to design a bidirectional DC motor ,
    so I use four transistors in the H bridge circuit.

    Is there any problems if there is no resistors in the base of transistors?

    How can I use 3 buttons for stop,forward and backward control of the motor?
    Where should I put them?

    Which pins of 8051 are necessary to be connected except Vcc and GND?


    Attached Files:

  5. Apr 24, 2014 #4
    YES! Big problem without resistors!!!!

    The base to emitter junction is a forward bias PN junction when "on". As such that voltage is around 0.7 volts. Since your base of the ground path transistor is tied to the base of the +V side transistor they will both be approximately 0.7 above ground when either the A or B signal tries to drive "1" or high. This would present a problem for the 8051 output as it wants to go to a higher voltage as well (probably above 2.4 v at least) and create undue stress in the output drivers of that pin (some manufacturers output drivers will tolerate this, but it is bad practice for reliability).

    Bottom line is the resistors are necessary, but the whole approach of bipolar transistor with this design is problematic. Also you really need to make sure that your switch on +V is off during the change of A & B. Having power during a transition would cause a temporary power path directly through the transistors for a narrow time (few ns), but long enough to cause concerns.

    A better approach is to use NPN transistors for the ground connection and PNP for the +V connection and set the A & B logic to the bases correctly (use resistors). This will drive the transistors into saturation. But you still need some logic to limit switching currents to some degree - in my opinion for a good design. I still think you will achieve better results with either discrete MOSFETs or a dedicated H bridge chip. Take a look at SN754410, it is bipolar inside, but compact package with voltage translation for motor drive at a higher voltage and digital control. I've used them before for steppers, but they will work fine for low current motors.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook