Converting values of analog inputs to voltage
-
Hi all,
a few days ago I connected an airquality sensor with 0-10V output to the analog input of the Unipi board (V1.1).
In FHEM I'm getting values like "408421.875".I have no idea how to convert these values to a standard voltage value like 4,5 V.
Can anybody help me?Regards,
Peter
-
Hi all,
a few days ago I connected an airquality sensor with 0-10V output to the analog input of the Unipi board (V1.1).
In FHEM I'm getting values like "408421.875".I have no idea how to convert these values to a standard voltage value like 4,5 V.
Can anybody help me?Regards,
Peter
-
hey,
the standart measurement of Voltage on arduino are at max 5V measurement range, between 0 - 1024.
That's like the Values u can see, but only higher..
i dont know the max Value of measurement from unipi, but if you put 10V at input u can see (maybe anywhere over 408421.875 i think, i name 5000000 as max at 10V here).
Set this in relation 0v-10V to Value 0 - 5000000 so you can count your Voltage.