Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
ThermistorReader.h
Go to the documentation of this file.
1#ifndef HUMIDISTAT_THERMISTORREADER_H
2#define HUMIDISTAT_THERMISTORREADER_H
3
4#include <stdint.h>
5
8private:
9 const uint8_t ref_pin = 5;
10 const uint8_t pin;
11 const double R_series = 10000;
12 const double B = 3950;
13 const double r_inf = 0.01752;
14
17 double getThermistorResistance() const;
18public:
21 explicit ThermistorReader(uint8_t pin);
22
25 double readTemp() const;
26};
27
28
29#endif //HUMIDISTAT_THERMISTORREADER_H
Driver for thermistor thermometers.
const double r_inf
Thermistor's value of R_inf in the thermistor equation (Ohm)
double getThermistorResistance() const
Calculate the resistance of the thermistor in the voltage divider.
const double B
Thermistor's value of B in the thermistor equation (K)
double readTemp() const
Get the temperature of the thermistor.
const uint8_t pin
NTC pin number.
const double R_series
Resistance of R2 in voltage divider (Ohm)
const uint8_t ref_pin
Reference (high) voltage pin number.
ThermistorReader(uint8_t pin)
Constructor.