Power on a circuit when the lights are on

Power off a circuit when the lights are off can be a good way to decrease power consumption.

Power on a circuit when the lights are on

After creating my little circuit with an NE555 to pulse a LED, I want to power it on only when the lights are on.

To do so, I bought some cheap photoresistors:
They are called "GL5528".

A photoresistor (or LDR) is a resistor made of semi-conductor material, and the conductance changes with luminance variation.

I will use this photoresistor, a variable resistor (trimpot resistor) and a NPN 2N2222 to create the circuit.


The concept is based on the following schematics:

When it's dark, the LDR has a high resistance. This makes the current at the base of the transistor too low to turn the transistor on.

So, when RLDR is high, iLDR is low, and iB will be low

Therefore, no current will go from the collector to the emitter of the transistor. All the current will instead pass through the LDR and the potentiometer.

Moreover, darker the room, higher the resistance of the LDR and lower the current consumption will be: it's a win-win, the circuit will be able to run months in a dark room.

Full circuit

I used the circuit explained on my previous blog post about pulsing a LED with an NE555.

The trimpot is used to adjust the behavior of the circuit. With lights on, I adjusted the trimpot to find when the NE555 circuit shutdown.
After that, I turned the trimpot just a little bit to see the LED pulse again. Now, when I turn the lights off, the LED stop pulsing.


The LED and the LDR are connected through long purple wires to the circuit.

Power consumption measurements

  • With maximum light (smartphone flash LED in front of LDR): 28mA at peak
  • With all lights off: 0.1µA
  • With room lights are on: 12mA at peak.

It confirms the facts that this circuit will be able to run months in a dark room.


I included this circuit into a Tardis to get the top lamp to shine.

The LED is glued on the top of the Tardis, and the variable resistor is just behind the front window of the Tardis.