Driving a DC motor /w 16f84a


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    A couple of things:

    Unless you want the motor to have dynamic braking, you don't need the "bottom" transistor.

    You could reduce your dissiplation (heat generation) somewhat by putting the PNP transistor in the "top" position, and connecting the emitter directly to the +5V source, and the collector to the motor. If you build the circuit this way, you should also connect a 1K (or so) from the base to the emitter to guarantee that the transistor completely shuts off. Pulling the base LOW will turn the motor on. Make certain that you leave the 1K resistor (that you already show in your schematic) in place.

    The darlington transistors you use will certainly dissipate more heat than FETs in this application because the transistors will have a saturation voltage of at least 1V. If the motor draws 2A, then you will dissipate 2A X 1V = 2W.
    The motor will also get a maximum of 4V (or so) in this circuit as well.

    FETs will improve the circuit. Choose "logic level" FETS with a low ON resistance. If you use an N-channel FET (recommended), put it in series with the GROUND side of the motor. You won't need a resistor between the PIC output pin and the FET gate, although a 1-10K resistor between the gate and 5V will improve the circuit because it will insure a full 5V on the gate when the PIC pin is high. The ON resistance of the FET can be as low as 20 milli-ohms. That means that if your motor draws 2A, then the voltage drop across the FET will be 40mV and the dissipation will be .040 * 2 = 80mW. It will barely get warm - even without a heatsink.

    Regardless of the transistors used, you should always put a diode across the motor in the "reverse" direction. This is just good practice and prevents turn-off transients from destroying the transistors.

    And as to whether or not your chip supports PWM - any PIC can do PWM in software. You could have looked in the manual and found if supports hardware PWM in less time than it took you to make your post.
    Charles Linquist

  2. #2
    Lilmanmgf's Avatar
    Lilmanmgf Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis View Post
    FETs will improve the circuit. Choose "logic level" FETS with a low ON resistance. If you use an N-channel FET (recommended), put it in series with the GROUND side of the motor. You won't need a resistor between the PIC output pin and the FET gate, although a 1-10K resistor between the gate and 5V will improve the circuit because it will insure a full 5V on the gate when the PIC pin is high. The ON resistance of the FET can be as low as 20 milli-ohms. That means that if your motor draws 2A, then the voltage drop across the FET will be 40mV and the dissipation will be .040 * 2 = 80mW. It will barely get warm - even without a heatsink.
    What FET would you recommend in this application?

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Sorry, I'm an engineer, not a secretary.
    Charles Linquist

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    But.. Just to insure you don't get it hooked up wrong.

    Source to GROUND
    Gate to PIC
    Drain to motor (-)
    Motor (+) to 5V

    1-10K resistor from Gate to +5
    Charles Linquist

  5. #5
    Lilmanmgf's Avatar
    Lilmanmgf Guest


    Did you find this post helpful? Yes | No

    Default

    I have a TRF510, but I was unable to get it to work. I'm really not sure how to read mosfets. It says the gate threshold voltage is from 2v to 4v. I'm assuming this means at least 2 volts is required to turn the mosfet on. In my current setup the PIC is powered by a 3 volts, so shouldn't this be sufficient to turn it off? Perhaps I unknowingly fried it previously.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Lilmanmgf View Post
    It says the gate threshold voltage is from 2v to 4v.
    If we're both reading the same datasheet, then you may also notice that in this case, it says that the gate voltage (Vgs) is equal to the drain-source voltage (Vds) and the current (Id) is only 250uA.
    In your case, you're probably trying to draw too much load without enough Vgs (see Figure 5,6,7 of the datasheet).
    You would want to find a 'logic level' n-channel enhancement mode mosfet with enough current capability at low gate threshold voltages.
    I use an STN2E10L (sot-223 package) in most of my stuff. I can pull over 5 amps thru it @ 5v using a 5v (which ends up being about 4.5v) PIC pin to drive it.
    Last edited by skimask; - 30th April 2007 at 04:22.

  7. #7
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    An International Rectifier IRF3706 would be a good choice.
    Charles Linquist

Similar Threads

  1. DC to AC convertor
    By The Master in forum Off Topic
    Replies: 11
    Last Post: - 6th February 2010, 17:44
  2. Replies: 24
    Last Post: - 1st December 2009, 08:01
  3. from 5v dc to 1.00v dc precise vref 10mA ?
    By phoenix_1 in forum Schematics
    Replies: 10
    Last Post: - 28th July 2009, 08:11
  4. PIC data along dc line
    By sswcharlie in forum General
    Replies: 0
    Last Post: - 30th August 2008, 08:38
  5. H-Bridge control DC motor
    By Paul F in forum General
    Replies: 8
    Last Post: - 11th March 2005, 12:50

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts