LM393 photoresitor

Hello @absint0o,

The LM393 is just a comparator that you may be using in an amplifier circuit with a light sensing device. We will need more specifics on your setup. What Arduino are you using, etc.

What you could do is get an external light meter and calibrate your output values over a range of brightnesses then do a linear interpolation.

For example, if you measure on your light meter in the office that you are at 500 lux, and 800 on your analog pin, then turn the light off and measure say 100 lux and 200 on your analog pin, assuming a linear relationship over that range, you could use this formula:

lux = 100 + (ADC - 200) * (500-100) / (800-200)

or

lux = 100 + (ADC - 200) * 0.667

eg. For an ADC reading of 500, lux would be 300.

Now if you don’t have access to a proper light meter, there are phone apps available to approximate.

Cheers,

Craig