PWM vs. HIGH


Closed Thread
Results 1 to 25 of 25

Thread: PWM vs. HIGH

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: PWM vs. HIGH

    the only reason to use a PWM with a FET would be to control a load such as a light dimmer or motor speed controller. I do this alot with PWMs, not sure about any other PWN settings but if you set HPWM to 255 it will stay high just like HIGH. untill you change it, as the PWM runs at the frequency and rate you set it at untill you change it, and it does this in the background behind any program running, if you make a change to HPWM it adjusts that PWM to the new settings and continues with the program, the PWM continues in the background.

    This is great for running lights or motors for brightness and speed if the frequency is set faster than say 40 for lights or 100 for motors, the higher the frequency the more smooth the transistions. if you set the frequency to say 10 hz you will see lights flash on and off and motors will be very jerky. I usually run PWMs at 1khz or more, if used with motors I usually want them above 15khz at at lower freq's they can Whine... also on motors you need to have a reverse voltage diode and capacitor in parallel with the motor for the inductive kick.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: PWM vs. HIGH

    Quote Originally Posted by wdmagic View Post
    the only reason to use a PWM with a FET would be to control a load such as a light dimmer or motor speed controller. I do this alot with PWMs, not sure about any other PWN settings but if you set HPWM to 255 it will stay high just like HIGH. untill you change it, as the PWM runs at the frequency and rate you set it at untill you change it, and it does this in the background behind any program running, if you make a change to HPWM it adjusts that PWM to the new settings and continues with the program, the PWM continues in the background.

    This is great for running lights or motors for brightness and speed if the frequency is set faster than say 40 for lights or 100 for motors, the higher the frequency the more smooth the transistions. if you set the frequency to say 10 hz you will see lights flash on and off and motors will be very jerky. I usually run PWMs at 1khz or more, if used with motors I usually want them above 15khz at at lower freq's they can Whine... also on motors you need to have a reverse voltage diode and capacitor in parallel with the motor for the inductive kick.
    I'm using HPWM to control motors in much the same way as you describe, but I'm using a SN754410 driver which allows me to reverse the motor's direction but switching the directional pin from high to low and the HWPM's dutycle to be reversed (i.e. high on directional pin means low dutycycle produces slow motor speed, low on directional pin means the same motor speed needs to use (255 - dutycycle)). I'm only using 0.1uF caps between each motor lead and it's casing (and a third between the motor leads) - do I need another cap? I do have a 100uF one on the 754410.

Similar Threads

  1. Replies: 1
    Last Post: - 4th March 2013, 22:57
  2. LED PWM with High Frequencies?
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th February 2013, 04:16
  3. PWM for heating car's exterior mirrors
    By maciu1 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st December 2012, 13:54
  4. Weird PWM Behaviour on 16F1825
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th October 2012, 22:59
  5. high voltage high frequency H-Bridge
    By George in forum Off Topic
    Replies: 6
    Last Post: - 27th April 2009, 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