TinyCircuits Forum

TinyCircuits Products => Wirelings => Topic started by: mnrr on April 21, 2021, 01:34:01 AM

Title: Ambient Light Wireling Lux values are wrong
Post by: mnrr on April 21, 2021, 01:34:01 AM
The current code has a bug. The option GAIN_DIVIDE_6 is set to true however gain is set to 16x and those don't go together as already the comments says right at the GAIN_DIVIDE_6 code line.
So that option needs to be set to false.
Then the Lux values are correct. Before the fix they were a magnitude too low.
Title: Re: Ambient Light Wireling Lux values are wrong
Post by: lennevia on April 21, 2021, 12:58:45 PM
Hello,

The program is fixed: https://github.com/TinyCircuits/TinyCircuits-Wireling-Light-Sensor-AST1012/blob/master/examples/Light_Sensor_Wireling_example/Light_Sensor_Wireling_example.ino

Thanks for catching that and letting us know!

Best,
RĂ©na