Fun with Thermistors

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
easternstargeek
 
Posts: 347
Joined: Mon Dec 13, 2010 1:39 pm

Fun with Thermistors

Post by easternstargeek »

Dear friends:

I have recently been experimenting with the waterproof Thermistor assembly for sale here at Adafruit, and was pleased with the results, so I decided to post the project to Github and make it available to all interested parties:

https://github.com/EasternStarGeek/Fun-with-Thermistors

My approach differs slightly in that I use a lookup table instead of the logarithmic formula given in the Adafruit tutorial. I didnt make any measurements, but it could very well run faster, since it doesn't depend on a lot of complex floating-point math. In any case, Lookup tables are useful sometimes, and my example not only shows how to do a lookup, but also how to interpolate between the two closest entries to the measured value.

You will also find a helper spreadsheet that was used to create the LUT used in the sketch, along with some interesting charts that show graphically, the relationship between temperature and thermistor resistance, as well as temperature versus ADC voltage.

This post could just as easily be called, "Fun with Github" because this was my first attempt at creating a public repository, and truthfully, my principle motivation was to practice Git Bash.

Have fun, and please let me know if you find any of this useful!

User avatar
easternstargeek
 
Posts: 347
Joined: Mon Dec 13, 2010 1:39 pm

Re: Fun with Thermistors

Post by easternstargeek »

New and Improved!

The Arduino sketch now includes a zero-wait Low Pass Filter for smoothing variations from reading to reading, as well as a function for dulling the resolution to 0.5 deg C, since that is approximately the useable limit of resolution with these kinds of sensors, plus, better comments all the way round.

Enjoy!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”