Hello,
on my ESP 8266 with ESPEasy I measure an analog signal 0-5V. This signal is connected on Ain0 at ADS1115 ADC.The output signal which is shown under device sways about from 4570 - 4670. Is it possible to calculate the mean in ESPEasy? How could I do it?
Thanks for your help!
How could I calculate the mean?
Moderators: grovkillen, Stuntteam, TD-er
Re: How could I calculate the mean?
You can sum a number of samples and count that nr, then divide it
Or you can take one of the latest test builds (new build will be very soon) which does add features like these to allmost all plugins.
Or you can take one of the latest test builds (new build will be very soon) which does add features like these to allmost all plugins.
Re: How could I calculate the mean?
Thanks, but how could I do it? There is the %value% in the las row, and how could I get the value for example after 1s, after 2s, 3s, ...? If I have these values I write: 1.%value% + 2.%value%, ....10%value%/10 =mean? Hope you understand it?
Re: How could I calculate the mean?
You can do something like this in the rules: https://espeasy.readthedocs.io/en/lates ... ng-filters
Re: How could I calculate the mean?
Thanks, it looks good. I will try to do it.
Who is online
Users browsing this forum: Ahrefs [Bot] and 50 guests