USB Night Light (LM385 Light Sensor)

by bneo99 in Circuits > LEDs

4218 Views, 34 Favorites, 0 Comments

USB Night Light (LM385 Light Sensor)

P1070608.JPG
P1070614.JPG

A few months ago, I've ask for a free samples of some TLC555 and LM385 chips from Texas Instruments. A few weeks after that, a friend of mine asked me to build a nightlight for her. I never really made the effort to build one until now, so here is my variant of a simple LM358 light sensor running off USB power.

Materials and Tools

P1070586.JPG
P1070584.JPG
P1070587.JPG

Materials that I've used in this build:

x1 Lm358 Dual Op Amp IC (DIP8 package) + socket

x4 SMD LEDs salvaged from a unused LCD(I couldn't figure out how to use it so well time to disassemble it)

x1 LDR (Light Dependent Resistor)

x1 2N3904 NPN Transistor

x1 Variable Resistor (I used 5Kohm, salvaged)

x1 USB A Male connector

Resistors:

x1 10Kohm

x1 1Kohm

x2 220ohm (one should be enough, but i used two)

circuit board (I used pad per hole ones)

Heatshrink tubing (for protecting the LDR from shorting when bending it)

Tools that I used:

Wire strippers

Soldering Iron + solder

Hot glue gun + hot glue (for insulating the solder side to prevent shorts)

Needle nose pliers

Testing

LDR-controlled-Automatic-light-with-LM358.jpg
P1070582.JPG
P1070583.JPG

Before actually soldering the circuit together, I put the components together on a breadboard. After making sure that the circuit works, I start soldering them together.

Note: In this circuit only one Op Amp in the chip is used.

Heat Up the Iron and It's Time to Solder!

P1070588.JPG
P1070585.JPG
P1070589.JPG
P1070590.JPG
P1070591.JPG
P1070592.JPG
P1070593.JPG
P1070594.JPG
P1070597.JPG
P1070595.JPG
P1070596.JPG
P1070598.JPG
P1070599.JPG
P1070600.JPG

Start up the soldering iron and prepare the components, making sure they all all present. I start by desoldering the SMD LEDs from its flex circuit (no picture) and then I continue by soldering the USB connector to the board, then the socket, then the LED's, transistor, resistors, LDR(put the heatshrink tubing over one of it's leads), variable resistor. After that, I wire all of the components together.

After all is done, I checked for shorts and test it by plugging it to a usb power source and it comes alive.

Protection and Touchups.

P1070601.JPG
P1070602.JPG
P1070603.JPG
P1070604.JPG
P1070605.JPG
P1070606.JPG
P1070607.JPG
P1070609.JPG
P1070611.JPG

Just showing pictures of it running before I actually did the insulating process. The hot glue was used to insulate the board and diffuse the LED's.

Finished.

P1070621.JPG
P1070615.JPG
P1070616.JPG
P1070612.JPG
P1070618.JPG
P1070619.JPG
P1070620.JPG

Now everything is done so I played with it for a while and took more pictures. I took about one hour or so(Breadboarding, soldering, toilet breaks, etc.) for this build.

This is a good project for beginners in electronics and soldering (aside from 555 circuits) so I recommend people who want to learn about electronics and soldering to build this. Make your own design based on what you have on hand and have fun!