![]() |
|
|||||||
| 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. |
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 ![]() |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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.
__________________
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. |
|
#5
|
|||
|
|||
|
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? |
|
#6
|
||||
|
||||
|
You're welcome.
![]() Quote:
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:
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. |
|
#7
|
|||
|
|||
|
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? |
|
#8
|
||||
|
||||
|
Quote:
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. |
|
#9
|
|||
|
|||
|
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 |
|
#10
|
||||
|
||||
|
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. |
| The Following User Says Thank You to SgtWookie For This Useful Post: | ||
peck68 (03-20-2010) | ||
|
| Bookmarks |
| Tags |
| creating, cycles, duty |
| Thread Tools | |
| Display Modes | |
|
|
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 |