|
Humidistat
Arduino firmware for a humidistat (humidity controller)
|
Driver for thermistor thermometers. More...
#include <ThermistorReader.h>
Public Member Functions | |
| ThermistorReader (uint8_t pin) | |
| Constructor. | |
| double | readTemp () const |
| Get the temperature of the thermistor. | |
Private Member Functions | |
| double | getThermistorResistance () const |
| Calculate the resistance of the thermistor in the voltage divider. | |
Private Attributes | |
| const uint8_t | ref_pin = 5 |
| Reference (high) voltage pin number. | |
| const uint8_t | pin |
| NTC pin number. | |
| const double | R_series = 10000 |
| Resistance of R2 in voltage divider (Ohm) | |
| const double | B = 3950 |
| Thermistor's value of B in the thermistor equation (K) | |
| const double | r_inf = 0.01752 |
| Thermistor's value of R_inf in the thermistor equation (Ohm) | |
Driver for thermistor thermometers.
Definition at line 7 of file ThermistorReader.h.
|
explicit |
|
private |
Calculate the resistance of the thermistor in the voltage divider.
Definition at line 6 of file ThermistorReader.cpp.
| double ThermistorReader::readTemp | ( | ) | const |
Get the temperature of the thermistor.
Definition at line 12 of file ThermistorReader.cpp.
|
private |
Thermistor's value of B in the thermistor equation (K)
Definition at line 12 of file ThermistorReader.h.
|
private |
NTC pin number.
Definition at line 10 of file ThermistorReader.h.
|
private |
Thermistor's value of R_inf in the thermistor equation (Ohm)
Definition at line 13 of file ThermistorReader.h.
|
private |
Resistance of R2 in voltage divider (Ohm)
Definition at line 11 of file ThermistorReader.h.
|
private |
Reference (high) voltage pin number.
Definition at line 9 of file ThermistorReader.h.