Ambient Light Sensor Using Photo Resistor and LED Lights!

Uses a photo resistor to determine whether a room is bright, average or dark. It shows this using 3 LEDs and/or the serial monitor.

Jan 1, 2018

105513 views

34 respects

Components and supplies

2

Resistor 100 ohm

1

Breadboard (generic)

1

Photo resistor

1

Jumper wires (generic)

2

LED (generic)

1

Resistor 1k ohm

1

Arduino UNO

Apps and platforms

1

Arduino Web Editor

1

Arduino IDE

Project description

Code

LED_PR_Light_Read

arduino

Downloadable files

Component Setup

Component Setup

Component Setup

Component Setup

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

I'm gonna use a similar setup for one of my projects and I wanna ask if the 1k resistor is needed (I know it is) and if can replace it with builtin pull-up resistor in the Arduino. Am I wrong to think that if I use an analog pin with pull-up activated I could connect a photoresistor directly to the Arduino pin?

Anonymous user

2 years ago

What will be a good use in the real world?

Anonymous user

2 years ago

I'll save it for later.

Anonymous user

2 years ago

Yep, I'm bookmarking this page.

Anonymous user

2 years ago

Hi, I Have done this project with opamp comparator by I would like to report to all what are the disadvantaged of use photo resistor. Photo resistor has a temperature deviation during all seasons. This need a continuos adjust of threshold. Try to add a temperature sensor that compensate the effect of photo resistor temperature drift characteristic.

Anonymous user

2 years ago

Maybe i should try this project...

Anonymous user

2 years ago

Really simple to follow, I was wondering if you have connected an LCD screen into this setup?

DCamino

2 years ago

A lot of people have recommended that and it should work. However, I don't have a compatible LCD screen. You should try hooking one up!

Anonymous user

2 years ago

Short correction of the image, PIN 12 and 13 are connecting to the anodes. https://abload.de/img/lightsensorpusps.jpg

Anonymous user

3 years ago

Hi, I Have done this project with opamp comparator by I would like to report to all what are the disadvantaged of use photo resistor. Photo resistor has a temperature deviation during all seasons. This need a continuos adjust of threshold. Try to add a temperature sensor that compensate the effect of photo resistor temperature drift characteristic.

Anonymous user

5 years ago

What will be a good use in the real world?

Anonymous user

2 years ago

Yep, I'm bookmarking this page.

Anonymous user

2 years ago

I'll save it for later.

Anonymous user

5 years ago

Maybe i should try this project...

Anonymous user

6 years ago

I'm gonna use a similar setup for one of my projects and I wanna ask if the 1k resistor is needed (I know it is) and if can replace it with builtin pull-up resistor in the Arduino. Am I wrong to think that if I use an analog pin with pull-up activated I could connect a photoresistor directly to the Arduino pin?

loplo

7 years ago

Short correction of the image, PIN 12 and 13 are connecting to the anodes. https://abload.de/img/lightsensorpusps.jpg

DCamino

2 years ago

Thanks for this. Looks a lot better than mine!

N_Murphy1

7 years ago

Really simple to follow, I was wondering if you have connected an LCD screen into this setup?

DCamino

2 years ago

A lot of people have recommended that and it should work. However, I don't have a compatible LCD screen. You should try hooking one up!