Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 23rd February 2008, 06:48 AM   (permalink)
Default Calibrating temperature in PIC based temperature controller

How can I calibrate the voltage of a thermocouple connected to a pic16f877 so that I could view this voltage as its corresponding temperature on an LCD display.... In the attachments there is a picture of the complete circuit of the system that I'm talking about .... a PIC based temperature controller
Attached Files
File Type: pdf Circuit.pdf (19.0 KB, 28 views)
Shohadawy is offline   Reply With Quote
Old 23rd February 2008, 08:23 PM   (permalink)
Default

It should be a fairly straightforward to read the ADC and transfer the result to the LCD.

I assume that you are using the 5V supply as the ADC reference. If so, the ADC will read 0 at 0V and 1023 at 5V input. That will give about 2.048 counts per degree centigrade.

You will need to get the PIC to do some maths to get the result as deg C, which you can then send to the LCD.

However, I think that is a difficult way to measure temperature. If you need a wide temperature range, use a MAX6675 which converts thermocouple to 3-wire with one IC, no analog to deal with and no power supplies other than the 5V.

For temperature ranges up to about 150 deg C, you can use a temperature sensing IC that doesn't need a separate sensor, such as an LM95071
Diver300 is offline   Reply With Quote
Old 23rd February 2008, 08:43 PM   (permalink)
Default

Then , if I used the max, will its output represent the temperatures directly without calculations..and so can I display this digital signal directly on the lcd so the temperature is displayed directly
Shohadawy is offline   Reply With Quote
Old 23rd February 2008, 09:29 PM   (permalink)
Default

Sort of.

The output is in binary, and it is 16 bits long. Look at the data sheet.

You will need to shift the result to the right by 5 bits to get the result in degrees C, which will be two bytes if you are wanting to have temperatures above 255 degrees C

However that will be in binary, and you need to convert to BCD to make it meaningful. You can look up BCD routines in the application notes at www.microchip.com or the examples at www.piclist.com
Diver300 is offline   Reply With Quote
Old 23rd February 2008, 09:32 PM   (permalink)
Default

Thank you very much
Shohadawy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Interfacing a 12-bit temperature sensor with ATMEL controller Boncuk Micro Controllers 18 15th February 2008 10:23 AM
Really Simple PIC Based IR (InfraRed) Controller deanbayley Electronic Projects Design/Ideas/Reviews 1 12th November 2007 01:59 PM
water heater with temperature controller jemilsan Electronic Projects Design/Ideas/Reviews 27 1st March 2007 06:13 AM
Controller for lighting, temperature, humidity, etc. Magnus357 Electronic Projects Design/Ideas/Reviews 5 4th January 2004 12:10 AM
Help With Temperature Controller bryan Electronic Projects Design/Ideas/Reviews 4 30th June 2003 12:18 PM



All times are GMT. The time now is 12:44 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.