rims-arduino-library  v3.1.1
Recirculation infusion mash system library for Arduino
Classes | Macros
RimsTuner.h File Reference

RimsTuner class declaration and related macro. More...

#include "Arduino.h"
#include "Rims.h"
#include "utility/UIRims.h"

Go to the source code of this file.

Classes

class  RimsTuner
 Toolkit to automatically tune PID without a process model. More...
 

Macros

#define STEP0VALUE   30.0
 Steady-state initial CV [%].
 
#define MEANTEMPTIME   1680000
 Signal averaging starting time for relay treshold calculation (must be smaller than STEADYTIMELENGTH) [mSec].
 
#define STEADYTIMELENGTH   1800000
 Stabilization duration at STEP0VALUE before relay test (long enough for temperature stabilization) [mSec].
 
#define RELAYSAMPLEFACTOR   15
 Tuner under-sampling factor relative to SAMPLETIME, i.e., with default values, tunerSamplingTime = 15 sec [integer].
 
#define RELAYSTEP   25.0
 Relay amplitude CV value (over and under STEP0VALUE) [%].
 
#define RELAYHYST   1.0
 Relay switching hysteresis value [deg C].
 
#define MAXSAMPLEPERPERIOD   200
 Max signal samples per relay period (limited by SRAM), i.e., with default values, maxMeasurableRelayPeriod = 200*15 sec = 3000 sec [integer].
 
#define MODELPARAMTOL   0.05
 Relative tolerance on signal amplitude relay period for ending the tuning.
 
#define MAXRELAYPERIOD   8
 Maximal relay period before forcing auto-tuner ending [integer].
 

Detailed Description

RimsTuner class declaration and related macro.