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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.