Search the Community
Showing results for tags 'light sensor'.
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