CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Thermistor circuit

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
asjad



Joined: 09 Mar 2004
Posts: 52
Location: Greater Manchester - UK

View user's profile Send private message

Thermistor circuit
PostPosted: Sun Apr 04, 2004 3:37 am     Reply with quote

Dear All,

I am towards the end of my project and I need help with a Thermistor circuit.

Which one of these configurations wiould be best and why??

A) A DC supply on a Thermistor and a series resistor, insert the voltage across the Thermistor into the PICS ADC

B) Insert the Thermistor in a Wheastone bridge and put the output in
a Differential op-amp, finally to the PICS ADC


I value your opinion/advice!
_________________
Best Regards
ritchie



Joined: 13 Sep 2003
Posts: 87

View user's profile Send private message

Re: Thermistor circuit
PostPosted: Sun Apr 04, 2004 4:25 am     Reply with quote

asjad wrote:
Dear All,

I am towards the end of my project and I need help with a Thermistor circuit.

Which one of these configurations wiould be best and why??

A) A DC supply on a Thermistor and a series resistor, insert the voltage across the Thermistor into the PICS ADC

B) Insert the Thermistor in a Wheastone bridge and put the output in
a Differential op-amp, finally to the PICS ADC


I value your opinion/advice!


I would suggest you use a bridge circuit with other resistor value near the thermistor value and fed to an OPAMP that act also as a level shifter from 0-to-5V.

Note... the PIC ADC input for a PIC18 series requires an impedance not exceeding 2.5Kohms. I suggest use an opamp that is teraohms input impedance and a low output impedance.

I've use the PIC18 ADC circuit with an opamp.

Hope this helps...
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Sun Apr 04, 2004 9:31 am     Reply with quote

Using a voltage divider is ratiometric to the supply voltage. Assuming you will get 10 bit readings that are accurate. (you probably will) Use excell to plot the voltage versus temperature curve. Then look at the range you will operate in and determine if the resolution is enough. The series resistor should equal the thermistor at the nominal operating temperature. You can do this all on paper and make a good decision. You should do this before looking at more expensive methods. If you have more than one channel to get readings from drop a 0.1uF ceramic across each analog input pin to rapidly switch channels.
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Mon Apr 05, 2004 7:38 am     Reply with quote

Do what's simple first, meaning Plan A unless you find something's wrong with it.

It's true that the thermistor + resistor approach will give an output that's ratiometric versus the power supply, but if you're using the PIC's internal reference for the A-D, that's ratiometric too, and hence no problem there. If one were fixed and the other not, you might have problems.

What you do need to do is think about the maximum and minimum temperatures, and what the variation in A-D input will be based on that, and what your resolution will be once the conversion is done. Is there going to be enough voltage swing to give you what you need? It won't be 0 to 5v! Also, it's not likely that the A-D output will be linear with respect to temperature change (check manufacturer's specs for thermistor, create spreadsheet). Is this a problem, and if so, how simple is it to fix (lookup table, mathematical function, piecewise-linear)?
Couch



Joined: 20 Jan 2004
Posts: 9
Location: Ottawa, Ontario Canada

View user's profile Send private message

One point about thermisters....
PostPosted: Tue Apr 06, 2004 11:15 am     Reply with quote

If you continuously apply current to a thermister, it will 'self heat', this means that the current flowing through the thermister will create heat, resulting in a temperature reading higher than what you would be expecting. You could probably run some tests to check the effect of self heating.

One way to overcome this would be to 'enable' the voltage supply only when you are about to measure, by supplying voltage through of the digital output pins - be sure your worst case temperatures dont exceed the current capacity of the output pin. One of the guys also mentioned that supply voltage must be known - it would be important to measure this as well.
dyeatman



Joined: 06 Sep 2003
Posts: 1912
Location: Norman, OK

View user's profile Send private message

Voltage Sensitive Supply Circuit
PostPosted: Tue Apr 06, 2004 11:24 am     Reply with quote

When in this situation I create a small regulated circuit off of the suppply using a resistor,zener diode and 10MFD cap.

Example:
If I am using a main 12VDC supply I use the zener circuit to create an 6 or 8VDC reference supply for voltage sensitive circuits. If using a 5VDC main supply I create a 4VDC reference supply. This isolates the voltage sensitive components (like thermistor and sensitive A/D circuits etc.) from main supply fluctuations
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Tue Apr 06, 2004 1:20 pm     Reply with quote

Look at Microchip's App note AN512. If you are only reading to 10 bits or so you probably don't need an A/D at all, just a couple of port pins, a cap, and a resistor. It solves the self heating problem too. It is informative reading and applies to any microcontroller (not just the 16C5X chips) even if you are committed to using an A/D for this project. The code is in C, but it is simlpe and the flowcharts and good in any language.
App note AN513 is good too.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group