Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change title

...

The ADC reading was determined using NTC thermistors (unlike MSX, which used thermocouples), and then put through an equation in order to determine the temperature.

Equations

Steinhart–Hart equation

The Steinhart-Hart equation models the resistance of a semiconductor at various temperatures. You can read up on the equation online, but this is the equation of interest (which was taken from the NTCLE100E3 datasheet).

...

where 

Mathinline
bodyR_{25}
is the reference resistance of the thermistor taken at room temperature (25 °C)

Voltage-Divider equation

A voltage-divider is a circuit which turns a large voltage into a smaller one, using two resistors in series and an input voltage. This equation states that the output voltage is directly proportional to the input voltage and the ratio of

Mathinline
bodyR
 and 
Mathinline
bodyR_{ref}
, where 
Mathinline
bodyR_{ref}
 is the fixed resistor, and 
Mathinline
bodyR_{cc}
 is the power supply voltage.

ADC equation

An ADC reports a ratio between

Mathinline
body0V
and the supply voltage, using however many bits of resolution.

Mathinline
body\text{ADC reading} = \frac{V_o (2 ^ \text{bits of resolution} - 1)}{V_{cc}}
, where 
Mathinline
bodyV_o
 is the system voltage, 
Mathinline
bodyV_{cc}
 is the voltage measured, and 
Mathinline
body\text{ADC reading}
 is the value read back from the ADC.

Derivation

The goal is to determine Temperature (T) as a function of the ADC-reading.

...