A KANALOG ADC can acquire a temperature-sensor signal, but an ADC count is not inherently a temperature. The conversion depends on the thermistor specification, excitation circuit, resistor values, and ADC transfer characteristics. The observed point of 636 counts at 27.1 °C is useful calibration data, but it does not define a complete count-to-temperature relationship.
Define the Thermistor Measurement Circuit
A thermistor requires a circuit that converts its resistance into a measurable voltage. The available setup uses a 100 kΩ thermistor and a 5 V supply, but the evidence does not identify the fixed resistor, wiring topology, thermistor resistance curve, or KANALOG ADC scaling. Record those details before deriving temperature.
| Item | Available evidence | Required decision |
|---|---|---|
| Sensor | 100 kΩ thermistor | Obtain its resistance-versus-temperature specification |
| Excitation | 5 V supply | Confirm the actual circuit and resistor values |
| Observed reading | 636 counts at 27.1 °C | Collect readings at additional temperatures |
| ADC conversion | Not specified | Determine how input voltage maps to ADC counts |
Read the Correct KANALOG ADC Channel
The documented call for KANALOG ADC channel 0 is:
ADC(0)
The setup description also refers to “ADC 1,” which is ambiguous: it may mean the first physical input or a channel indexed as 1. Verify the channel numbering before using the reading in temperature logic; do not silently substitute ADC(0) for a different wired channel.
Build the Count-to-Temperature Conversion
A single pair—636 counts and 27.1 °C—cannot establish the thermistor curve. The same count can imply different temperatures when the thermistor characteristic, fixed resistor, circuit arrangement, or ADC scaling changes.
- Identify the exact thermistor specification and its resistance-versus-temperature data.
- Document the 5 V measurement circuit, including the resistor that provides excitation current and how the ADC connects to the thermistor network.
- Change the temperature and record multiple ADC readings with corresponding reference temperatures.
- Create the conversion logic only after relating ADC count to circuit voltage, thermistor resistance, and the sensor’s specified temperature curve.
Verify the Measurement
Compare the programmed result with reference-temperature readings across the intended operating range, not only at 27.1 °C. If the result is incorrect, first check channel selection, wiring, resistor values, supply voltage, and the thermistor specification. The available evidence does not provide enough information to assign an exact equation or lookup table.
FAQ
How do I read KANALOG ADC channel 0?
Use ADC(0). Confirm whether the connected “ADC 1” means physical input 1 or software channel index 1 before applying this call.
Can 636 ADC counts be converted directly to 27.1 °C?
No. That pair supplies only one calibration point; conversion also requires the thermistor curve, measurement-circuit resistor values, topology, and ADC scaling.
What data is needed to program a 100 kΩ thermistor on KANALOG?
Obtain the sensor’s resistance-versus-temperature specification, document the 5 V excitation circuit and resistor values, then record ADC counts at multiple known temperatures.