fading red eyes

8,988

Circuit Image

This circuit is designed to gradually illuminate and fade a pair of red LEDs (light-emitting diodes). The fading LEDs can be used as 'eyes' in a small pumpkin or skull for Halloween decorations, or as part of a Christmas tree ornament. They may also serve as an attractive power indicator for devices such as computers, microwave ovens, stereo systems, TVs, and other appliances. In operation, a linear 3-volt (peak to peak) ramping waveform is generated at pin 1 of the LM1458 integrated circuit (IC) and buffered with an emitter follower transistor stage. The 22µF capacitor and 47kΩ resistor connected to pin 2 set the frequency to approximately 0.5 Hz. The rate can be adjusted by replacing the 47kΩ resistor with a 100kΩ potentiometer at pin 2. The circuit consists of two operational amplifiers (op-amps); one produces a slow rising and falling voltage from about 3 volts to 6 volts, while the other functions as a voltage comparator, supplying an alternating voltage that switches between 2 and 7 volts to charge and discharge the capacitor at a constant current. Each op-amp has one of its inputs (pins 3 and 6) connected to a fixed voltage established by two 47kΩ resistors, creating a reference voltage of half the supply voltage, or 4.5 volts. The left op-amp is configured as an inverting amplifier with a capacitor connected between its output (pin 1) and inverting input (pin 2). The right op-amp operates as a voltage comparator, producing a low output on pin 7 when the input is below the reference voltage and a high output when it exceeds the reference. A 100kΩ resistor connects the comparator output to the input, providing positive feedback that alters the input voltage around the switching point when the threshold is reached. When the output at pin 7 changes, the current direction through the capacitor reverses, causing the inverting op-amp to respond in the opposite direction, resulting in a linear ramping or triangle waveform at pin 1 of the inverting op-amp. This waveform continuously moves slowly up or down, keeping the voltage on the non-inverting input constant at 4.5 volts. Adjustments to the LED extinguishing point can be made by changing the resistor values connected to pins 3 and 6 to ground; a 56kΩ resistor may yield better performance with specific LEDs. The recommended LED has a narrow viewing angle of 30 degrees and appears brightest when viewed directly, exhibiting a slightly orange hue. For a wider viewing angle with reduced intensity, an alternative part number 670-1257 can be used, which features a red diffused lens and a 60-degree viewing angle.

The schematic diagram illustrates the layout of the circuit on a solderless breadboard, organized in rows labeled A-J and columns numbered 1 to 65. Each group of five holes in the same column are interconnected, meaning holes A1, B1, C1, D1, and E1 share the same connection, as do F1, G1, H1, I1, and J1. The outer rows along the board's length are typically used for power supply connections; however, there is a break in the midsection of these rows. A short jumper wire should be installed to connect the outer rows entirely. Familiarization with the board layout can be achieved using a digital multimeter (DMM) in the low ohms range to probe various holes. The LM1458 IC should be oriented such that the notch or punch mark on one edge is positioned near column 30, with the opposite edge near column 33. The LM1458 is installed on the breadboard with its pins straddling the center section, placing pin 1 in hole E30 and pin 8 in hole F30. The pins are numbered counterclockwise, positioning pin 4 in F33 and pin 5 in E33. Possible connections for the LM1458, a 9-volt battery, and additional components are depicted in the lower drawing of the solderless breadboard, although it may not include all parts. The schematic diagram should be referenced to ensure proper installation of the components, connecting them to the appropriate pins of the LM1458. While some components may fit conveniently, others may require short jumper wires (preferably #22 gauge) to connect parts across the IC. For instance, the 22µF capacitor connects between pins 1 and 2 of the IC, which occupy holes (F30, F31), but it could also be placed in holes (H30, H31) or (J30, J31) as needed.This circuit is used to slowly illuminate and fade a pair of red LEDs (light emitting diodes). The fading LEDs could be installed as `eyes` in a small pumpkin or skull as a Halloween attraction, or mounted in a Christmas tree ornament. Or, they might be used as a fancy power indicator for your computer, microwave oven, stereo system, TV, or other

appliance. In operation, a linear 3 volt (peak to peak) ramping waveform is generated at pin 1 of the LM1458 IC and buffered with an emitter follower transistor stage. The 22uF capacitor and 47K resistor connected to pin 2 establish the frequency which is about 0. 5 Hz. You can make the rate adjustable by using a 100K potentiometer in place of the 47K resistor at pin 2.

The circuit consists of two operational amplifiers (opamps), one producing a slow rising and falling voltage from about 3 volts to 6 volts, and the other (on the right) is used as a voltage comparator, the output of which supplies a alternating voltage switching between 2 and 7 volts to charge and discharge the capacitor with a constant current. Each of the op-amps has one of the inputs (pins 3 and 6) tied to a fixed voltage established by two 47K resistors so that the reference is half the supply voltage or 4.

5 volts. The left opamp is connected as an inverting amplifier with a capacitor placed between the output (pin 1) and the inverting input (pin 2). The right opamp is connected as a voltage comparator so that the output on pin 7 will be low when the input is below the reference and high when the input is higher than the reference.

A 100K resistor is connected between the comparator output and input to provide positive feedback and pulls the input above or below the switching point when the threshold is reached. When the comparator output changes at pin 7, the direction of the current changes through the capacitor which in turn causes the inverting opamp to move in the opposite direction.

This yields a linear ramping waveform or triangle waveform at pin 1 of the inverting opamp. It is always moving slowly up or down, so that the voltage on the non-inverting input stays constant at 4. 5 volts. Adjustments to the point where the LEDs extinguish can be made by altering the resistor value at pin 3 and 6 to ground.

I found a 56K in place of the 47k shown worked a little better with the particular LEDs used. You can experiment with this value to get the desired effect. Note: The LED listed has a narrow viewing angle of 30 degrees and appears brightest when looking directly at it. It`s not a pure red color, and a little on the orange side, but should be brighter compared to other selections.

For a wider viewing angle at reduced intensity, try part number 670-1257 which is viewable at 60 degrees and has a red diffused lens. Refer to the drawing below the schematic diagram and note the solderless breadboard is arranged in rows labeled A-J, and columns numbered 1 to 65.

Each group of 5 holes in the same column are the same connection, so that holes A1, B1, C1, D1 and E1 are all connected together. Likewise holes F1, G1, H1, I1 and J1 are all the same connection. The outer rows along the length of the board are also connected together and are normally used for power supply connections.

However, there is a break in the mid section of the outer rows, so a short jumper wire connecting the mid section of the outer rows should be installed to connect the entire outer row together. If you have a DMM, use the low ohms range and probe the various holes to get familiar with the board layout.

Orientate the LM1458 so the nook or punch mark on one edge is near column 30 and the opposite edge is near column 33. Install the LM1458 on the breadboard so the pins straddle the center section of the board and pin 1 of the IC is occupying hole E30 and pin 8 is in hole F30.

The pins are numbered counter clockwise, so pin 4 will be occupying F33 and pin 5 will be in E33. Possible connections for the LM1458, 9 volt battery, and a couple other parts is illustrated in the lower drawing of the solderless breadboard, but it is not complete with all parts. Refer to the schematic diagram, and install the various other components so they connect to the appropriate pins of the LM1458.

Use whatever connection holes are convenient. For example, the 22uF capacitor connects between pins 1 and 2 of the IC, which occupy holes (F30, F31) so it could be placed in the holes (H30, H31) or (J30, J31) or (I30, I31). But not all parts will conveniently fit, so you may have to use a short jumper wire (#22 preferred) to connect parts from one side of the chip to the other.

🔗 External reference