This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \brief Citește temperatura reală a termistorului | |
* | |
* Funcția returnează temperatura în grade Celsius pe tot domeniul de | |
* referință a termistorului [-40 - 125] folosit de plăcuța XMEGA-A3BU. | |
* Eroare de calculare a valorii se va considera ca fiind aproximativ 1°C. | |
* | |
* \retval temperatura exprimată în grade Celsius [°C] | |
*/ | |
int8_t ntc_get_full_temperature(uint16_t adcVal) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \brief Read the actual temperature from the NTC | |
* | |
* This function returns the temperature in Celsius by piecewise linearisation | |
* of the complex transfer function between NTC resistance and ADC codes. The | |
* accuracy of the temperature is somewhat limited. | |
* | |
* \note The result is inaccurate for temperatures outside 5-45 degrees. | |
* | |
* \retval the temperature in Celsius |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*Autor : Victor ADĂSCĂLIȚEI [2013], Scris pentru Mathematica v8; | |
Descriere : | |
Secvența de cod a fost folosită pentru construirea de | |
modele matematice liniare [polinoame de gradul 1] în | |
vederea extinderii capacității plăcuței Atmel XMEGA-A3BU | |
Xplained de a citi temperatura ambientală. | |
Principiul poate fi folosit pentru calcularea polinoamelor | |
de aproximare si pentru alte familii de termistori pentru | |
care exista informatii extinse precum foi de catalog din | |
care să poată fi calculat parametrii modelului |
NewerOlder