I'm trying to build a bicycle lamp that is on/off depending on the light. I would like it to be turned off there is light, and turned on while it is dark outside. + some kind of delay so that the light isn't immedietly turned of then exposed to light, but maybe 5-10 sec later.
I'm trying to keep the circuit as simple as possible, and this is what i've come up with so far. Any tips or insight would be much appreciated.
The 90k resistor is meant to be a photoresistor, that increases the resistance when dark, and decreases while light, thus turning off/on the n-MOSFET

I'm trying to keep the circuit as simple as possible, and this is what i've come up with so far. Any tips or insight would be much appreciated.
The 90k resistor is meant to be a photoresistor, that increases the resistance when dark, and decreases while light, thus turning off/on the n-MOSFET
