I wish to have a sensor publish High resolution data when within a certain value set, and revert to a more manageable update rate the rest of the time.
One clear example is my water pump for the home.
It has an analog pressure Sensor fed through am ads1115 ADC, and a pulse flow meter fed through the pulse counter component.
When nobody’s consuming water, both the pressure and flow are stable, and therefore an update resolution of 1min or more is fine.
But when you open a faucet or a shower, I want 1s or less resolution on my data to from both pressure and flow.
Something like this:
When flow is > x then update interval = 1s
else update interval = 1 min.
Se applies to current sensing on motor controllers and several other cases.
(BTW, The sensor setup works great and is not a problem. Just the modification of the update interval of the sensors)
Thanks in advance!!