2025-09-26 5:55 AM
Hello,
I’m trying to read temperature from some NTC10k sensors using a NUCLEO-H7S3L8 board. The datasheet says it has 14 ADC channels available, but I’m not sure how to wire the sensors correctly. I am using all channels in single ended mode
Each sensor is a simple 2-wire heat-dependent resistor (variable resistance in ohms). They don’t have their own power supply and only change resistance with temperature.
My questions are:
How do I need to wire the NTC10k to an ADC channel so that the MCU can actually measure something?
Do I need a voltage divider or extra resistor in the circuit?
If I want to connect several of these sensors (up to 14), do I need one resistor per sensor, or is there a simpler way?
Thanks in advance.
2025-09-26 6:48 AM
Connect them in series with a 10 kOhm resistor and hook up the middle node to the ADC pin. You need 1 resistor per NTC. After calculating the voltage, back-calculate what the resistance of the NTC is and from there, the temperature.
2025-09-26 7:16 AM
And do some calculations concerning resistor change per °C and if the resulting voltage change will give you high enough resolution.
Also check the STM32 ADC input impedance, it's usually not that high and might affect your 10k / 10k divider.
Use lots of oversampling, and give each ADC input an extra capacitor with (at least) a few nF.
2025-09-26 8:04 AM
But if all sensors are positioned indipendently from each other, a seriell connection would mean that a resistance of a previous sensor would effect the next one in the line. Wouldnt a paralell setup be more suitable?
2025-09-26 8:07 AM
My sampling time per ADC-channel is currently set to round about 614 cycles. Why though should i put a capacitor before the ADC INP pin?
Regarding the "manual" calibration, i completely agree
2025-09-26 9:27 AM
Connect each of them in series with a 10 kOhm resistor. So you have 14 resistors.
14 of these circuits:
[3.3V] -> [10 kOhm] -> [NTC] -> [GND]
Connect the middle node to the ADC pin.
I do not recommend a capacitor here.