Arduino Lab 4: Thermometer
Background: From our circuit labs, we remember that a thermistor is a variable resistor that changes based on the temperature. We can use this property to read a change in voltage across the thermistor and compute a corresponding temperature value to take our patient's temperature.
Goal: Read a thermistor and compute the temperature.
Circuit Setup
- Materials
- 1x NTC Thermistor
- 1x 10 kOhm Resistor
- Setup
- Connect thermistor between 5V and A0.
- Connect resistor between A0 and GND.

Lab Instructions
- Make a copy of the starter code below.
- Configure serial port to be used.
- We will print temperature values to user every second.
- Use Serial.print() and Serial.println() to format output.
- Serial.print(temp);
- Serial.println(“ degrees Fahrenheit”);
- Use analogRead() to read analog voltage in circuit.
- Provides a value between 0-1023 corresponding to a voltage.
- Store this value to a variable, so you can use it to compute temp.
- Once you’ve retrieved the value via analogRead(), use the starter code below to compute the temperature in Celsius using Steinhardt-Hart Equation.
- The circuit and math knowledge required to compute this is quite complex, so I provided the equation.
- You will then need to convert the temperature from Celsius to Fahrenheit to display the resulting temperatures as shown.
https://create.arduino.cc/editor/mjdargen_ncsu/48404ded-26b4-45b5-992e-8fc7ab0f3f3e/preview
