Tom Hartman says:

...I developed a way to measure thermistor resistance without an ADC. This requires two bi-directional port pins a reference resistor and a capacitor. I think others have done this as well.
```PIN1|---\/\/\/-----+
|     R1       |  C1
PIN2|---\/\/\/-----+--)(--> (GND)
T1
```

Create a reference measurement from precision resistor R1:

1. Output 0 on pins 1,2 to discharge C.
2. Make both pins inputs.
3. Pulse PIN1 from input to high output back to input.
4. Increment reference counter.
5. While PIN1 input is low, go to 3.

Measure the thermistor:

1. Output 0 on pins 1,2 to discharge C.
2. Make both pins inputs.
3. Pulse PIN2 from input to high output back to input.
4. Increment themistor counter.
5. While PIN1 input is low, go to 3.

Now (thermistor counter)/(reference counter) = T1/R1. C1 is cancelled. The same pin is used to detect the threshold for both resistors, so the pin threshold is also cancelled.

So T1 = R1 * (thermistor counter)/(reference counter).

There are lots of tricks you can do to simplify the math. Then use a lookup table to linearize the result.

Size C1 so the RC time constants are slow enough to be able to count with some precision.

Questions:

 file: /Techref/io/sensor/thermist/capchrg.htm, 1KB, , updated: 2004/1/31 05:29, local time: 2021/4/18 23:56, TOP NEW HELP FIND:  3.236.228.250:LOG IN

 ©2021 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! io sensor thermist capchrg

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant" "No. But I'm interested. me at when this page is expanded."

### Welcome to sxlist.com!

Site supported by
& kind contributors
just like you!

(here's why

Copies of the site on CD
are available at minimal cost.

.