Light sensor for Arduino

Okay, I know this is not rocket science. All you do is hook up a photocell to a resister and hook that up to Arduino. Viola! you have a light sensor. I wanted to create a modular light sensor I could attach / detach from projects so I took a container of Airborne and put my sensing circuit in there. Here are a few pics:

I do have a problem with the readings this gives me though. I went the analog route and tried to get readings off it from the analog pin. It gives me random readings. So, I am thinking that maybe attaching a capacitor and using a PWM pin is probably the answer. Do any of you have any experience with this? Please contact me if you do.

Light sensor

Holes drilled in so the light can pass through

The circuit bonded with flexible plastic

The light sensor put together


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *