Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Temperature regulator (how do i measure temp with pic)

Not open for further replies.


Newbie level 6
Apr 1, 2002
Reaction score
Trophy points
Activity points
temperature regulator pic

Hi, im working on a circuit to regulate the temperature of a mains heating element. Im planning to use a triac driven by a pic16f84. Does anyone know how i can measure a temperature in the range of 0-350 deg centigrade with a pic? i only need to be acurate to a few degrees, and need a relatively cheap solution.

measure temp

With the high end of your range above semiconductor limits, you will be limited to either a metal resistor device whose resistance changes with temperature or with a thermocouple. The latter will require a cold junction compensation IC.


For low cost solution use Nickel (Ni) resistor. It has nearly the same parameters as a platinum resistor (Pt100). The nelinear characteristic is described by a polynom (of seventh order). You can make linearization by operational netvork or e.g. by table in CPU....
For higher tepm you must use Pt rezistor or termocouple.
For compensation of cold junction of termocouple and linearization you can use special IC (if i remember from AD).


temperature regulator with thermocouple

AD594 for J type
AD595 for K type thermocouples...
you can get 10mV/Celcius easly.

ad595 with pic

Another option is the MAX6675 from Maxim:

Works with a standard type-K thermocouple
Performs cold-junction compensation
0 to 1024 Celcius readings
8-pin SO package
3-wire/SPI interface
12-bit, 0.25 Celcius resolution
+/- 3 Celcius accuracy
Samples available from Maxim
See: **broken link removed**

I have a few samples to try in my home-made reflow oven when I get around to finishing it. Looks nice and easy to use.

Best wishes,

measure temperature use pic

If you use 16F84,you need to make the hysteresis and the thresholding externally.This means some more components.Actually the PIC will be of no use at all.
Instead you can use PIC with ADC and make the thing in the right way.
This way you can easily use a look-up table to measure the exact temperature.
This is just my opinion though.

Not open for further replies.

Part and Inventory Search

Welcome to