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 CCS Technical Support

High temperature sensor to interface with PIC

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



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

High temperature sensor to interface with PIC
PostPosted: Wed Aug 03, 2011 4:02 pm     Reply with quote

Dear electronic masters Wink,

Another advice request! yay! Wink

I need to measure fluid temperature (engine oil to be precise) with a pic.

What sensor is capable doing -40C/-40F to +200C/392F and is the most easier to implement ?

NTC Thermistor and thermocouple look hard to do (calibration needed and complex formulas)...

If you have code example to show how it works that would be very nice! Smile

many thanks!

EDIT: i think digital thermometer are out of question most of them goes only to +125C/257F like the famous DS18B20
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Wed Aug 03, 2011 5:48 pm     Reply with quote

Hi,

I just completed a project using the new Maxim MAX31855 thermocouple-to-digital converter IC. This IC utilizes an SPI-like interface, and is super easy to get working with a PIC and CCS C. A number of different parts are available, each optimized for a particular thermocouple type. The stated accuracy for the -200C to +700C range of the type 'K' part is +/- 2C. I used a commercial thermocouple calibrator to calibrate my device over a range of -50C to +125C, and obtained +/- 0.1C accuracy.

John
temtronic



Joined: 01 Jul 2010
Posts: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Aug 03, 2011 6:13 pm     Reply with quote

I'd go with the digital( DS18B20). Easy to physically connect, easy to interface, to read/program. Especially when run in parasitic mode (2 wires)

It is very, very unlikely that you'll get oil up to 400*F unless we're not talking about monitoring a normal car engine. They typically run around 210-220*F coolant temp, oil is always a bit lower. The -40 spec is a wee bit low too. Anyone running down there will have block heaters on 24/7 !

Do some trials and see what you get. Add a 'thermocouple well' into the system so that you can test various sensors easily. Report back with the max temperature readings when you're done, should be interesting.
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Thu Aug 04, 2011 5:53 am     Reply with quote

ezflyr wrote:
Hi,

I just completed a project using the new Maxim MAX31855 thermocouple-to-digital converter IC. This IC utilizes an SPI-like interface, and is super easy to get working with a PIC and CCS C. A number of different parts are available, each optimized for a particular thermocouple type. The stated accuracy for the -200C to +700C range of the type 'K' part is +/- 2C. I used a commercial thermocouple calibrator to calibrate my device over a range of -50C to +125C, and obtained +/- 0.1C accuracy.




Ooo, they have a new one like the MAX6675? I have to check that out.

(that always bothered me that the 6675 only went down to 0'C)

-Ben

EDIT: I see they're discontinuing the MAX6675.. this is a much nicer part. I wish they had this out a long time ago!
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Thu Aug 04, 2011 8:21 am     Reply with quote

thanks for all your reply

Quote:
It is very, very unlikely that you'll get oil up to 400*F unless we're not talking about monitoring a normal car engine. They typically run around 210-220*F coolant temp, oil is always a bit lower. The -40 spec is a wee bit low too. Anyone running down there will have block heaters on 24/7 !


The engine is not water cooled , its a air-cooled engine head temperature can rise up to 380F (now start to overheat)

Quote:
The -40 spec is a wee bit low too. Anyone running down there will have block heaters on 24/7 !


We can get this low on outdoor temp during winter but normally its around -30C/-22F

Quote:
Maxim MAX31855 thermocouple-to-digital converter IC


You calibrate the chip thru SPI or you adjust the outputting values from this chip inside the PIC?

Other question when we talk about K type.... every K type mean it passed a measuring standard ? Does all K type thermocouple behave the same or i need one that can do negative temperature too?

On wikipedia i fail to see K type as a potential negative temperature sensor (short term maybe??)



thanks again! Very Happy
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Thu Aug 04, 2011 9:07 am     Reply with quote

Also found this type of temperature sensor:

http://en.wikipedia.org/wiki/Resistance_temperature_detector

Available everywhere even on feebay, cheap also!

http://cgi.ebay.com/120756238018


What do you recommend?
thank you guys! Very Happy
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
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