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.
Leave a Reply