
LED Dimming Project Using 555 Timer in Proteus ISIS

Hello friends! Today we will study LED dimming using a 555 timer in Proteus ISIS. In our earlier single and double LED flasher and multiple LED flasher, the visible effect was a repeated change between on and off. Here we want to understand how a circuit changes apparent brightness.
We will first examine the original fading demonstration, then build a controlled pulse-width-modulation example. PWM lets us change the fraction of time an LED conducts while keeping its on-state current limited. The important measurements are pulse width, repetition period and LED current.
The original screenshots and download are retained. Their off, dim and bright images show the intended visual effect, but a still image cannot establish the electrical waveform. We will use the oscilloscope to distinguish a changing current from a changing duty cycle.
Flashing, Fading and PWM Are Different
A slow flasher turns an LED on and off at a rate you can follow by eye. A fade changes apparent brightness gradually over a longer interval. PWM switches the LED rapidly and controls the proportion of each cycle spent on.
A fading effect can be created by changing analog current or by slowly varying a fast PWM duty cycle. Those methods can look similar while producing different voltage, current and power waveforms. Calling both “dimming” does not make their calculations interchangeable.
For PWM, duty cycle D = tON / T, where T is the complete period. If an LED conducts for 0.25 ms in every 1 ms cycle, its duty cycle is 25 percent and the switching frequency is 1 kHz.
| Method | What changes | Useful observation |
|---|---|---|
| Slow flashing | On/off state over visible intervals | Count the flashes and measure their period |
| Analog fading | LED current changes continuously | Measure the current envelope |
| PWM dimming | On-time fraction of a faster waveform | Measure pulse width, frequency and peak current |
Understand the Historical Circuit
The original component list includes a 555, a BC547 transistor, resistors, a capacitor and an LED. The transistor and capacitor participate in a feedback arrangement that differs from the familiar two-resistor, pin-7 astable.
Do not insert its component values into the standard astable formula without first tracing the charging and discharge paths. The transistor changes the relationship between the timer output, monitored voltage and LED current. Its behavior also depends on transistor gain, junction voltage, supply and load.
The original schematic leaves several practical details implicit, including the chosen supply and decoupling. Before using the archive as hardware guidance, establish those conditions and measure the LED current. A slowly changing simulator brightness is not a substitute for those checks.
The revised exercise below uses a separate, explicit PWM arrangement so that each adjustment has a defined meaning. It is a design you can construct alongside the original circuit for comparison, rather than a claim that the old archive already contains the new connections.
A Measurable 555 PWM Demonstration
Use one 555 as a monostable pulse generator. Trigger it at a fixed repetition rate, then vary its timing resistance. Each trigger starts a high output pulse; the timing capacitor reaching the threshold ends that pulse.
For the first Proteus experiment, use a pulse source to provide a clearly defined trigger: a 1 ms period, normally high at 5 V, with a short 20 µs low pulse. This corresponds to a 1 kHz repetition rate. Begin with the trigger high and schedule the first low pulse after startup.
An ideal simulation source is a teaching instrument, not a hidden physical component. A hardware version needs a suitable clock and pulse-shaping stage. A second 555 can provide a clock, but its trigger waveform must be checked; a long low level can prevent the desired short monostable pulse from ending normally.
TI's 555 PWM design discussion explains why trigger duration, control range and pulse skipping matter. We will keep the demonstration away from extreme zero and full-duty settings.
Connect the Monostable Timing Circuit
- Connect pin 1 to ground and pin 8 to a regulated 5 V supply.
- Hold reset, pin 4, high.
- Join threshold pin 6 and discharge pin 7 at the timing node.
- Connect a fixed 10 kΩ resistor and a 68 kΩ variable resistance in series from 5 V to that node.
- Connect a 10 nF timing capacitor from the node to ground.
- Connect the defined trigger pulse source to pin 2 with a common ground reference.
- Add supply bypassing near the IC and a typical 10 nF capacitor from control pin 5 to ground.
Configure the potentiometer as a variable resistor. Connect its wiper to the selected end terminal so that loss of wiper contact tends toward the full resistance rather than an open timing path. The fixed 10 kΩ resistor prevents the total timing resistance from reaching zero.
This monostable does not use the astable connection with pins 2 and 6 joined. Here pin 2 receives the external trigger, while pins 6 and 7 share the timing capacitor. Mixing those two topologies is a common reason a copied circuit does not behave as expected.
Calculate the Pulse-Width Range
With the normal control threshold, a 555 monostable has approximate high time t = 1.1RC. The capacitor starts near ground and charges through R toward the supply until it reaches approximately two-thirds of that supply.
At the minimum resistance of 10 kΩ with C = 10 nF, the nominal pulse width is 110 µs. At the maximum total resistance of 78 kΩ, it is approximately 858 µs. Both are shorter than the 1 ms trigger period.
| Total timing resistance | High pulse width | Duty cycle |
|---|---|---|
| 10 kΩ | 110 µs | 11 percent |
| 25 kΩ | 275 µs | 27.5 percent |
| 45 kΩ | 495 µs | 49.5 percent |
| 65 kΩ | 715 µs | 71.5 percent |
| 78 kΩ | 858 µs | 85.8 percent |
The 20 µs trigger pulse returns high well before the shortest nominal output pulse ends. There is also a nominal off interval before the next trigger at the longest setting. Verify these margins with component tolerances and the selected timer model rather than relying only on nominal arithmetic.
Increasing R beyond this range can make the intended high time approach or exceed the trigger period. The result may be missing pulses or an altered repetition pattern, not a smooth continuation toward full brightness. Check frequency as well as duty cycle while adjusting the circuit.
Drive the LED Through a BC547
For the revised PWM circuit, use the BC547 as a low-side switch. Connect its emitter to ground, its collector to the LED cathode, and the LED anode to 5 V through a 680 Ω resistor. Feed the base from pin 3 through 4.7 kΩ, with a 100 kΩ base-to-emitter resistor to define the off state.
These connections differ from the transistor arrangement in the historical drawing. Check the actual package pinout rather than assuming that the left-to-right pin order matches another transistor. The onsemi BC547 family datasheet provides pin identification and current and saturation specifications.
For an illustrative LED forward drop of 2.0 V and transistor saturation drop of 0.2 V, the on-state LED current is (5.0 − 2.0 − 0.2) / 680, approximately 4.12 mA. Use the actual LED and supply characteristics to refine that estimate.
If the timer's loaded high output is 3.0 V and the conducting base-emitter drop is approximately 0.8 V, a 4.7 kΩ base resistor gives about 0.47 mA before the small pull-down current. That is ample base drive for this modest illustrative collector current; do not reuse the calculation unchanged for a much larger LED load.
The BC547 is a small-signal transistor. Its maximum rating is not a recommended continuous operating point for a high-power lamp. For larger LED banks or strips, select an appropriate power driver and supply, and retain suitable current regulation or branch resistors.
Relate Duty Cycle to Average LED Current
For approximately rectangular current pulses, IAVG ≈ D × ION. With an on-state current of 4.12 mA, the average is about 1.03 mA at 25 percent duty and 3.09 mA at 75 percent duty.
This does not mean the LED receives a constant 1.03 mA in the first case. It receives roughly 4.12 mA during each on interval and nearly zero during each off interval. A slow meter may report an average and hide the pulsed waveform.
Perceived brightness does not follow a perfectly linear relationship with average current. LED optical behavior and human vision both matter. A change from 20 to 40 percent duty is a doubling of duty cycle, but it need not look like an exact doubling of brightness.
The on-state current must remain within the LED and driver's ratings at every setting. A low average does not make an excessive peak harmless. Peak-current allowances, when specified, depend on pulse duration and duty cycle.
Measure the Waveforms in Proteus
- Run the trigger source and verify its high voltage, low voltage, period and low-pulse duration.
- Probe pin 3 and measure the high pulse width at minimum timing resistance.
- Check the timing capacitor ramp and discharge between pulses.
- Adjust the resistance through several intermediate settings.
- Measure LED current from the voltage across its known series resistor.
- Confirm that one output pulse occurs for every trigger throughout the intended range.
If the resistor voltage is 2.8 V during the on interval, Ohm's law gives 2.8 / 680 ≈ 4.12 mA. Measuring across the resistor provides a direct connection between the electrical waveform and the brightness adjustment.
The original image sequence shows off, dim and bright conditions from the historical circuit. The revised PWM experiment should instead be documented with measured pulse widths and current. It has adjustable brightness; automatic repetitive fading requires an additional slowly varying control.
Do not judge flicker solely from a screen capture. Display refresh, simulator animation and camera exposure can alter its appearance. The selected 1 kHz rate is a convenient experiment, not a universal guarantee for every camera, observer or lighting application.
Turn Adjustable Brightness into a Fade
To create a breathing effect, duty cycle must change slowly while the switching carrier remains much faster. For example, a control sequence might rise from 15 to 80 percent over a second, then return over another second. That slow envelope is separate from the 1 kHz switching period.
Turning the timing potentiometer by hand demonstrates this distinction, but does not create an autonomous fade. An automatic design needs another control circuit or programmed controller. Label the carrier period and fade period separately when discussing its behavior.
A 555's control pin can modulate its threshold, but its voltage-to-pulse-width relationship is nonlinear because capacitor charging is exponential. The basic relationship is t = −RC ln(1 − VCONTROL/VCC), within the usable operating range and the assumptions of the monostable.
Do not connect an arbitrary waveform to pin 5 and assume it produces a linear brightness ramp. Check permitted control levels, trigger duration, output pulse continuity and the resulting LED current. A comparator-based PWM design may offer a more suitable control relationship for an extended project.
Review Power, Filtering and Startup
The LED resistor dissipates approximately I²R while on. At 4.12 mA and 680 Ω, that is about 11.5 mW during the on interval. Its average dissipation is lower at reduced duty, but use the on-state value and operating conditions when reviewing component margin.
For the illustrative transistor drop of 0.2 V, collector-path dissipation while on is approximately 0.82 mW. This modest example does not eliminate the need to calculate dissipation when increasing the current or using the transistor in its linear region.
Supply bypassing is important because the timer and LED driver switch current. Keep the high-current path away from the sensitive timing node. A long ground return can shift the comparator reference and make the pulse width move with the load.
Define startup behavior. A trigger source starting low can begin a pulse immediately, while a floating reset or transistor base can cause an unwanted flash. The pull-down and defined trigger source make the intended simulation state clearer, but real startup still needs observation.
Download and Compare the Original Demonstration
The archived Proteus file is available below. It preserves the original fading circuit and screenshots; it has not been rebuilt into the explicit monostable PWM exercise described in this revision.
Use the archive as a comparison exercise: observe its LED-current waveform, identify whether the current changes gradually, and compare that behavior with the rectangular current pulses of the PWM circuit. This teaches more than treating every changing brightness as the same effect.
When recording results, include the trigger period, timing resistance, measured pulse width, peak LED current and average LED current. Compare the measured duty cycle with pulse width divided by period. If that ratio disagrees with a meter reading, check whether the meter is averaging voltage, current or an AC-coupled quantity.
Also repeat one setting after the circuit has been running for a while. Component temperature and supply drift can change the result. A useful dimmer is repeatable within its intended requirements; a single attractive screenshot does not establish that repeatability.
Troubleshooting and Review
| Symptom | Likely checks |
|---|---|
| No output pulses | Trigger polarity, reset level, supply and timing-node wiring |
| Pulse stays high too long | Trigger remains low, timing resistance or capacitance is excessive |
| Frequency changes at high brightness | Pulse width approaches the trigger period and pulses are skipped |
| Output pulses exist but LED is dark | LED polarity, transistor pinout and base current |
| Transistor or LED heats up | Peak current, resistor value, driver mode and device ratings |
| Brightness changes irregularly | Wiper continuity, supply noise, timing-node interference and actual duty cycle |
The review question is whether your explanation matches your measurements. If the current amplitude changes, describe analog dimming. If the current amplitude is approximately constant and its on-time fraction changes, describe PWM. If the whole effect repeats slowly, identify the separate fade envelope.
For another timing exercise, compare the LED blinking project. Keep the waveform and load calculations with the correct topology whenever moving between examples.
Frequently Asked Questions
Does a dim LED always mean PWM?
No. Reduced continuous current can also dim an LED. Measure the current waveform to distinguish the methods.
Can I remove the LED resistor because PWM reduces average current?
No. The on-state current still needs limiting during every pulse.
Does the revised PWM example fade automatically?
No. It provides adjustable duty cycle. Automatic fading requires an additional control that changes that duty cycle over time.
Why avoid the extreme duty-cycle settings?
Trigger duration, discharge time and device behavior limit reliable operation. Measure pulse continuity instead of assuming the entire zero-to-full range is available.
Can the BC547 drive a power LED?
The small indicator example does not establish that. A power LED needs a driver and thermal design suited to its current and voltage.
























Comments
1