User Tools

Site Tools

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
moving_average_on_avrs [2016/03/21 02:01]
Traumflug [Moving Average on AVRs]
moving_average_on_avrs [2016/03/21 14:32]
Traumflug [Practical Code] Note binary size of the 8-value version.
Line 1: Line 1:
 ====== Moving Average on AVRs ====== ====== Moving Average on AVRs ======
  
-One problem with the controlling strategy on the [[ISTAtrol]] is thermistor readings jittering by about 1%, which is quite a lot if we want to keep the reading ( = target temperature) in a similarly tight range. As a result of this, the radiator valve is often opened or closed a bit, just because such a jittered value comes in, just to be moved back on the next reading. Not good, mechanics is subject to wear and we want to preserve our mechanics.+One problem with the controlling strategy on the [[ISTAtrol]] is thermistor readings jittering by about 1%, which is quite a lot if we want to keep the reading ( = target temperature) in a similarly tight range. As a result of this, the radiator valve is often opened or closed a bit because such a jittered value comes in, just to be moved back on the next reading. Not good, mechanics is subject to wear and we want to preserve our mechanics.
  
 There are solutions. Building better hardware is neither trivial nor free of cost, so the typical approach is to implement a **moving average algorithm**. There are solutions. Building better hardware is neither trivial nor free of cost, so the typical approach is to implement a **moving average algorithm**.
Line 62: Line 62:
 </​code>​ </​code>​
  
-Code size on the ISTAtrol/​ATtiny2313 firmware: ​(xxx) for the 8-value version, 26\_bytes Flash and 2\_bytes RAM for the 2-value version.+Code size on the ISTAtrol/​ATtiny2313 firmware: ​58\_bytes Flash and 2\_bytes RAM for the 8-value version, 26\_bytes Flash and 2\_bytes RAM for the 2-value version.
moving_average_on_avrs.txt ยท Last modified: 2018/05/27 16:10 (external edit)