help with 555 TIMER - variable frequency and variable duty cycle

Discussion in 'The Projects Forum' started by minkey01, Dec 7, 2016.

  1. minkey01

    Thread Starter Member

    Jul 23, 2014
    185
    0
    Hi.

    I'm trying to design a 555 timer circuit powered by +12V and outputs +5V pulses with variable frequency and variable duty cycle.

    It should have :

    Clock Range Switch : x1 or x10 setting
    Clock Rate Knob : 0.1 Hz - 10 Hz (x1)
    1 Hz - 100 Hz (x10)
    Duty Cycle Knob : 10% -90%

    The duty cycle range can be wider if possible. Those % values above are just the bare minimum.

    Here is a picture of how far I got. Not sure if this is right or getting close. Could someone please help me with the values and needed new components?

    Thanks so much! Happy Holidays!

    555 clock.jpg
     
  2. minkey01

    Thread Starter Member

    Jul 23, 2014
    185
    0
    I found this in the forum as a blog post, but not sure why it has two different outputs. ?

    555 clock 2.jpg
     
  3. ScottWang

    Moderator

    Aug 23, 2012
    6,407
    991
  4. minkey01

    Thread Starter Member

    Jul 23, 2014
    185
    0
    Hi. That first circuit only has one potentiometer. I would need to have two potentiometers, so I can change both the frequency and duty cycle at the same time. Looks like that first circuit has a switch box where you can toggle which one you are changing?
     
  5. minkey01

    Thread Starter Member

    Jul 23, 2014
    185
    0
    Found this circuit too. Maybe this is a better starting point. It is suppose to be independent variable frequency and duty cycle.

    Thoughts?

    Does anyone have a LTSpice model for the LM393? I would like to try to simulate this latest circuit.

    555 clock 3.jpg
     
  6. minkey01

    Thread Starter Member

    Jul 23, 2014
    185
    0
    Ok, thank you. So I only would be using pin 7 output. Is there anything else wrong with the circuit? Still trying to find a LM393 LtSpice model, so I can tune to my values.
     
  7. dannyf

    Well-Known Member

    Sep 13, 2015
    2,196
    421
    The timer generates a ramp on the capacitor, and a 50 percent square wave on its output.

    The ramp is compared with a voltage variable by the pot to turn the led on and off, producing a pwm waveform.
     
  8. dannyf

    Well-Known Member

    Sep 13, 2015
    2,196
    421
    For that circuit, any comparator or opamp will work - just make sure that the input voltage can swing near the negative rail.
     
  9. dannyf

    Well-Known Member

    Sep 13, 2015
    2,196
    421
    Just so you know, the 555 can be replaced by that unused comparator. The design is a little bone headed in that regard.
     
  10. Bordodynov

    Well-Known Member

    May 20, 2015
    1,976
    596
    See
    Draft362.png
     
  11. shortbus

    AAC Fanatic!

    Sep 30, 2009
    5,786
    3,296
    That is by one of the forum mods, Wendy.
     
  12. crutschow

    Expert

    Mar 14, 2008
    20,206
    5,714
    I fail to see why you think that circuit is so bad that you would say that. :confused:
     
    shortbus likes this.
  13. dannyf

    Well-Known Member

    Sep 13, 2015
    2,196
    421
    here is a simple demo, showing how the whole thing can be fitted to one dual opamp/comparator.

    comparator pwm generator.PNG

    U1 acts like an oscillator, producing square wave output. On the comparator, it produces a ramp - shown as the blue trace.

    U2 is a simple comparator. By adjusting the pot (R2+R3), you control the duty cycle.

    Fairly easy to construct. Values are not critical.
     
    Robert Murphy likes this.
  14. minkey01

    Thread Starter Member

    Jul 23, 2014
    185
    0
    Hi, Danny. A few questions:

    1) What is the value of C2? It is cut off in the picture.
    2) How would I change the frequency?

    Thanks! This really looks great.
     
  15. Plamen

    Member

    Mar 29, 2015
    72
    6
    555 has inherently asymmetrical rise/fall time because of different charge/discharge paths and in most cases it is hard to adjust by one pot the duty cycle on either side of 50%. A simple OP AMP circuit can adjust both frequency and duty cycle. The duty cycle adjustment pot is shown as 99k and 1k resistors. Range selection by cap, frequency adjustment by R2. A MOSFET is shown as level shifter to make 5V amplitude.
    The cap could also be referred to virtual ground (10k mid point). Unipolar 12V power supply is shown - hence the 10k/10k divider to make "virtual ground"
    upload_2016-12-9_10-25-42.png

    Even more advance options present the LTC699X Timer Blox chips from Linear Technology.
    LTC6990 is a voltage controlled oscillator; LTC6991 a low frequency clock. Download from LT web site the TimerBlox Excel based design tool.
    http://www.linear.com/products/timerblox (under SW and simulation)
    Pick a timing function, plug your requirements, click and get specific example.
    These chips have very accurate timing (1%) without caps. They have course adjustment by ratio of resistors and fine adjustment by a resistor value. There is a PWM member in the timer blox family too (LTC6992). Download LTSpice (free) and design with gusto.
    upload_2016-12-9_10-35-21.png
     
  16. crutschow

    Expert

    Mar 14, 2008
    20,206
    5,714
    Here's my take on a three opamp circuit using one LM324 package.

    U1 is configured as a comparator that generates a square-wave.

    This is converted to a triangle-wave by U2, configured as an integrator.

    U3 is configured as another comparator, which compares the triangle-wave voltage with the voltage from pot U4 to generate the PWM signal with duty cycle of 0% to 100% by adjusting U4.

    The frequency goes from about 0.1Hz to 11Hz with C1 = 3.3uF by adjusting U5.
    If C1 is switched to a value of 0.33uF then the frequency range will be about 10Hz to 110Hz.

    upload_2016-12-9_16-19-11.png
     
  17. dannyf

    Well-Known Member

    Sep 13, 2015
    2,196
    421
    C2 vakue doesnt matter. i used .1uf.

    r1c1 determine the frequency.

    hope it helps.
     
  18. Bordodynov

    Well-Known Member

    May 20, 2015
    1,976
    596
    crutschow
    crutschow
    ,
    What company spice model you use for LM324?
    I have:
    LM324/NS,
    LM324/ST,
    LM324_MC,
    LM324_AB (from transistors)
    and several others.
     
  19. crutschow

    Expert

    Mar 14, 2008
    20,206
    5,714
    I have an LM324 macro-model from National Semiconductor.
    I assume that corresponds to your LM324/NS model.
     
  20. Bordodynov

    Well-Known Member

    May 20, 2015
    1,976
    596
    Thank you.
    Now I will make a new symbol lm324.sym. I will add this symbol in my library. After that I will be able to use your circuits that use lm324.
     
Loading...