1#ifndef HUMIDISTAT_CONFIG_H
2#define HUMIDISTAT_CONFIG_H
43 const uint16_t
dt = 250;
45 const uint16_t
dt = 500;
72 const double a = 0.75;
77 const uint8_t PIN_DHT = 2;
78 const uint8_t PIN_BTN = A0;
79 const uint8_t PIN_S1 = 3;
80 const uint8_t PIN_S2 = 11;
84 const uint8_t PIN_LCD_RS = 8;
85 const uint8_t PIN_LCD_ENABLE = 9;
86 const uint8_t PIN_LCD_D0 = 4;
87 const uint8_t PIN_LCD_D1 = 5;
88 const uint8_t PIN_LCD_D2 = 6;
89 const uint8_t PIN_LCD_D3 = 7;
94 const uint8_t PIN_T1 = A1;
95 const uint8_t PIN_T2 = A2;
96 const uint8_t PIN_T3 = A3;
97 const uint8_t PIN_T4 = A4;
100#if defined(ARDUINO_TEENSYLC) || defined(ARDUINO_TEENSY40)
101 const uint8_t PIN_DHT = 17;
102 const uint8_t PIN_BTN = A0;
103 const uint8_t PIN_S1 = 3;
104 const uint8_t PIN_S2 = 4;
105 const uint8_t PIN_F1 = A1;
106 const uint8_t PIN_F2 = A2;
109 const uint8_t PIN_LCD_CS = 10;
110 const uint8_t PIN_LCD_MOSI = 11;
111 const uint8_t PIN_LCD_SCLK = 13;
115 const uint8_t PIN_T1 = A6;
116 const uint8_t PIN_T2 = A7;
117 const uint8_t PIN_T3 = A8;
118 const uint8_t PIN_T4 = A9;
Define either HUMIDISTAT_CONTROLLER_SINGLE or HUMIDISTAT_CONTROLLER_CASCADE. In the latter case,...
const uint16_t refreshInterval
Interval for updating the display (in millis)
const uint16_t blinkInterval
Interval for blinking display elements (in millis)
const double tolerance
Tolerance in difference between process variable and setpoint outside which the setpoint blinks (in p...
const uint8_t EEPROMAddress
EEPROM address for storing the block.
const uint16_t dt
Global interval for PID/logger (based on polling rate of sensor, in millis)
const uint16_t longPressDuration
Duration for counting a press as 'long' (in millis)
const uint16_t buttonDebounceInterval
For debouncing: interval the keypad state must be stable for (in micros)
const SPProfile profiles[]
Setpoint profile definitions.
const bool overrideEEPROM
Set to true to override the values stored in EEPROM and use the default PID parameters defined below.
const double HC_totalFlowrate
Total flowrate (for cascade controller) (L/min)
const uint16_t infoDuration
Duration for which to show the info screen (in millis)
const double S_lowValue
Minimum solenoid duty cycle (deadband)
const Point profile_tuningtest[]
const uint8_t configSaveCooldown
Cooldown on saving the config to EEPROM (in refresh cycles)
const uint32_t serialRate
Serial communication symbol rate (baud)
const double a
Smoothing factor of EMA filter for derivative.
const uint16_t splashDuration
Duration for which to show the splash screen (in millis)
const uint8_t adjustStep
Step size by which to in-/de-crement for coarse adjustment.
const uint16_t inputInterval
Repeat interval for keypress events (in millis)
Point: a vector of a time and setpoint value.
Setpoint profile: a label and a span over Points.