All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > General Electronics Chat

Notices

General Electronics Chat Discussion forum for general chat about anything electronics related, including asking questions about material in the All About Circuits E-book, Worksheets, and Videos.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-20-2010, 02:59 PM
peck68 peck68 is offline
Member
 
Join Date: Nov 2009
Posts: 60
Default Creating different duty cycles?

Im still a novice at all this, and i'm learning the 555 timer - however i have been reading this awesome tutorial on it http://www.kpsec.freeuk.com/555timer.htm

But though, i want to learn how to create different duty cycles. Since the little guide on there doesn't really help me much so i was wondering for some extra support from this forum?

Thanks
Reply With Quote
  #2  
Old 03-20-2010, 03:07 PM
theamber's Avatar
theamber theamber is offline
Senior Member
 
Join Date: Jun 2008
Location: Monterrey, Mexico
Posts: 295
Default

You can change the duty cycle but your freq. may change too. What is the % you want to obtain?.
__________________
Minds are like parachutes. They only function when they are open. Sir James Dewar, Scientist (1877-1925).
Imagination is more important than knowledge. Albert Einstein.
I haven't failed, I've found 10,000 ways that don't work. Thomas Edison (1847-1931).
Do just once what others say you can't do, and you will never pay attention to their limitations again. James R. Cook.


Reply With Quote
  #3  
Old 03-20-2010, 03:18 PM
peck68 peck68 is offline
Member
 
Join Date: Nov 2009
Posts: 60
Default

Anything really, 75%/90%/25% etc - basically just learn how to change it to my desired needs, since i want to dim LEDs (as a project for me to do)

Last edited by peck68; 03-20-2010 at 05:07 PM.
Reply With Quote
  #4  
Old 03-20-2010, 04:13 PM
SgtWookie's Avatar
SgtWookie SgtWookie is offline
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 13,802
Default

On that same page you linked to, scroll about halfway down until you see "To achieve a duty cycle of less than 50%" in red on the left.

Look at the schematic on the right.

Then, look at the schematic and simulation that I've attached. It's very similar, except I've replaced R2 with a 100k potentiometer (pot).

Adjusting pot R2 will give you a very wide range of duty cycle outputs, from around 3% to around 98%.

R1 must be present, and it should be at minimum 100 Ohms for each volt of Vcc. Without R1, if you turned the pot all the way up, the timer's pin 7 would be shorted to Vcc, which would destroy the timer and/or the pot.

C1 is the timing capacitor. If you want to use it to flash LEDs at a slow rate, increase the size of the timing capacitor. 10uF to 100uF will make the flashes quite visible.

C2 keeps the control voltage stable. It is not critical, and may be omitted if you don't care about accuracy of your PWM.
C3 and C4 are required. Without them, your timer may not function correctly.

If you wish to use it as an LED dimmer, decrease C1 to 10nF (0.01uF), and the on/off cycle will be so rapid that you will not see the flashing.

Note that if you are dimming LEDs, you must still use a resistor to limit the maximum LED current.
Attached Images
File Type: png 555 PWM wide.PNG (71.1 KB, 12 views)
__________________
General info:
If you have a question, please start a thread/topic. I do not provide gratis assistance via PM nor E-mail, as that would violate the intent of this Board, which is sharing knowledge ... and deprives you of other knowledgeable input.
Reply With Quote
  #5  
Old 03-20-2010, 05:08 PM
peck68 peck68 is offline
Member
 
Join Date: Nov 2009
Posts: 60
Default

Ahh thank you

Erm, one more thing - are C3 and C4 constants? As in, there is no need to change the values?

---

Would a 10k pot be ok for a PWM or would i need 50 or 100k?
Reply With Quote
  #6  
Old 03-20-2010, 05:25 PM
SgtWookie's Avatar
SgtWookie SgtWookie is offline
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 13,802
Default

Quote:
Originally Posted by peck68 View Post
Ahh thank you
You're welcome.

Quote:
Erm, one more thing - are C3 and C4 constants? As in, there is no need to change the values?
That is correct.
They are what is known as "supply bypass capacitors".
The 555 timer family has a flaw in that when the output changes states, there is a very brief dead short across Vcc and ground. The 0.1uF cap should be a metalized poly or ceramic cap. the 10uF can be an aluminum electrolytic rated for at least Vcc x 2.

---

Quote:
Would a 10k pot be ok for a PWM or would i need 50 or 100k?
10k is too low.

50k or 100k is good.

You can go up to 1 MEG if you decrease C1 to compensate.
__________________
General info:
If you have a question, please start a thread/topic. I do not provide gratis assistance via PM nor E-mail, as that would violate the intent of this Board, which is sharing knowledge ... and deprives you of other knowledgeable input.
Reply With Quote
  #7  
Old 03-20-2010, 07:31 PM
peck68 peck68 is offline
Member
 
Join Date: Nov 2009
Posts: 60
Default

Ahh okay i think i got the jist of it

I had a go at making a small 3 LED dimmer. I changed R1 though to 2.2k instead since you said 100 ohms for every volt, over 200 per one is safe enough

Also i left out the control voltage, but was i supposed to ground it or leave it bare legged?
Attached Images
File Type: png PWM 3 LED.png (4.5 KB, 20 views)
Reply With Quote
  #8  
Old 03-20-2010, 08:18 PM
SgtWookie's Avatar
SgtWookie SgtWookie is offline
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 13,802
Default

Quote:
I had a go at making a small 3 LED dimmer. I changed R1 though to 2.2k instead since you said 100 ohms for every volt, over 200 per one is safe enough
That's OK. However, if you are powering the circuit using a battery, keep in mind that having a small R1 value will drain the battery much more quickly.

Pin 7 of the 555 is the timing capacitor discharge pin. When the output (pin 3) is low, pin 7 is connected to ground; it is an "open collector" transistor current sink. When pin 7 is sinking current to discharge the timing cap, current is flowing through not only R2, but R1 as well.

Your circuit:



... has a couple of problems.
1) C1 and C2 are connected in series. This is not correct. They should be connected in parallel; if they are polarized capacitors, the negative lead connects to ground.

2) Control (pin 5) is shown connected to ground. This is not correct. Control connects to a voltage divider that is internal to the 555. It controls the threshold and trigger points. Normally, it is at 2/3 Vcc. Adding a 10nF cap to ground helps to keep this voltage stable. If it is shorted to ground, the timer will either oscillate at maximum frequency (ignoring R1, R2, and C1) or not do anything at all.
__________________
General info:
If you have a question, please start a thread/topic. I do not provide gratis assistance via PM nor E-mail, as that would violate the intent of this Board, which is sharing knowledge ... and deprives you of other knowledgeable input.
Reply With Quote
  #9  
Old 03-20-2010, 08:42 PM
peck68 peck68 is offline
Member
 
Join Date: Nov 2009
Posts: 60
Default

Oops thanks for letting me know about that

Okay, does C3 have to be polarised? Since i just realised it's not really possible to get hold of 10nF electrolytics
Reply With Quote
  #10  
Old 03-20-2010, 08:53 PM
SgtWookie's Avatar
SgtWookie SgtWookie is offline
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 13,802
Default

No, C3 does not have to be polarized.
Metalized poly film works very well. If you don't have metalized poly film, you can use ceramics or "green caps" or just about anything you have on hand. Note that the voltage rating should be at least twice the maximum voltage that it will be exposed to. In the case of C3, that is Vcc x 2/3.

It's the aluminum electrolytic and tantalum caps you really have to watch out for. If you approach their maximum voltage rating, they can short out or burst on you.
__________________
General info:
If you have a question, please start a thread/topic. I do not provide gratis assistance via PM nor E-mail, as that would violate the intent of this Board, which is sharing knowledge ... and deprives you of other knowledgeable input.
Reply With Quote
The Following User Says Thank You to SgtWookie For This Useful Post:
peck68 (03-20-2010)
Reply   Post New Thread

Bookmarks

Tags
, ,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Synchronous buck up to 100% duty cycle mwilliford The Projects Forum 3 10-07-2009 08:34 AM
issue with pwm duty cycle simeonz11 General Electronics Chat 4 05-30-2009 10:53 PM


All times are GMT. The time now is 10:39 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License. Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.