Light/Dark Detector Using an Op-amp

by JRV31 in Circuits > Electronics

3508 Views, 13 Favorites, 0 Comments

Light/Dark Detector Using an Op-amp

LightDark.jpeg

This is a simple demonstration showing how to use an op-amp and a photocell to sense light or darkness.

You will need:

* In the picture the Arduino is only being used as a power source.

Build the Circuit

LightDark2.png

Build the circuit according to the diagram.

The red dot on the chip indicates pin one.

The resistor in series with the LED is not critical. It can be anywhere between 330 to 560 Ohms. I recommended a 470 Ohm because most resistor kits contain it. I substituted a 560 Ohm because I have lots of them.

There are many different op-amp chips available, and just about any of them will work. I chose the LM741 because it is what I have on hand. If you use a different chip be sure to check the pinouts. I have seen op-amps with four different pinouts. For instance Adafruit and SparkFun sell dual op-amp, eight pin chips that have different pinouts.

Testing

The trim pot adjusts the sensitivity.

The way the circuit is wired it is a light detector. In a reasonably dark room the LED will be off. Shining a light on the photocell will cause the LED to light.

If you reverse the wires to pins two and three it will be a darkness detector. In darkness the LED will be on, and shining a light on it will cause the LED to turn off.