Arduino Full Stack
Search
⌃K
Preface
Part 1 - Introduction
Chapter 1. Getting Started with Arduino
Chapter 2. Programming Grammar
Part 2 - Sensors
Chapter 3. LED Sensors
Chapter 4. Infrared Sensors
Chapter 5. Audio Sensors
Chapter 6. Magnetic Sensors
Chapter 7. Touch Sensors
Chapter 8. Thermist Sensors
8.1 Temperature Sensor - DS18B20
8.2 Analog Thermister
8.3 Digital Temperature
8.4 Temperature and Humidity Sensor
Chapter 9. Switches
Chapter 10. Other Sensors
Chapter 11. More Discussions on Sensors
Part 3 - Motors
Chapter 12. Motors
Part 4 - Display
Chapter 13. Display
Part 5 - Communication
Chapter 14. Communication
Part 6 - Arduino Based Mini Automated Vehicle
Chapter 15. Assemble a Mini Automated Vehicle
Chapter 16. Remote Control
Powered By GitBook

8.2 Analog Thermister

Hardware Wiring

Analog Thermist

Sketch

The code can be found at Examples_Arduino - sensor-kit-for-arduino - _011_AnalogThermister - _011_AnalogThermister.ino.
#include <math.h>
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
Temp = Temp - 273.15;
// Convert Kelvin to Celcius
return Temp;
}
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print(Thermister(analogRead(0)));
Serial.println("c");
delay(500);
}
Previous
8.1 Temperature Sensor - DS18B20
Next
8.3 Digital Temperature
Last modified 5yr ago
On this page
Hardware Wiring
Sketch