how to connect a photocell to a light

How to Connect a Photocell to a Light

By Andrew Hernandez
AD

Got a dark corner in your home or office that could use some light? A photocell, also known as a light-dependent resistor or LDR, is an excellent component to automate this process. Photocells respond to changes in light levels, making them perfect for turning lights on and off based on available light. Here's a simple guide on how to connect a photocell to a light, ensuring your space is well-lit, safe, and energy-efficient.

Before we proceed, ensure you have the following materials: a photocell, a light source (like an LED or incandescent bulb), wires, an electrical outlet, or a battery pack, and optionally, a breadboard and jumper wires for testing.

Understanding Photocells

Photocells are components that allow current to flow when exposed to light. In the dark, their resistance is high, and in light, it's low. By connecting a photocell to the base of a transistor or into the gate of an MOSFET, you can control the flow of electricity to your light source.

AD
Installing Inside Lights On A Photocell Made Easy
Installing Inside Lights On A Photocell Made Easy
Photocell Sensor Wiring
Photocell Sensor Wiring
A Guide to Photocells — 1000Bulbs Blog
A Guide to Photocells — 1000Bulbs Blog

There are two types of photocells: general purpose and solar-type. General-purpose photocells are more sensitive to light and are better suited for indoor use, while solar-type photocells are ideal for outdoor use due to their higher resistance and ability to handle more current.

Wiring Your Photocell to a Light

For this example, we'll use a general-purpose photocell and an LED light. Remember that you'll need a power source, which could be an electrical outlet, a battery pack, or a power supply.

Photocell Sensor Wiring Diagram.
Photocell Sensor Wiring Diagram.
Photocell sensor light wiring
Photocell sensor light wiring

Basic Wiring Configuration

Here's a simple way to connect your photocell to an LED light:

-
Photocell Terminal Wire Connection LED Terminal
+ + ( poder) + (anode)
- (ground) - (cathode)

In this configuration, the LED will light up when there's enough light to decrease the photocell's resistance, allowing current to flow.

AD

Using a Transistor for Higher Current

If you're using a higher-wattage bulb or want better control over the circuit, you can use an NPN transistor. Here's how:

  1. Connect the photocell's - terminal to the transistor's base through a 10kΩ resistor.
  2. Connect the photocell's + terminal to the power source's positive terminal.
  3. Connect the transistor's collector to the power source's positive terminal.
  4. Connect the transistor's emitter to the light's positive terminal.
  5. The light's negative terminal goes to the power source's ground.

The resistor in step 1 pulls the base's voltage to ground when the photocell's resistance is high (in the dark), turning the transistor off and cutting power to the light. When light hits the photocell, it lowers its resistance, allowing current to flow through the base and turn the transistor on, lighting your bulb.

With your photocell now connected to a light source, enjoy the convenience and energy efficiency of automated lighting. When the sun goes down, your light will turn on, providing safety and ambiance. When dawn breaks, the light will turn off, saving you electricity. It's a simple, yet effective setup, perfect for any home or office.

AD
AD