Driving a DC motor /w 16f84a


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    May 2007
    Location
    Harvest, Alabama
    Posts
    10


    Did you find this post helpful? Yes | No

    Cool Mosfets and some tricks

    here are a few tricks you may wish to try.
    (1) MOSFETS love to be in parallel. This allows you to get the heat down a lot.
    (2) Overdriving the control a bit on MOSFETS (50% or less) is generally safe and causes really fast response. Read the specs on you MOSFETS yours may be able to do this.
    (3) Just for fun on the DC segment rather than killing the current entirely while running leave a modest few milliamperes hanging in the main drive coil at all times you are running the motor. It will drag the coil slightly but may affect current demand in the circuit a lot. This might well be worth the effort. This is a trick to prevent the collapse of the magnetic field in the coil of the DC motor. If it requires a voltage reversal, time this reversal when you are already into the next drive position some.

  2. #2


    Did you find this post helpful? Yes | No

    Post Oh my God please PWM it!

    I didnīt read much of it, but you could do so many things!!.

    First of all i would recommend a PWM always for this DC motors, they are really Current eaters, if the 16f84 donīt has it (it doesnīt) you can provide something with a simple timer, and a word counter. increase the counter on each interrupt an play with its value to decide if the pin goes HIGH or LOW. I really recommend to meet at last the 16f628 you get so many more stuff that you will never go back to 16f84, youīll get for example a great PWM in one sentence.

    I have in my hands the irf530 right now, it should make the work; I donīt have the greatest memory but i do remember that this Motor is an inductor and it will help you to use a diode (1n4004 or a Switcher if using PWM) to reduce peak currents on the level change from ON to OFF, you might have used this diode on relays for the same purpose.

    If you canīt use different batteries for the motor and control (if you can then use an optocoupler) then be sure to add some capacitors to the uC Vcc-Vdd as close as possible (this is a classic one).

    Donīt know if you are also using a Vreg if you are he is the one shutting down after heating.

    Working with small batteries and getting power out of them is a real challenge, if you can go for a better source (you can usually do this for college asignments)
    Last edited by Josuetas; - 15th May 2007 at 05:04.

  3. #3
    Join Date
    May 2006
    Location
    Kedah, Malaysia
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Josuetas View Post
    I didnīt read much of it, but you could do so many things!!.

    First of all i would recommend a PWM always for this DC motors, they are really Current eaters, if the 16f84 donīt has it (it doesnīt) you can provide something with a simple timer, and a word counter. increase the counter on each interrupt an play with its value to decide if the pin goes HIGH or LOW. I really recommend to meet at last the 16f628 you get so many more stuff that you will never go back to 16f84, youīll get for example a great PWM in one sentence.

    I have in my hands the irf530 right now, it should make the work; I donīt have the greatest memory but i do remember that this Motor is an inductor and it will help you to use a diode (1n4004 or a Switcher if using PWM) to reduce peak currents on the level change from ON to OFF, you might have used this diode on relays for the same purpose.

    If you canīt use different batteries for the motor and control (if you can then use an optocoupler) then be sure to add some capacitors to the uC Vcc-Vdd as close as possible (this is a classic one).

    Donīt know if you are also using a Vreg if you are he is the one shutting down after heating.

    Working with small batteries and getting power out of them is a real challenge, if you can go for a better source (you can usually do this for college asignments)
    I don't understand by what you guys mean PIC16F84a doesn't have PWM.
    We can use the pulseout command right?

    PULSOUT Pin,Period

    I have create a robot using the DC servo motor using PIC16F84a and the Motor speed (modified DC motor) and position can be controlled using the PWM command.

    To control DC Motor speed and to safe the power consumption we also can use the PWM method. But for DC motor we cannot easily control the angle of the rotation as the DC servo motor.

  4. #4
    ra68gi's Avatar
    ra68gi Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by fazan83 View Post
    I don't understand by what you guys mean PIC16F84a doesn't have PWM.
    We can use the pulseout command right?

    PULSOUT Pin,Period
    By PWM they mean hardware PWM module see data sheet of 16f8xx.
    pic basic pro has got a command to use this its..
    HPWM Channel, dutycycle, frequency.

    PIC 16F84 does not have this hardware module so you can't use this command. But you do have a software pwm command..
    PWM pin, duty, cycle. but the disadvantage is...
    The PIC has to keep churning out pulses all the time not able to do other important things like adc measurement or rpm measurement etc which will be the feedback to control your motor. The second thing is the software pwm is only for a limited no of cycle & to keep it ON you need to give it or invoke the command again after the cycle is over.

    Pulseout command is commonly used as clock or some cases in hobby projects to control servo motors. but in all these cases the micro is made to spend all its time only to generate pulse. Log on to rentron.com & you will find some nice examples to use pwm to fire IR leds.

    Regards
    Raghunathan.

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