Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
FlowController.h
Go to the documentation of this file.
1#ifndef HUMIDISTAT_FLOWCONTROLLER_H
2#define HUMIDISTAT_FLOWCONTROLLER_H
3
4#include "Controller.h"
5#include "PID.h"
7#include "../EEPROMConfig.h"
8
11class FlowController : public Controller {
12private:
13 const FlowSensor &fs;
14 const uint8_t solenoidPin;
15 const uint8_t pwmRes;
16
17public:
23 FlowController(const FlowSensor *fs, const ConfigStore *cs, uint8_t solenoidPin, uint8_t pwmRes);
24
25 // Overridden from Controller
26 void update();
28};
29
30
31#endif //HUMIDISTAT_FLOWCONTROLLER_H
Base class for a controller. Owns a PID instance, and holds a reference to a ConfigStore instance.
Definition Controller.h:11
const ConfigStore & cs
Definition Controller.h:14
Controls flow. Holds a reference to a FlowSensor instance.
const uint8_t pwmRes
const FlowSensor & fs
FlowController(const FlowSensor *fs, const ConfigStore *cs, uint8_t solenoidPin, uint8_t pwmRes)
Constructor.
const uint8_t solenoidPin
Read flow rate using a Omron D6F-P0010 MEMS flow sensor.
Definition FlowSensor.h:9
Config store containing variables, which can be stored in EEPROM.
Definition EEPROMConfig.h:7