Search the Community
Showing results for tags 'light sensor'.
Found 2 results
Hi all, I'm looking to use Digilent's Ambient Light Sensor as an add-on for a project I'm doing. I can't use the example code given because I'm using a little bit more complex of a coding environment (Eclipse). I've managed to translate so to speak most of the example code to work for my environment, but one thing I'm struggling with is creating the correct initialization code in my environment. Does anyone have any experience coding the ALS outside of an Arduino-like environment or can tell me what I need to do to initialize it correctly? Thanks!
I was "playing" with the PmodALS Light Sensor in my home office. The program was set to output the light sensor reading once each half second and these are the readings I saw: "27, 27, 23, 28, 10, 30, 4, 32, 5, 31, 10" . Needless to say, I was disappointed with the fluctuations of the light sensor output readings. Then I remembered that I had recently changed my office lighting to efficient "dimmable" LED light replacements. I began to suspect that the sensor is fast enough to take a sample when the LED lights are off. So I turned off the office lights and illuminated the sensor with a flash light. The readings now were "44, 40, 43, 57, 57, 56, 53, 50, 49, 49, 46, 41, 32". I am inclined to attribute the fluctuations in the sensor readings to my unsteady hand holding the flashlight. This is not the highest quality experiment but it did give results consistent with my theory. Has anyone else experienced this kind of PmodALS behavior?