LED Fader Using 555 Timer IC

Share:


Wanted to generate a LED fading effect (fade-in and fade-out) for my upcoming video tutorial using the 555 timer IC.
I already have a video where I used LM358 Dual Operational Amplifier IC and another one with Arduino to generate the LED fading effect.

YouTube, is full of video showing how to generate the fading effect using 555 timer IC. However, none of them produce a true fading effect. 
Some just fades-in but never fades-out. And there is literally no explanation of how they are generating the fading effect other than just showing how to assemble the components.

In this tutorial, I am going to show you guys how to create a true LED fading effect using the 555 timer IC. I will also explain how the circuit works and how changing components change the fading effect of the LEDs.

Sponsors

This video is sponsored by PCBWay.


PCBway:  only $5 for 10 pcbs from  https://www.pcbway.com/?from=CZcouple

PCBWay specialize in manufacturing of very high quality, low-volume, colored PCBs at a very budgetary price. In addition to the standard PCBs, you can also order Advanced PCBs, Aluminum PCBs, FPC/Rigid-flex PCBs. They also provide PCB assembly and other related service which can meet your needs to the greatest extent.

PCBWay ships from china to most of the countries of the world within 3 to 7 business days. Talking about the quality, its absolutely mind-blowing.

Components Required



For this tutorial you need:
1 x 555 Timer IC
1 x 47KΩ Resistor
1 x 220Ω Resistor
1 x BC548 NPN Transistor
1 x 33µF Capacitor, and
1 x Few Blue LEDs


Circuit Diagram



The heart of this circuit is the 555 timer IC.
Pin No.1 of the IC is connected to GND.
By connecting Pin 2 and 6 of the 555 timer IC, we put the IC in astable mode. In astable mode, the 555 timer IC acts as an oscillator (re-triggering itself) generating square waves [PWM Signals] from the output Pin no. 3.
3 other components connect to this junction. 
1st one is the 33µF capacitor. The positive pin of the capacitor connects to the junction and the negative pin is connected to the GND.
2nd one is the 47KΩ resistor. One of its legs connects to the junction and the other leg connects to the Output pin, Pin No.3 of the IC.
3rd one is the Base of the BC548 NPN transistor. The collector of the transistor along with Pin 8 and 4 of the IC connects to the +ve terminal. of the battery. The LED along with its current limiting resistor is connected to the Emitter of the transistor.
That's it as simple as that. 

Alright, now I am going to demonstrate how this circuit works with the help of an animation.


How The Circuit Works



  • When Pin 2 of the IC detects voltage LESS than 1/3rd of the supply voltage, it turns ON the output on Pin 3.
  • And, when Pin 6 detects voltage MORE than 2/3rds of the supply voltage, it turns OFF the output.
This is how the trigger pin (Pin2) and the
threshold pin (Pin6) of the 555 timer IC sense voltages and controls the output at Pin 3.

  • The Capacitor attached to the circuit will be in a discharged state immediately after firing up the circuit. 
  • So, the voltage at Pin 2 will be 0v which is less than 1/3rds of the supply voltage, this will turn ON the output on Pin 3.
  • Since Pin 3 is looped back to Pin 2, it will start charging the Capacitor via the 47KΩ resistor.
  • At the same time the base current of the transistor also increases causing the LED to slowly "fade-in".
  • Once the voltage across the capacitor crosses 2/3rds of the supply voltage, Pin 6 turns OFF the output.
  • This causes the capacitor to slowly discharge causing the base current to fall and hence the LED starts "fading-out".
  • Once the voltage across the capacitor falls below 1/3rd of the supply voltage, Pin 2 turns ON the output, and the above cycle continues.
You can hook up a multimeter to the circuit to measure the charging and discharging of the capacitor.


Breadboard Demo


So, here is a quick demo on a breadboard.
In the current setup I have a 33µF Capacitor and a Blue LED on the breadboard.
Replacing the 33µF Capacitor with a 100µF Capacitor makes the LED fade in-and-out slower as the 100µF capacitor charges and discharges slower than 33µF Capacitor.

Also by replacing the "Blue LED" with a "Red LED", we can make the LED to stay "on" longer than the blue one with the same value of capacitor. This is because the "Forward Voltage" (Vf) of the Blue LED is higher than that of the Red LED. 
"Forward voltage" is the minimum amount of voltage that is required to allow an electrical component to turn on.
The red, green and yellow LEDs have relatively "low" forward voltage ranging from 1.6-2.2V and hence stays on longer when the capacitor slowly charges or discharged. However, blue and white LEDs starts conducting from 2.5-4V and hence, when the discharging capacitor's voltage hits the threshold the LED turns off faster than the other colors. I have provided a link to how the forward voltage works in the description below.
If you connect few LEDs in series, the forward voltage adds up and hence it will require more voltage to turn on the LEDs.


You need to add a current limiting resistor between the emitter of the transistor and the LED to avoid an internal short-circuiting inside the led.


The Board


To make it easy for you guys, I have created this tiny little "555 LED Fader Module". After assembling the components, you just need to power this module by providing a voltage between 5v to 15v to fade the LED.


So, this is how my board looks like in 2D and 3D. There are 16 breakout boards in this 100cm x 100cm assembly. You can download the gerber file from the link provided in the description below and order it from PCBWay.


Soldering


Let me quickly show you guys how to assemble the components to this custom made board.
Let's start by soldering the IC Base to the board. 
Then let's solder the two resistors to the board. Next, lets solder the capacitor followed by the transistor to the board. Then, lets solder a blue LED to the board.
Once done, let's insert the 555 timer IC to the IC base.
To conclude the setup, I soldered 2 x Female pin headers to the board. You can either solder a pair of female pin-header or male pin-header or solder a pair of wires directly to the board to power this module.




Demo


Cool, so this is how my module finally looks like.
You can install female pin-headers in-place of the LED or Capacitor if you plan to use this as a development/testing board instead of a module.




Thanks

Thanks again for checking my post. I hope it helps you.
If you want to support me subscribe to my YouTube Channel: https://www.youtube.com/user/tarantula3

  • LED Fader - With or Without Arduino: Visit
  • Adjustable Single/Dual LED Flasher Using 555 Timer IC: Visit

Other Links:

Support My Work:
  • BTC:   1Hrr83W2zu2hmDcmYqZMhgPQ71oLj5b7v5
  • LTC:   LPh69qxUqaHKYuFPJVJsNQjpBHWK7hZ9TZ
  • DOGE:  DEU2Wz3TK95119HMNZv2kpU7PkWbGNs9K3
  • ETH:   0xD64fb51C74E0206cB6702aB922C765c68B97dCD4
  • BAT:   0x9D9E77cA360b53cD89cc01dC37A5314C0113FFc3
  • LBC:   bZ8ANEJFsd2MNFfpoxBhtFNPboh7PmD7M2
  • COS:   bnb136ns6lfw4zs5hg4n85vdthaad7hq5m4gtkgf23 Memo: 572187879
  • BNB:   0xD64fb51C74E0206cB6702aB922C765c68B97dCD4
  • MATIC: 0xD64fb51C74E0206cB6702aB922C765c68B97dCD4

Thanks, ca again in my next tutorial.


Tags
====
LED Dimmer, led fader, led fader without Arduino, PWM LED Dimmer Using NE555, LED Fader, fader, PWM LED Dimmer, breathing LED, 555 Project, LM358 Project, pwm, Pulse Width Modulation,LM358,operational amplifier,analogWrite,Breadboard,square wave, triangle wave, Adjustable Single/Dual LED Flasher Using 555 Timer IC,LED Flasher, 555 LED Flasher,555 Pulse Generator,Frequency Adjustable Pulse Generator Module,astable mode, oscillator,555 Module, Pulse Generator Module NE555 Chip


No comments