Page 1 of 2 12 LastLast
Results 1 to 12 of 22

Thread: Simple PWM Generator

  1. #1
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,264
    Downloads
    0
    Uploads
    0

    Simple PWM Generator

    I would like to know if anybody has (or can whip up) a simple schematic for a PWM generator using common components.

    I want to use it to test my H-Bridges with servo's connected before I plug the rest of the system in "just in case"

    I need to supply PWM and NOT PWM to the driver and I am using 5V logic.

    Any help would be appreciated.

    Russell.


  2. #2
    Registered
    Join Date
    Jan 2007
    Location
    Hamilton,Oh
    Posts
    333
    Downloads
    0
    Uploads
    0
    This has been discussed extensively in the sci.electronics.basics newsgroup (usenet). Many use the famous 555 chip. The Velleman kit uses an SG3525 chip.
    Googling either of these chips with PWM should get you started.


  3. #3
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,264
    Downloads
    0
    Uploads
    0
    Forgot to mention 20kHz would be about right


  4. #4
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,264
    Downloads
    0
    Uploads
    0
    That was my first port of call, but haven't come up with anything as yet, I was thinking that someone must have done this with a 555.

    I will keep looking.


  • #5
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,264
    Downloads
    0
    Uploads
    0
    So this is what I have got so far, I can use the 555 in Astable operation, I have drawn up a quick schematic, all I then need to do is take the output through something like a 74hc14 to invert the output to give me the NOT PWM signal...

    Period is 0.693(R1+2R2)C
    So freq would be 1/Period

    By changing R1 and R2 to a pot I should be able to change the duty.

    Am I close or way off ?
    Attached Thumbnails Attached Thumbnails Simple PWM Generator-555_pwm.jpg  


  • #6
    Registered
    Join Date
    Mar 2005
    Location
    Toronto, Canada
    Posts
    1,135
    Downloads
    0
    Uploads
    0
    using a single 555, the frequency and duration will both change... must pwm 555 circuits you use two 555 together (a 556 is two 555 on one chip), one in astable, one in monostable. the astable sets the frequency of the pwm, the mono the % of the pulse that is on....use that pulse to turn a fet on and off. you only need a pot on R1 for the monostable (you're adjusting the time the pulse is on, not the frequency). can't seem to find the web page that taught me all this, but as suggested search pwm and 555 and you'll get lots.

    one of the guys at homeshop machinist came up with this simple circuit and excellent tutorial - should get you started. voltages of the fet etc may need adjustment for your app
    http://vts.bc.ca/workshop/pwm/pwm.htm


  • #7
    Registered
    Join Date
    Jan 2005
    Location
    Missouri
    Posts
    746
    Downloads
    0
    Uploads
    0
    If it's not nailed down, it's mine.
    If I can pry it loose, it's not nailed down.


  • #8
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,264
    Downloads
    0
    Uploads
    0
    Cheers guys, that is the ticket !

    I like both sites, either will work for what I want, just have to rummage through the electronics pile to find which components I have and choose one to build.

    Cheers.

    Russell.


  • #9
    Registered
    Join Date
    Dec 2005
    Location
    USA
    Posts
    3,319
    Downloads
    0
    Uploads
    0
    For a little bit more than the cost of a 555, you can buy an off the shelf PWM IC.

    By using a dedicated power supply control IC, you can drive fets or fet drivers at duty cycles that are very, very low to nearly 99% while also adding shut down. over current and some other housekeeping functions via built in error amps and the like.

    Look into the SG3524, SG3525 and SG3526. EIther these or their complements are available in PWM positive or negative logic. These IC's may be available with an LM prefix from National or some other industry number.

    The LM3526 is one that I have a lot of experience with and it is somewhat easier to use over a wide frequency range than a 555 - the use of a fancier IC is also much harder to reverse engineer in a circuit if you scrub the numbers off of the IC when/if you ship the device.

    The above IC"s have some well documented application notes publishes with/for them....


  • #10
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,264
    Downloads
    0
    Uploads
    0
    Hey Dennis, thanks for the tip, I was going to use components I had lying around, but at $1.00 Au for the SG3524 it seems a lot simpler to buy a dedicated chip.

    The LM3526 came up as a Dual Port USB power switch, is that the right number ?

    Cheers.

    Russell.


  • #11
    Registered
    Join Date
    Dec 2005
    Location
    USA
    Posts
    3,319
    Downloads
    0
    Uploads
    0
    The 3524/25's are stripped down versions of the 3526 - all are voltage controlled PWM's.

    You set up a reference voltage and then compare it to/with the output voltage you create/integrate with the output side. The error amp keeps the output voltage constant by varying duty cycle - frequency stays fixed. You can daisy chain most of them and even do pulse by pulse current limiting and/or even soft starts.

    I recall the 24/25 as being simple O/C outputs while the 26 is dual totem pole version. You can AND/OR the outputs as appropriate.


  • #12
    Registered
    Join Date
    Aug 2007
    Location
    Harrison AR USA
    Posts
    72
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by epineh View Post
    Hey Dennis, thanks for the tip, I was going to use components I had lying around, but at $1.00 Au for the SG3524 it seems a lot simpler to buy a dedicated chip.

    The LM3526 came up as a Dual Port USB power switch, is that the right number ?

    Cheers.

    Russell.
    Try SG3526 or UC3526 or IP3526 or LT3526

    or go here http://www.alldatasheet.com/view.jsp?Searchword=3526

    Since I found that site, I don't miss my TTL data book so much.
    Ōz@®KÇÑÇ


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. EMC with what g-code generator?
      By randyf1965 in forum LinuxCNC (formerly EMC2)
      Replies: 10
      Last Post: 09-18-2011, 11:00 AM
    2. NC Code Generator
      By vijaychd in forum General CNC (Mill and Lathe) Control Software (NC)
      Replies: 0
      Last Post: 03-26-2007, 02:39 PM
    3. post generator
      By dxxx in forum SprutCAM
      Replies: 1
      Last Post: 11-06-2006, 02:28 AM
    4. Simple Question Simple Answer ?
      By p3t3rv in forum Stepper Motors and Drives
      Replies: 6
      Last Post: 02-16-2006, 10:00 AM

    Visitors found this page by searching for:

    Nobody landed on this page from a search engine, yet!
    SEO Blog

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.