Tuesday, 28 May 2013

Digitally Adjustable Dancing Lights

You might have come across several types of adjustable dancing lights (flickering LEDs). Most of them use presets (variable resistors) to adjust the rate of switching. Being a mechanical component, the preset easily wears out with use and also introduces noise in the circuit. The circuit presented here selects different values of resistors to control the frequency of an astable multivibrator using timer IC 555.

The circuit is built around decade counter IC 4017, quad bilateral switch IC 4066 (to select the desired resistance) and timer 555. The decade counter output selects one of the resistors at the output of IC 4066. The selected resistor changes the time period of the 555 timer circuit, whose ‘on’ and ‘off’ timings are given by:ton = 0.693(R9+Rx)C3toff = 0.693RxC3

Fig. 1: Circuit for digitally adjustable dancing lights

In the present design, R9 = 1 kilo-ohm, C3 = 47 µF and Rx varies according to the output of IC1 (CD4017), which changes by pressing the switch S2 one by one.

Whenever you momentarily press switch S2, the output of the decade counter advances to select a higher value of resistor Rx in IC 4066, which changes the switching time of the astable multivibrator. LED1 and LED2 indicate switching ‘off’ and ‘on,’ respectively, of the multivibrator.

Assemble the circuit on a general-purpose PCB and enclose in a suitable case. Fix LEDs and switches on the front panel. Connect the optional circuit shown in Fig. 2 if higher intensity of light is needed.