2012-04-10 08:48 AM
Hi all,
I want to measure the brightness using a light dependent resistor ''LDR'' uisng the stm32l15x devices. I an thinking to use the ADC to measure the ldr output but the the curve of the resistance vs illumination flux shows a logarithmic function. Is there somebody who did it?Thnaks & Regards,MCU Lüfter
2012-04-10 11:11 AM
do you need fast (method1)
do you need precise Method2) even better, have you considered a light to frequency IC like this $2 device Erik2012-04-10 02:19 PM
I have done it with a voltage divider feeding a reference through a programmable resister to the light sensor to ground. The programmable resister accommodates the wide range of the light sensor.
But I like Erik's solution better. It requires fewer components. Depending on the light intensity range, you may need a 32 bit timer. Cheers, Hal2012-04-11 01:18 AM
Hi baird and Eric,
Thank you for your answer but I would like to use the LDR (Light Dependent Resistor). Do you think it is possible?2012-04-11 04:45 AM
Please provide a part number for the device you wish to use.
Cheers, Hal2012-04-11 05:37 AM
The applicability does much depend on your application.
In general, the voltage/current can be measured and converted just like every other effect influencing a resistance. Photoelectric resistors are tend to be relatively slow, at least those I know. This could be an advantage if you want to measure pulsed light, like LED lighting. Additionally, you need to consider the spectral sensitivity of your sensor and your application.2012-04-11 06:00 AM
Photoelectric resistors are tend to be relatively slow
which brings us back to my question above do you need fast (method1) do you need precise (method2) Erik
2012-04-11 06:30 AM
Hi erik,
I want to use the ldr VT9ON1 and the stm32l152 device. I want a low cost solution, with acceptable accuracy.Thanks & Regards,MCU Lüfter
2012-04-11 06:30 AM
never having used a photoresistor, I took a peek
I was surprised to find they are slow as snails Erik2012-04-11 06:43 AM
seeing how high the resistances were, I came to think: how do you connect the resistor. Just from Vdd to the pin (with a bleeder) will lead to HUGE inaccuracies.
Erik