Use an Op Amp to Make a Self-Dimming Night Light

Technology
Use an Op Amp to Make a Self-Dimming Night Light

apIOJjT31srsDxXp

Makezine_COTM_OpAmp-BadgeOn Make: Projects, Jason Poel Smith uses a pair of LM741 op amps to build an self-dimming night light that turns itself off after a period of time so you don’t waste electricity.

The timer is made from a 741 op amp (operational amplifier) wired as a comparator. It compares the voltage across a capacitor with a reference voltage that is set by the 2.2k resistor and the 5k potentiometer.

When S2 is pressed the capacitor is charged to the supply voltage. It then gradually discharges through the 1M resistor. As long as the voltage across the capacitor is greater than the reference voltage, the output of the op amp is high (about 8.7V). When the voltage across the capacitor drops below the reference, the output of the op amp goes low (about 1.9V). This can take 0-45 minutes depending on how the potentiometer is set.

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged

My interests include writing, electronics, RPGs, scifi, hackers & hackerspaces, 3D printing, building sets & toys. @johnbaichtal nerdage.net

View more articles by John Baichtal
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK