Here’s a recent version that i’ve come up with it uses a mosfet in order to turn the led on before it was only using a voltage divider between the photoresistor and the potentiometer in order to supply a voltage using just the potentiometer and photoresistor it allowed less current to flow through the Led resulting in a really dim light the mosfet only requires a signal around 1.2 volts in order for it to completely turn on once the mosfet’s fully powered then it allows current to flow through this current limiting resistor of 10 ohms through the led since the battery is 3 volts And the yellow leds are only rated for around two volts this resistor is necessary for the led to not burn out looking at the leds you can see they’re extremely bright and putting it onto the top covering it up you can visibly see it despite my lights being turned on And there it is turned off and on here’s the revised version a little bit neater and it’s able to switch from daylight sensor to a darkness sensor you can see when the light hits the photoresistor it’ll turn on and when it’s dark turns off alright so here’s the circuit on the Breadboard here’s a 100 ohm resistor connected to the led the ground of the led is connected to the middle pin of the mosfet and the ground of the mosfet is connected down to ground here through this green jumper wire this white jumper wire goes to the middle between the potentiometer and The photoresistor i’m going to put this orange wire on the open end of the photoresistor i’m going to put the blue jumper wire on the open end of the potentiometer where the blue wire is is actually connected to the other end of the potentiometer So now if i put the orange on the ground and the blue on the power it won’t turn on until it’s in darkness now if i flip these so that the orange is on power and the blue is on ground if darkness is applied the light goes off Now the circuit does have a problem for instance if these are attached because mosfet stays powered on even though this white jumper cable isn’t supplying voltage to the mosfet the mosfet stays powered on since it depends on the orange or blue wire to be connected to ground In order to turn it off now if i connect either lead to ground you see it’ll turn off doing the blue wire now you see it turns off so here’s a circuit it has three volts positive here going up to a pad from the pad is a 10 ohm resistor here connected to The led and from the led it’s connected to the drain of the mosfet the way the mosfet works is that when is supplied around 1.2 volts here in the gate it will allow current to flow through the drain and out the source here to ground turning on the led Now along from the ground is another pad here of copper foil tape and in order to activate the gate there’s a potentiometer along with the photoresistor that creates a voltage divider here the voltage divider here works such that the higher the resistance the higher the voltage drop will be meaning a lower voltage Here in the middle if the positive is connected to the potentiometer this means that when it’s bright the photoresistor will have a really low resistance the potentiometer will have a really high resistance causing a high voltage drop resulting in a low voltage this means that if it’s bright the Mosfet will not allow current to flow through the led will be turned off until it is dark on the other hand if the potentiometer is connected to ground and the photoresistor is connected to positive this will detect the brightness and so if it’s bright the led will turn on right here i Powered the mosfet so that the gate is not connected to ground and it’s not until it gets connected to ground that it will turn off the mosfet in order to avoid the mosfet from turning on and staying on i added this little pad here when flipped and connected it will connect the gate Through the photoresistor down to ground allowing the gate to be connected to ground turning off the mosfet just like in the circuit here i’ve made the pads so peeling this back you can see i tore off a bit here so it wouldn’t make a contact and interfere with this piece here it Goes up and over and down here and on the other side it’s just two pads here with the gap in the middle using copper tape is really finicky so i recommend just using a pcb if possible if not possible then you can give the copper tape a try That’s pretty much it if you have any questions please let me know and thank you for watching Video Information
This video, titled ‘Minecraft Automated Redstone Lamp’, was uploaded by Hecbac on 2021-01-03 22:15:00. It has garnered 975 views and 61 likes. The duration of the video is 00:06:15 or 375 seconds.
A real life rendition of a redstone lamp that is automated through the use of a photoresistor, voltage divider, and mosfet.