The goal of my project is to make a circuit with a photoresistor that can turn my bedroom light on and off.
I will be pointing a laser at a little photoresistor. If my bedroom light is on, I want it to turn off, and vice versa.
To make things simpler, lets just forget the photo resistor and say I'm using a push button switch (because I can setup a push-button switch with a photo resistor and a relay). I want to be able to push the button and have the light turn on/off (kind of like a TV power button). I have outlined the circuit I need in the picture below.
So like I said, push (and release) the switch and the light turns on. Push (and release) the switch again, and the light turns off. Any help would be GREATLY appreciated.
I will be pointing a laser at a little photoresistor. If my bedroom light is on, I want it to turn off, and vice versa.
To make things simpler, lets just forget the photo resistor and say I'm using a push button switch (because I can setup a push-button switch with a photo resistor and a relay). I want to be able to push the button and have the light turn on/off (kind of like a TV power button). I have outlined the circuit I need in the picture below.
So like I said, push (and release) the switch and the light turns on. Push (and release) the switch again, and the light turns off. Any help would be GREATLY appreciated.