ESPeasy - device formula

If you want to calculate device value you have to fill "Formula" field, ie:

%value%*1

which of course returns value multiplied by 1 ;-).

In my case I had to calculate voltage measured by 1:2 divider and 1:3.3 divider, so my formula was:

%value%/1024*3.3*2

the value is divided by 1024 because ADC has 10 bit resolution.

Kommentare

Bitte melden Sie sich Logan oder registrieren Sie sich um kommentieren zu können.

Just my blog...

Mon Di Mi Do Fr Sa So
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
eZ Publish™ copyright © 1999-2025 eZ Systems AS