3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

light detector, no microprocessors, just simple electronics :)

light detector, no microprocessors, just simple electronics :)
I will show you two circuits, one turns an LED off when theres no light, and the other turns an LED on when theres no light.

for the first one you will need:
-R1(LDR) 10K
-R2 (1.2K) colour code: brown, red, red.
-R3(10 ohms) colour code: brown black black.
-T1 almost any low voltage NPN transistor will do.
-L1 LED i used a red one.
-potenciometer(optional)
-jump wires
-breadboard
-2 1.5 volt bateries and pack for them

for the second one you will need:
-R1 (LDR) 10K
-R4 (10K) colour code: brown, black, orange.
-R3(100 0hms) colour code: brown, black, black.
-T1 any low voltage NPN transistor
-L1 LED i used a red one.
-potenciometer(optional)
-jump wires
-breadboard
-2 1.5 volt bateries and pack for them

it cost me under 1€ to make this, everything was salvadged from old radios, etc...
exept the LDR, but you can easiy get one from those light switch thingies at the dollar shop, or from the internet very cheap... add some more stuff if you get it from the net though... you dont wanna pay 10 cents for the part and 8 dollars for shipping =|
 
Remove these adsRemove these ads by Signing Up
 

Step 1Turn LED off when theres no light

turn LED off when theres no light
the 1.2 K resistor goes in the middle pin of the transistor and to - on battery
dont forget the round part of the transistor is facing you!

DONT FORGET THE POLARITIES OF THE LED!!!
« Previous StepDownload PDFView All StepsNext Step »
58 comments
1-40 of 58next »
Apr 28, 2009. 9:44 AMMcBlaise says:
could I connect a motor on that two wires on the right? please answer...........
May 4, 2012. 7:54 PMwooohhhoooo9 says:
yeah it worked. i add a BC547 NPN and it worked using a regular motor!!
Nov 1, 2009. 5:48 PMjules15 says:
or you could use a smal 5volt reed relay to power a bigger(like over 5 volt) motor
Feb 20, 2011. 6:23 AMrobot1398 says:
i used a 2n2222 transistor and it works great.

cool project
Oct 10, 2010. 11:56 AMimakethings says:
i used a 2n 2904 transistor.. in this case the first circuit works for the purpose of second and vice a versa why so??
Oct 10, 2010. 11:55 AMimakethings says:
hey thank you very much you have helped me a lot...!!
Oct 8, 2010. 2:02 AMARJOON says:
for the transistor i used a 2n2222. works great
Sep 29, 2010. 2:51 AMsouichi says:
i did exactly the same thing but it doesn't work
Jan 25, 2010. 5:38 PMakhile1996 says:
 where's the LDR

Jan 25, 2010. 5:34 PMakhile1996 says:
can i add a 3 volt buzzer

Oct 29, 2009. 8:34 PMcybertron says:

In the first circuit...
 Turn LED off when there's no light!

 If i use 5VDC for the power supply do i need to change the resistor on the base of the transistor if so, at what value. Also the led resistor needs to change to compensate for the leds current. BUT i have that covered.

Does any other components need to change at 5VDC. This will be tested in a circuit to detect, very bright light.

Reply would be appreciated. 

Oct 30, 2009. 10:21 PMcybertron says:
OK. BUT. I  Already changed the LED resistor for the led at 5v.
 as stated, Got this covered..  Thanks for pointing that out.

So you're saying to use a potentiometer at the base of the transistor for base current to find the resistance i need for the light i need to detect.

How will that deterrmine the resistance of the light I'm detecting.

And what vulue would the pot need to be 1k, 5k. 20k. or Higher.

So the LDR dose not need to be replaced. i just need too lower the base current.
  
Reply Thanks.


 





Sep 29, 2009. 7:26 AMDRM_MX says:
Hello Armando96: I'm new in electronic. I follow your instructions but led always is turn on. Can you please tell me what is exactly values that you uses with transitor. You mention that uses any NPN transistor but led allways is turn on. Please let me know. Thank you.
Jul 30, 2009. 4:07 AMsharlston says:
i thought at first it sayed a lie dtector
Sep 4, 2009. 10:48 PMmhkabir says:
It did'nt
Sep 5, 2009. 12:44 AMsharlston says:
yes i know but i mistaked it for "lie detector" not "light detector"
Sep 5, 2009. 12:52 AMmhkabir says:
oh
Aug 24, 2009. 4:34 AMmhkabir says:
could the circuit run on 12v and light 30 - 40 LEDs in paralell???????
Aug 25, 2009. 3:44 AMmhkabir says:
Which MOSFET??Any ideas?
Sep 4, 2009. 10:46 PMmhkabir says:
Thanks. I'll try.
Sep 2, 2009. 5:37 PMjoasan18 says:
hey bro i did it but it did not work can you put pics for step by step like you did in the other one? please thank you god bless u
Sep 3, 2009. 5:14 PMjoasan18 says:
i got it solve. thank you for your help all i did was i changed the rsistence of resistor that goes in the middle pin. thank you
Jul 2, 2009. 11:05 AMcomodore says:
Nice Project! I really like it! I have 2 question! 1. Can you give me some examples of Low Voltage Transistors...a couple so I know witch one to buy... 2. Where does the potenciometer, variable resistor located? Where should I connect it? Thank you!
Jun 19, 2009. 2:36 AMimakethings says:
very good project for beginners
Jun 19, 2009. 1:13 AMimakethings says:
recreate this wont work with the second type of circuit
May 22, 2009. 9:38 PMReCreate says:
This Could Be made Much Simpler,The Photo Transistor In series to the Led and Resistor,Done. Though This Is Documented Well and All.
May 10, 2009. 2:14 PMbatista0 says:
nice Instructable... I want to adapt it to another project, it works with different voltages or i have to change resistances?? please answer
May 16, 2009. 5:20 PMbatista0 says:
I have two 9v batteries, so 18v...
Mar 29, 2009. 12:14 PMAndyGadget says:
For the sake of anyone trying to build this, I suggest you tidy up the component references a bit. They don't tie up with the circuits at the moment. Also, not all low voltage NPN switching transistors use the same pinouts. Whatever you're using, find the pinouts by googling, for example, "BC109C datasheet".
1-40 of 58next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
17
Followers
8
Author:amando96
I will try my best to provide cheap and easy intructables!