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.
-jump wires
-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.
-jump wires
-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 =|

Step 1: 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!

Please tell me.can i make a touch sensor circuit without using any microprocessor ?if yes how?
Thank you for this, sometimes you just need your mind jogged.
it works very nice.good images and explanations.thanks!!!
could I connect a motor on that two wires on the right? please answer...........
yes you could, although it has to be a small motor, very small, like a pager motor, i actually did that lol heres a pic of the bot:<br/><a rel="nofollow" href="http://s498.photobucket.com/albums/rr346/AmandoAbreu/?action=view&amp;current=100_2562.jpg">http://s498.photobucket.com/albums/rr346/AmandoAbreu/?action=view&amp;current=100_2562.jpg</a><br/><br/><a rel="nofollow" href="http://s498.photobucket.com/albums/rr346/AmandoAbreu/?action=view&amp;current=100_2574.jpg">http://s498.photobucket.com/albums/rr346/AmandoAbreu/?action=view&amp;current=100_2574.jpg</a><br/><br/>i only have one motor yet though xD<br/><br/>but yea if its a small motor, its fine, if you want to use bigger rmotor, you'll have to put another transistor<br/>
yeah it worked. i add a BC547 NPN and it worked using a regular motor!!
or you could use a smal 5volt reed relay to power a bigger(like over 5 volt) motor<br />
i used a 2n2222 transistor and it works great.<br><br>cool project
i used a 2n 2904 transistor.. in this case the first circuit works for the purpose of second and vice a versa why so??
hey thank you very much you have helped me a lot...!!
for the transistor i used a 2n2222. works great
i did exactly the same thing but it doesn't work
&nbsp;where's the LDR<br /> <br />
can i add a 3 volt buzzer<br /> <br />
<p>In the first circuit...<br /> &nbsp;Turn LED off&nbsp;when&nbsp;there's no light!<br /> <br /> &nbsp;If i&nbsp;use 5VDC for the&nbsp;power supply&nbsp;do i need to&nbsp;change the resistor&nbsp;on the&nbsp;base of the&nbsp;<strong>transistor</strong> if so, at&nbsp;what value. Also the led resistor needs to change to compensate for the leds&nbsp;current. BUT i have that covered.<br /> <br /> Does any other components need to change at&nbsp;5VDC. This will be tested in a circuit to detect, very bright light.<br /> <br /> Reply would be appreciated.&nbsp;</p>
if you wanna detect very bright light, then i think you have to get a smaller value resistor at the base of the transistor, also you need a 220 ohm resistor to not burn the led, instead of the 10 ohm, i have there.<br /> <br /> try using a potenciometer, to find the resistance you need for the light you want to detect.
OK. BUT.&nbsp;I&nbsp; Already changed the LED resistor for&nbsp;the led&nbsp;at 5v.<br /> &nbsp;as stated, Got this covered..&nbsp; Thanks&nbsp;for pointing that out.<br /> <br /> So you're saying to use a potentiometer at the base of the transistor for&nbsp;base current to find the resistance i need for the light i need to detect.<br /> <br /> How will that deterrmine the resistance of the light I'm detecting.<br /> <br /> And what vulue would the pot need to be 1k, 5k. 20k. or Higher.<br /> <br /> So the&nbsp;LDR&nbsp;dose not need to be replaced.&nbsp;i just need too lower the base current.<br /> &nbsp;&nbsp;<br /> Reply Thanks.<br /> <br /> <br /> &nbsp;<br /> <br /> <br /> <br /> <br /> <br />
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.
ok, i know for sure that a BC546 works, try using this one, if it still doesnt work, try changing the light drastically, say from a dark room, to puting lamp very close to the ldr.
i thought at first it sayed a lie dtector
It did'nt
yes i know but i mistaked it for "lie detector" not "light detector"
could the circuit run on 12v and light 30 - 40 LEDs in paralell???????
umm i thinkt he transistor would burn, i'm not used to working on higher voltages just the regulated 5v for most IC's... i think you can try, but i'm pretty sure the transistor would burn, maybe a MOSFET?
Which MOSFET??Any ideas?
any that can withstand 12v i guess, IRF520?
Thanks. I'll try.
i know how you could do that, you'll need two power sources though, the 3v for this to work, and then the 12 volts, the plus connected to source on the mosftet, the leds connected to drain, and gate connected to where the LED is. has to work. i did the same but with a NE555 for a speed controller
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
all you have to do is: the resistor and the ldr are connected to the middle pin of the transistor right? the LDR goes to +3v(positive) and the resistor goes to 0v(negative), just switch order, so the LDR goes to 0v(negative) and the ressitor goes to +3v(positive) should work if the rest is right
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
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!
about the transistors, i am not sure wich i used here, it had the letters erased, i know a C945 will work, coz i have a few The pot goes from the base of the transistor to either positive, or negative, depending on the curcuit. if the LDR is on positive, the pot will be on the negative, and vice versa. just use the middle pin of the pot, and one of the side pins. the pot will control when the led will go on/off, you can also try diferent resistors. sorry for the late reply, i didnt get an email for this reply :-s
very good project for beginners
recreate this wont work with the second type of circuit
This Could Be made Much Simpler,The Photo Transistor In series to the Led and Resistor,Done. Though This Is Documented Well and All.
nice Instructable... I want to adapt it to another project, it works with different voltages or i have to change resistances?? please answer
you'll have to change the LED resistor, or it will burn... as for the other resistors, tiz fine... but what voltage? coz i think you'll have to do something with the transistor...
I have two 9v batteries, so 18v...
umm that'll burn the transistor me thinks :S i dont know how to make it work... i might find out though.
wait, the wires on the right? those go to the battery...
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".
Neat little tip: Cut the top off any high-gain metal can transistor and you've got a pretty good photodiode (BC109C is perfect for this).
what are those? googled them but nothing related came to the search...
A photodiode is like a light dependent resistor (LDR) only more responsive.<br/> <a rel="nofollow" href="http://www.uoguelph.ca/~antoon/circ/actrelay.htm">HERE</a> are a couple of simple circuits which are very similar to the one in this Instructable. R1 is an LDR and could be replaced by a photo-diode (collector at the top, emitter at the bottom). In the first circuit, light shining on the LDR drops its resistance and causes a current to flow into the base of the transistor. The base current causes a larger current to flow from the collector to the emitter, through the relay, so the relay is turned on. This is a transistor operating in its simplest switching mode. <br/><br/><a rel="nofollow" href="http://www.satcure-focus.com/tutor/page4.htm">HERE</a> is a super-simple description of how a transistor works.<br/><br/>(For the more advanced, these circuits would work OK for large changes in light, but would behave strangely mid-range as the transistor would be in its linear range and behaving as an amplifier.) <br/>
ohh i meant what a high-gain metal can transistor was xD but those circuits are kinda cool though!
Without getting too technical, a high-gain transistor is one with a gain (amplification) of 250 or more, i.e. a 1mA change in the base current will give you a 250 mA change of collector current. A metal can transistor (TO18 package) looks like <a rel="nofollow" href="http://www.effectsconnection.com/oscommerce/images/bc109C2.jpg">THIS</a>. You're right though, they do seem pretty rare nowadays, and everything seems to be plastic encapsulated. When I first started in electronics they were all over the place, and I still have a few in my component box.<br/>
ohh i have seen some before, but yea... everything is plastic nowadays... <br/>wow $1.87 for one of those :S<br/><a rel="nofollow" href="http://www.onlinecomponents.com/buy/SEMICONDUCTORS/BC109C/">http://www.onlinecomponents.com/buy/SEMICONDUCTORS/BC109C/</a><br/><br/>so that has a photo diode inside of it? cool lol, i oinly have the IR transistors, like the TV's have, made some proximity detectors with 'em :D<br/>

About This Instructable




Bio: I will try my best to provide cheap and easy intructables!
More by amando96:How to make custom and strong tank tracks for very cheap. Using the sparkfun 12 Button keypad, with the arduino Mini drill press for free. 
Add instructable to: