1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

how to interface dc motors with 8051

Discussion in '8051/8951' started by anubhav_1986, Mar 10, 2007.

  1. anubhav_1986

    anubhav_1986 New Member

    Joined:
    Mar 10, 2007
    Messages:
    4
    Likes:
    0
    hey can i use uln 2803 for interfacing dc motors with 8051?? can any1 provide me the circuit??
     
  2. ikalogic

    ikalogic Member

    Joined:
    Dec 27, 2003
    Messages:
    834
    Likes:
    14
    Location:
    Limoges, France
    what is the rating of the motor you are using?
    how much current required?
     
  3. gramo

    gramo New Member

    Joined:
    Oct 2, 2006
    Messages:
    1,221
    Likes:
    23
    Location:
    Newcastle, Australia
    I believe the ULN2003 is similar, but only has 7 outputs instead of 8 as the one your inquiring about. Both are rated for 500mA from memory, so if your motor requires more than that, Consider using a FET.

    Heres a diagram on how to interface one with a unipolar stepper motor, a DC motor would be very similar, but only has a single winding to control;

    [​IMG]

    Click here to watch this circuit in action

    Generally because of the high current requirement of DC motors, FETs are the way too go. You can control copious amounts of current with a FET, and the IRL2203 is a great little logic driven FET.


    [​IMG]

    Click here too watch this circuit in action

    You have to be careful about how much current the FET is driving & how long it takes to switch.

    The FET has a bias point, where it has resistance as it turns on or off. During this phase, there will be a voltage dropped over the FET & current running through it - it can dissipate massive amounts of power in the form of heat.

    Without a drive circuit, your FET will burn out over time. Logic devices are very limited to the amount of current they can deliver, and the problem is that the Gate acts like a capacitor, and takes time to "charge" and "discharge". A PIC micro is capable of 25mA MAX per output, pro-longing this charge time significantly. As a result, there’s an instantaneous heat build up, that will reduce the life of the FET every time it occurs.

    Using a Drive circuit allows the FET to turn On and Off much faster, limiting the amount of time it spends at the "bias point" - reducing the heat developed on the FET.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. ikalogic

    ikalogic Member

    Joined:
    Dec 27, 2003
    Messages:
    834
    Likes:
    14
    Location:
    Limoges, France

    Gramo, on your first schematic, you'r missing 4 other diodes between the ULN o/p and 12V... even if it works that way.. that's what we learnt in Power electronics... :)
     
  6. anubhav_1986

    anubhav_1986 New Member

    Joined:
    Mar 10, 2007
    Messages:
    4
    Likes:
    0
    8051

    hey thanx for providing me with circuit for interfacing but i am a lil confused , the circuit u provided is interfacing ULN2003A with PIC16F876. i want to know is PIC16F876 same as 8051? sorry the question may sound dumb but want to clear my doubt n also tell me that if i can use the same circuit with 8051?
     
  7. anubhav_1986

    anubhav_1986 New Member

    Joined:
    Mar 10, 2007
    Messages:
    4
    Likes:
    0
    ratings

    12-24 Volts, 150-200 rpm
     
  8. gramo

    gramo New Member

    Joined:
    Oct 2, 2006
    Messages:
    1,221
    Likes:
    23
    Location:
    Newcastle, Australia
    Doesn’t the ULN2003 have those ones built in?

    [​IMG]


    Pin 9 is the common to Vcc, and the built in diodes protect the ULN2003 from EMF caused by inductive loads, I could be wrong :confused:
     
    Last edited: Mar 12, 2007
  9. ikalogic

    ikalogic Member

    Joined:
    Dec 27, 2003
    Messages:
    834
    Likes:
    14
    Location:
    Limoges, France
    no you'r not wrong, i am! :) but i usually add additional protection diodes...
     

Share This Page