24-06-2015, 17:04
(24-06-2015, 16:08)Werk_AG Wrote: The maximum value that we can get at the ADC1 variable, is 1023, which should correspond to a UV Index greater than 11.
Transmission factor of the cover = 1 (uncovered)
Using your formula:
IndiceUV = ((((1023 * 1 / 1 ) - 135.0) * 11.0) / 1024.0) ;
IndiceUV = 9.539
Even when the sensor reaches its maximum output voltage, we never get a UV index greater than ~9.5
I think I know where is your mistake. Your are considering, that ADC1 value corresponds to output voltage, but is only the raw output of the ADC (from 0 to 1023)
Hi, Werk_AG,
thank you for your reply and yes, you are right, definitely ... I didn't realize, that ADC1 is only value from TX module, not real voltage from UV sensor.
When I tested my UV sensor, I have separate Arduino Mega with output to LCD and measured it on this polygon.Never mind, my thoughts about the correctness of principle that formula is, in my opinion, true. I have to only change some constants in it. I'll continue ...

Thank you for correction!

