![]() |
Meditech control panel software
1.0beta
application C++ firmware for control panel ChipKit PI board
|
The Temperature class manages the analog readings from an LM35 temperature sensor device to control the cooler fan speed.
The base calculation for the temperature after the sensor reading is managed by the CalcTemp method of the Temperature class; the 10-bit AD conversion generates 1024 possible values (between 0 and 1023) so the base Celsius float conversion formula is:
From this first conversion calculation are derived all the other units values: Fahrenheit, Kelvin and Rankine following the formulas below: