Thanks! I got it to work just fine. Now I would like to turn a LED on when light is present. Basically a reverse of the above project.
Here you go..... this works opposite of my first circuit....
My .02
Attachments
-
3.2 KB Views: 116
Thanks! I got it to work just fine. Now I would like to turn a LED on when light is present. Basically a reverse of the above project.
Can I substitute a 2N4401?
I disagree.BMorse
Actually the pencil schematic will not work, I built it on a breadboard and it does nothing for what the op wants (It does not even work!!)
OP from post number 1
I am trying to do a very simple LED circuit for a nightlight, using a Photocell to turn it on at night and off in the daylight.
Adding the 10k potentiometer and 2.2k works fine. Is there a way to have the LED go to about 50% brightness when R3 is completely covered (dark)?
I disagree.
I built the pencil circuit and you can see that it works. Visit http://www.tech-service.net/joe/dark_detection.asp to see the pictures or view the video. Also note the current drawn from the 9V source.
My photocell measured about 13k and less when exposed to the light and about to 500k in the dark.
It worked with the only photocell I had handy. The three the OP had listed, all would have worked in the pencil schematic. I don't know what your photocells measure in light or in dark.So maybe I misquoted myself , The circuit WILL WORK if you have a specific photocell to use, I tried the circuit with 4 photocells and it will only work with one out of four, my circuit works with all 4.....
Look into using a 555 timer pulse width using a photocell to accomplish your task.Here is the request, FULL ambient light = FULL brightness LED. Night or dark room = half bright LED.
You might want to check the power budget of your circuit with the LED energized and not energized.
On your post labeled #17 of this thread, why did you choose a 10k ohm resistor for R1? And on post 29, you changed the same functioning resistor to 1k. Neither of those resistors in that function allows 15 mA through the LED.
What battery???that is a old circuit childrens play all the time with !
however the battery will die in 10 days ...they get bored and dont use it any more .
Here's a quote from the OP:What battery???
If your children are playing with a Mains powered Night light , you might want to do something about that before they get electrocuted!
I got the same parts he lists:
9 Volt Battery
Photo-Cell
NPN Transistor (2N 4401)
Super Bright White LED
100K ohms Resistor
470 ohms Resistor
9 Volt battery Snap
Here's a quote from the OP:
I got the same parts he lists:
9 Volt Battery
Photo-Cell
NPN Transistor (2N 4401)
Super Bright White LED
100K ohms Resistor
470 ohms Resistor
9 Volt battery Snap
Except I want to run this of of a Wall Wart
Ya got me!Here is another quote from the OP: