2Light-Activated Night-Light

This project is a simple test of a photoresistor’s functionality: we’ll create a night light that gets brighter depending on the amount of light detected.

Image
Image

PARTS REQUIRED

Arduino board

Breadboard

Jumper wires

Photoresistor

LED

10k-ohm resistor

HOW IT WORKS

A photoresistor is a variable resistor that reacts to light; the less light that shines on it, the higher the resistance it provides. This resistance value varies the voltage that’s sent to the input pin of the Arduino, which in turn sends that voltage value to the ...

Get Arduino Project Handbook, Volume II now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.