Page | 320
11.10
Utility Programs
11.10.1
Averaging Using Only the Best Values
This is a program I created to stabilize inputs from more than one source. Any "wild"
sensor inputs get cut out of the calculation.
11.10.1.1Operation
•
the last known working average is kept for comparison purposes during the next
iteration.
•
a constant $cAVERAGE.DEV.MAX variable is set to the allowable deviation limits for
a sensor to be considered "bad". I have set mine to 2.0 degrees for this purpose
•
each input is compared to the last known average and the absolute value compared
to the allowable deviation factor.
•
good sensor readings are tallied and used to calculate the new average
•
if all values are outside the maximum deviation then a completely new average is
created from all sensors.
11.10.1.2 Benefits
•
gives a more stable resultant
•
detects and isolates any sensors gone bad or "out-of-range of the crowd" readings.
•
gives a contributor count that can be used for other purposes. eg: Temperature
variance detection for circulation. fan operation from indoor temperature sensors
•
I have a temperature sensor mounted up under a PV array and the oven effect gets
disallowed every late morning with this program.
•
this can use as many sensors as available to further stabilize the resultant output.
Just add more lines of program code.
•
ISY is fast. No delays can be noticed and lots of repeats allows other processing to
occur during the calculations.
11.10.1.3 Negatives
•
based on slow changing sensor values like temperature readings from thermostats
and probes. Sudden value jumps may disrupt the process.
•
all three sensors outside the past average results in including all three sensors to
start. This may not be the best algorithm for some cases.
Summary of Contents for ISY-994i Series
Page 1: ...The ISY 994i Home Automation Cookbook ...
Page 35: ...Page 12 Figure 6 UDAjax Main Screen ...
Page 36: ...Page 13 Figure 7 UDAjax Devices Scenes Screen ...
Page 68: ...Page 45 Figure 44 NodeServer Configuration popup 5 2 5 Tools Menu Figure 45 Tools Menu ...
Page 102: ...Page 79 6 6 3 2Activate My OpenADR Portlet Figure 77 OpenADR My OpenADR Menu Option ...
Page 103: ...Page 80 6 6 3 3Configure OpenADR Settings Figure 78 OpenADR Settings Menu Option ...
Page 104: ...Page 81 Figure 79 OpenADR Settings Display ...
Page 108: ...Page 85 6 6 3 7Issue an Event Figure 84 OpenADR Issue and Event ...
Page 110: ...Page 87 Figure 86 OpenADR Event Viewer ...
Page 116: ...Page 93 Figure 92 ElkRP2 Account Details M1XEP Setup Button In the M1XEP Setup Window ...
Page 267: ...Page 244 Figure 189 State Variables ...
Page 268: ...Page 245 Figure 190 Programs and Folders ...
Page 292: ...Page 269 Figure 192 Irrigation Folders Figure 193 Irrigation Devices ...
Page 376: ...Page 353 Figure 209 Save Topology File ...
Page 433: ...Page 410 Figure 242 X 10 recognized as Living Room East Device ...
Page 540: ...Page 517 Figure 357 In Car Detection 12 Figure 358 In Car Detection 13 ...
Page 602: ...Page 579 Figure 382 SecureCRT SSH Raspberry PI Session ...
Page 685: ......