Thermistors and resistors?

I have a bunch of 10k thermistors. Something I'm a little confused on. I looked up how to wired one up and it is very interesting I have found.

One way I saw to wire up the thermistor is one leg goes to an analog pin and the other goes to gnd. also a 10k resistor from analog pin to vdd.

The other way I saw is One leg of the thermistor is on analog pin and other leg on vdd. With also 10k resistor side from analog pin and the other side to gnd.

I don't know which one is correct and i need help to figure out which one is correct. Someone please help me out?

Here are the two images i found online.

Joseph


Either way works. The code to measure the temperature is slightly different for the two cases.

Just try it, nothing bad will happen.

@jremington Thank you. And @sonofcy I will.

Think it as a voltage divider. At 25'C it's giving half of the VCC to your analog input. With different temperatures less or more. Swapping the thermistor and resistor is just changing the temp/voltage relation to opposite.

@kmin I did not know that. I will look more into that. Thank you!

Look into the datasheet application notes! There You might find a formula to convert the analog reading to degrees, being some +/- 3 degrees accurate. Those sensors are usually nonlinear.
Such one have been used in commercial products but never in precision measuring.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.