Showing posts with label Led. Show all posts
Showing posts with label Led. Show all posts

CD4013 Push Button CMOS Toggle Flip Flop


The circuit below uses a CMOS dual D flip flop (CD4013) to toggle a relay or other load with a momentary push button. Several push buttons can be wired in parallel to control the relay from multiple locations. A high level from the push button is coupled to the set line through a small (0.1uF) capacitor. The high level from the Q output is inverted by the upper transistor and supplies a low reset level to the reset line for about 400 mS, after which time the reset line returns to a high state and resets the flip flop. The lower flip flop section is configured for toggle operation and changes state on the rising edge of the clock line or at the same time as the upper flip flop moves to the set condition. The switch is debounced due to the short duration of the set signal relative to the long duration before the circuit is reset. The Q or Qbar outputs will only supply about 2 mA of current, so a buffer transistor or power MOSFET is needed to drive a relay coil, or lamp, or other load. A 2N3904 or most any small signal NPN transistor can be used for relay coil resistances of 250 ohms or more. A 2N3053 or medium power (500 mA) transistor should be used for coil resistances below 250 ohms. The 47 ohm resistor and 10uF capacitor serve to decouple the circuit from the power supply and filter out any short duration noise signals that may be present. The RC network (.1/47K) at the SET line (pin 8) serves as a power-on reset to ensure the relay is denergized when circuit power is first applied. The reset idea was suggested by Terry Pinnell who used the circuit to control a shed light from multiple locations.

Read MoreCD4013 Push Button CMOS Toggle Flip Flop

LM3909 1.5 Volt LED Flashers Circuit


The LED flasher circuits below operate on a single 1.5 volt battery. The circuit on the upper right uses the popular LM3909 LED flasher IC and requires only a timing capacitor and LED.

The top left circuit, designed by Andre De-Guerin illustrates using a 100uF capacitor to double the battery voltage to obtain 3 volts for the LED. Two sections of a 74HC04 hex inverter are used as a squarewave oscillator that establishes the flash rate while a third section is used as a buffer that charges the capacitor in series with a 470 ohm resistor while the buffer output is at +1.5 volts. When the buffer output switches to ground (zero volts) the charged capacitor is placed in series with the LED and the battery which supplies enough voltage to illuminate the LED. The LED current is approximately 3 mA, so a high brightness LED is recommended.

In the other two circuits, the same voltage doubling principle is used with the addition of a transistor to allow the capacitor to discharge faster and supply a greater current (about 40 mA peak). A larger capacitor (1000uF) in series with a 33 ohm resistor would increase the flash duration to about 50mS. The discrete 3 transistor circuit at the lower right would need a resistor (about 5K) in series with the 1uF capacitor to widen the pulse width.

LM3909 1.5 Volt LED Flashers Circuit

Read MoreLM3909 1.5 Volt LED Flashers Circuit

60 Light Matrix Led Sequencer


The circuit below illustrates using a 10x10 matrix to sequence up to 100 LEDs with just three ICs and 20 transistors. The two 4017 decade counters control the 10 rows and 10 columns so that one LED is selected depending on the output of the decade counters.

The LED circuit is drawn showing 25 LEDs and 10 transistors but can be expanded up to a 100 by using sucessive stages of the 4017 counters.

For example, to expand the circuit to 60 LEDs for displaying minutes or seconds of a clock, the rows counter could be reset from pin 12 (carry out) rather than pin 1 as shown, and the columns counter will be reset from pin 5 rather than pin 1 as shown. And then add transistors to pins 1,5,6,9,and 11 of the rows counter and pin 1 of the columns counter. Take a look at the "10 Stage LED Sequencer" for a listing of all the connections of the 4017 decade counter.

Read More60 Light Matrix Led Sequencer

Descrete Multistage Light Sequencer Circuit


The drawing below illustrates a multistage light sequencer using descrete parts and no integrated circuits. The idea is not new and I hear a similar circuit was developed about 40 years ago using germanium transistors. The idea is to connect the lights so that as one turns off it causes the next to turn on, and so forth. This is accomplished with a large capacitor between each stage that charges when a stage turns off and supplies base current to the next transistor, thus turning it on. Any number of stages can be used and the drawing below illustrates 3 small Christmas lights running at about 5 volts and 200mA. The circuit may need to be manually started when power is applied. To start it, connect a momentary short across any one of the capacitors and then remove the short. You could use a manual push button to do this.

Detailed operation:

Assume the circuit doesn't start when power is applied amd all lights are off and all three capacitors are charged to about 5 volts. We connect a jumper across the 220uF capacitor on the left which discharges the capacitor and turns on the 2nd stage transistor and corresponding light. When the jumper is removed, the capacitor will start charging through the base of the stage 2 transistor and stage 1 light. This causes the stage 2 transistor to remain on while the capacitor continues to charge. At the same time, the capacitor connecting stage 2 and 3 will discharge through the 100 ohm resistor and diode and stage 2 transistor. When the capacitor charging current falls below what is needed to keep stage 2 turned on, the transistor and light will turn off causing the voltage at the collector of the stage 2 transistor to rise to 5 volts. Since the capacitor connecting stage 2 and 3 has discharged and the voltage rises at the collector of stage 2, the capacitor from stage 2 and 3 will charge causing the 3rd stage to turn on and the cycle repeats for sucessive stages 4,5,6,7.... and back to 1. The sequence rate is determined by the capacitor and resistor values (220uF and 100 ohms in this case), load current (200mA in this case), and current gain of the particular transistor used. This arrangement runs at about 120 complete cycles per minute for 3 lights, or about 167mS per light. Faster or slower rates can be obtained with different capacitor values.

Read MoreDescrete Multistage Light Sequencer Circuit

Dual LED flasher 1.5 volt


This 1.5 volt led fasher runs more than a year on a single 'd" cell and alternately flashes 2 LEDs at about a 1 second rate. The circuit employs a 74HC14 CMOS hex inverter that will operate at very low voltages (less than 1 volt). One section is used as a squarewave oscillator (pins 1 and 2), while the others are wired to produce a short 10mS pulse on alternate edges of the square wave so the LEDs will alternate back and forth. The output sections each use a capacitor charge pump to increase the voltage for the LEDs. The circuit draws an average current of 800uA from the 'D' battery and the LED peak current is about 40mA with a fresh battery and drops to about 10mA as the battery voltage falls to 1.1 volts. The capacity of a alkaline 'D' cell is about 12 amp hours with a cutoff voltage of 1.1 so the circuit should run about 12/.0008 = 15000 hours or maybe 625 days, but I haven't verified that yet. The idea for this circuit came from a single 1.5 volt LED flasher by Dave Johnson that can viewed at

http://www.imagineeringezine.com/PDF-FILES/ac14fls.pdf

Dual LED flasher 1.5 volt Circuit

Read MoreDual LED flasher 1.5 volt

12 Volt Lead Acid Battery Meter Led


In the circuit below, a quad voltage comparator (LM339) is used as a simple bar graph meter to indicate the charge condition of a 12 volt, lead acid battery. A 5 volt reference voltage is connected to each of the (+) inputs of the four comparators and the (-) inputs are connected to successive points along a voltage divider. The LEDs will illuminate when the voltage at the negative (-) input exceeds the reference voltage. Calibration can be done by adjusting the 2K potentiometer so that all four LEDs illuminate when the battery voltage is 12.7 volts, indicating full charge with no load on the battery. At 11.7 volts, the LEDs should be off indicating a dead battery. Each LED represents an approximate 25% change in charge condition or 300 millivolts, so that 3 LEDs indicate 75%, 2 LEDs indicate 50%, etc. The actual voltages will depend on temperature conditions and battery type, wet cell, gel cell etc. Additional information on battery maintenance can be found at:
Battery Maintenance Tutorial

Read More12 Volt Lead Acid Battery Meter Led