Output current to a DC motor


Closed Thread
Results 1 to 2 of 2
  1. #1
    bigbanner's Avatar
    bigbanner Guest

    Talking Output current to a DC motor

    Hey all,

    I'm very new to programming in PICBASIC. We are trying to output current to a DC motor for 5 seconds, off for 5 seconds, on for 5 seconds, etc. We have built a circuit with a PIC16f77 that will do this for voltage (it's running in 4.23 voltage supplied to the pic, and we have LEDs lighting up for 5 seconds with 4.23 volts supplied, off for 5 seconds, on for 5 seconds, etc.)

    So, my question is how can I have the same logic with current output instead of voltage? The DC motor won't run on voltage. I apologize if this question seems trivial, we were thrown into the fray with little to no help.

    Thanks!

  2. #2
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default

    An easy way is to use a ULN2001. They can handle alot of current and are cheap. Connect the Pic to one side and the DC motor on the other. When the PIC-pin is High the motor will spin. Low on the Pic-pin and it will stop. If you connect all inputs to one Pic-pin and connect all outputs to the motor you have plenty of current to use, if you only use one channel you get 500mA. Just be careful you don't overload the chip, then black smoke will come out and that is kind of bad.

    To make the motor even stronger you can connect it like this:

    + of Vbattery or main dc source to the motor
    - side of the motor to the ULN chip
    Pin 9 of the ULN chip to the +side of the motor. This is to enable a diode inside the ULN to protect the chip when using inductive loads.
    Pin 8 of the ULN to GND

    A Pic output pin to the correct ULN inside.


    That should work... or you get a MOSFET transistor and do the same thing.



    If you connect this way your motor will not be on the 5v supply and you get less noice on that line.... That is good

Similar Threads

  1. Replies: 24
    Last Post: - 1st December 2009, 08:01
  2. DC motor parameters estimation !
    By iugmoh in forum General
    Replies: 1
    Last Post: - 6th June 2008, 17:29
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. H-Bridge control DC motor
    By Paul F in forum General
    Replies: 8
    Last Post: - 11th March 2005, 12:50
  5. H-Bridge control DC motor
    By Paul F in forum General
    Replies: 2
    Last Post: - 2nd March 2005, 21:04

Members who have read this thread : 1

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