Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 25, 2024, 02:32:56 02:32


Login with username, password and session length


Pages: 1 2 3 [All]
Print
Author Topic: PT100 and Thermocouple choice  (Read 17047 times)
0 Members and 1 Guest are viewing this topic.
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« on: November 03, 2010, 10:07:54 10:07 »

I need to do a temperature control. resolution needed is 0.5 Degree Celsius. Accuracy is not that much great critical.

The operating temperature range is normally only 100 to 200 Degree. Normally need to kept somewhere near 150 Degree Celsius.
The client proposed a thermocouple, but considering the complications of compensation and linearizing issues associated with thermocouples, I suggested for PT100. I am using this sensors for the first time.

Similar devices in market seems to be using both these sensors but most of them are on thermocouples.

May I Know the pros and cons of making the selection between these two? I have searched and read the difference and got a general idea, but looking for input from practical experience.

Thank you

Roy
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
leptro
V.I.P
Junior Member
*****
Offline Offline

Posts: 93

Thank You
-Given: 605
-Receive: 26


« Reply #1 on: November 03, 2010, 11:03:16 11:03 »

hi,
i have used a thermocouple with the special circuit AD595, you have nothing to do, all compensation and hard work ar done by the circuit itself. You will have an analog value at the output, just connect it to your controller adc.

have also a look at the MAX6675, it has a digital output (spi) , an do the same job.

Regards.
Logged
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #2 on: November 03, 2010, 12:39:23 12:39 »

Thanks for the info.
AD595 is locally available but costly (550/ Indian Rupees).
But at the same time thermocouple cheaper than PT100 here.
Thermocouple 150/INR and PT100 is 250/INR.
But PT100 needs constant current and some conditioning circuits, I think. (Right?)
Thermocouple  + AD595 can go to ADC directly and then process as I did for LM35 output!

Now I have to decide which way to go!

Thanks
Roy
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #3 on: November 03, 2010, 04:15:10 16:15 »

The final cost is important, but not more than the professionalism and quality of the product. I am planning to implement a PID based temperature controller in this system.
To be frank, the idea to use a very costly chip for that Thermocouple conditioning seems a inability on my part. (May be a bad idea to think that way!)

If the final cost is important and you have a micro controller solution with some spare FLASH and running time, you can supply the PT100 by a simple resistance and linearize the data with the micro.
Regards
You are suggesting that even a constant current source is not needed. Can you give some more details?
This is how I understood the PT100 usage so far..
PT100 gives a change of 0.385 Ohms/Degree Celsius.
So to be handled by a 10 bit ADC channel of PIC to give 1 Degree resolution, we must get 4.9mVolts of change. So a constant current around 13mA can effect that volatge change in PT100.for that I can use a regulator in constant current mode. But if I want .5 Degree resolution I may have  to double the current. But that increase may not be OK because of other factors.
So is my understanding of the situation, workable?
How this 'linearize' ? You mean any look up table or calculation?
This can be avoided (by a bridge configuration) but complexity and cost increase.
Regards
Some more info please.
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
ktek
Junior Member
**
Offline Offline

Posts: 39

Thank You
-Given: 10
-Receive: 5


« Reply #4 on: November 04, 2010, 07:48:28 07:48 »

Simple,
the   noise always present on the pt100 comes in aid ,
in your case, in order to increase the resolution of the pic of 1 bit ,
you make 32 averages reads and you divide for 16
and therefore you obtain the resolution of  .5 Degree
With this system you can increase the resolution of 1 or two digit, beyond it becomes inaccurate
the conversion slows down but,  however temperature has a slow course

 
Logged
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #5 on: November 04, 2010, 09:23:47 21:23 »

Hello! This is a subject on which I can say I have a good experience. In the 100 to 200 deg. Centigrade range a PT100 RTD is the most professional choice. BUT you shall consider the length of wire to connect it in circuit. Professional PT100 sensors are 3 wire or 4 wire (best) the extra wires will allow compensation.
You may want to consider using a PT1000 , that is a less accurate sensor, but usually does not need the 3 or 4 wire complication, and it is anyhow much better than a thermocuple.
Definitively you cannot drive a PT100 ( or PT1000) with 13 mA! Forget it! That will increase the temperature of the sensor by a BIG amount. Maximum drive is normally 1mA.
Yes, with PT100/PT1000 you do have to offset your reading and make some calculations (linearization etc.) That is true for the thermocuple as well.
The Thermocouple is a low cost sensor choice but you will need a secondary temperature sensor for ambient temp. correction, quite often a thermistor, and some compensation scheme in digital or analog form as well. You can find a good deal of design projects to implement both solutions. To get a good idea have  a look to the following application note from TI :slaa216 (search for it in www.ti.com), it is complete with source files. 
Finally: if your interest is mainly in the controller part of the design, why not buy a complete 4-20 mA temperature transmitter? That is not so much costly and you will get a really professional solution complete with fixation hardware and calibration. Start from there and add your controller ...
If you only need a couple of instruments this is the best way to go. If you are planning in the 100s then ok, I would work on the PT100/1000. 
Logged
DTiziano
Active Member
***
Offline Offline

Posts: 104

Thank You
-Given: 41
-Receive: 168


« Reply #6 on: November 04, 2010, 09:53:38 21:53 »

Hi MicroMaster

The basic circuit is just a resistance in series to PT100.
To increase the ADC resolution multiple samples can help but a better solution is to change the
ADC reference (Vref- and Vref+). Take care not violate the micro specification for this function.
Attached a simple excel simulation of this ideas.
If the power dissipated by the PT100 is hight you can consider an ON/OFF solution.
While ago I made i similar system, the power supply comes from a LM317, by switching to ground the ADJ pin the PT100 current goes very low, so the power. In my application the PT100 was very tiny and under vacuum, so even o low power generate error.
For you application you have can use the micro power supply equal to the Vref+.
Some verification also have to be made how to calibrate the unit and the error from component tolerances and drift.
Of course the conversion from voltage to temperature may require some linearization, but this should not be difficult to do with the micro. I think that a linear interpolation on a two or three segment should be enough.

The line connection also is a source of error that must be evaluated.
If not under control and it is too high the suggested solution solution may not be good.


Regards

P.S.
The back ground colored cells are the ones to play with, the others are calculated.
« Last Edit: November 04, 2010, 09:58:06 21:58 by DTiziano » Logged
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #7 on: November 05, 2010, 07:34:03 07:34 »

Thank you all. Now I got a substantial stock of information to start with plus documents. As for now my feel is to go for PT100 sensor.
The little confusion remains is about the normal current used for driving PT100. Is it around 1mA as mentioned above? If so my resolution will be greatly reduced.
Constant current or not, what is the optimum current for PT100? (The spreadsheet default value is 20mA)
Also if we need to drive in more currents, we may energize PT100 only when about to read.
Correct me if I am wrong.

Thanks a lot

In the spreadsheet as we change some values the cell back color changes,- some sort of a indication! How is it to be interpreted ?
« Last Edit: November 05, 2010, 07:40:28 07:40 by MicroMaster » Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #8 on: November 05, 2010, 08:43:06 08:43 »

May  I insist that:
1) You cannot drive a PT100 at 10mA, not even for a short time, if you want to discriminate 0.5 deg.centigrade -
2) You cannot have even a short run of cable when using a PT100 as a sensor , 1 meter is too much already ! You must have a 3 wire or 4 wire arrangement.
3) A 10 bit ADC cannot do the job in my opinion.
4) Some analog conditioning circuit is REQUIRED to solve the above problems.
OR you can use a microprocessor with a better resolution ADC and that includes a PGA. The 4wire correction can be done in firmware. The simplest ones that I use succesfully are  the MSP430F4270 or MSP430F479 with 16 bit sigma-delta converter. I can guarantee that no less than that is necessary.
Logged
Old_but_Alive
Senior Member
****
Offline Offline

Posts: 329

Thank You
-Given: 705
-Receive: 118


« Reply #9 on: November 05, 2010, 08:54:47 08:54 »

at the risk of being flamed for "advertising"

have a look at

http://www.parallax.com/Store/Sensors/TemperatureHumidity/tabid/174/CategoryID/49/List/0/SortField/0/Level/a/ProductID/96/Default.aspx

it uses a thermocouple, has a Dallas 1wire output, so is easy to use with a micro.

there are loads of good info, and code to help you.

p.s. I dont work for parallax

Mike
« Last Edit: November 05, 2010, 08:56:52 08:56 by Old_but_Alive » Logged

I fought Ohm's Law ...  and the law won
I only use Mosfets because I have a Bipolar mental disorder :-)
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #10 on: November 05, 2010, 10:03:23 10:03 »

Sorry but  Isuspect that the parallax design is not good for the application. First of all it seems to work only up to 127 centigrades, second ... have a look at how they suggest to "build" and connect the thermocouple! Speaking of professional ...
Logged
Old_but_Alive
Senior Member
****
Offline Offline

Posts: 329

Thank You
-Given: 705
-Receive: 118


« Reply #11 on: November 05, 2010, 10:21:00 10:21 »

the +127 is just the cold compensation temperature max, not the thermocouple sensor.

as for the thermocouple connection, i dont disagree, it should use proper thermocouple plug connections.

I was just giving the guy a good starting point
Logged

I fought Ohm's Law ...  and the law won
I only use Mosfets because I have a Bipolar mental disorder :-)
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #12 on: November 05, 2010, 11:04:54 11:04 »

May  insist, it appears that the 127 limit is for the whole measurement ... and the problem on the thermocouple "build" is making the contact of the two wires on the sensing termination ... by "twisting" the thermocouple wire, this is a bad example... of course the info is interesting anyhow. What I am warning against is a certain "amateur style" of the company.
Logged
Old_but_Alive
Senior Member
****
Offline Offline

Posts: 329

Thank You
-Given: 705
-Receive: 118


« Reply #13 on: November 05, 2010, 11:47:41 11:47 »

from the link I gave :-

    * 1-Wire interface allows multiple devices with just one BASIC Stamp I/O pin
    * Cold Junction measurement: 0 to +127 °C (0.125 °C resolution)
    * Low power consumption: Active current = 90 µA max, Sleep current: 2 µA max

Key Specifications:

    * Power Requirements: 2.5 V to 5.5 V @ 90 µA (max)
    * Communication: Dallas 1-Wire® Interface with unique 64-bit device address
    * Dimensions: 1.08 x 0.43 x 0.3 in (27.5 x 11 x 7 mm)
    * Operating Temperature: -4 to +158 °F (-20°C to +70°C)

Kit Contents:

    * Thermocouple Module
    * K-Type (Chromel/Alumel) Element Temperature Range: +32 to +1873 °F (0 to +1023 °C)
    * J-Type (Iron/Constantan) Element Temperature Range: +32 to +1873 °F (0 to +1023 °C)
    * T-Type (Copper/Constantan) Element Temperature Range: +32 to +752 °F (0 to +400 °C)


cant you read properly ?, the cold compensation temperature max is +127C

I agree their method of thermocouple mechanicals is bad.

Its a kit for amateurs, but will work well providing a pcb is designed with proper connectors, and proper thermocouples from say omega

Its a good starting point for a solution though.


Logged

I fought Ohm's Law ...  and the law won
I only use Mosfets because I have a Bipolar mental disorder :-)
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #14 on: November 05, 2010, 12:28:33 12:28 »

You must have a 3 wire or 4 wire arrangement.
Some analog conditioning circuit is REQUIRED to solve the above problems.
Thanks friends for the input.
If I have to go for higher bit ADC I need to use MCP3304 or something. Needs external reference etc. I have to try weather it can be accommodated with PIC ADC.

As you suggested I have a three wire PT100.  white and 1 blue.
I can use some analog conditioning circuit also.
Can you provide some suggestions in this context?

Thanks
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #15 on: November 05, 2010, 02:05:01 14:05 »

The first example circuit at page 136 (pdf page= 74) of the book referenced above is clear enough on the priciple of measurement of a PT100, but does not provide a 3wire compensation. I can search for something in 3 wire but that will take time. It's a long time I left such "analog" approaches and use a 16(or more) bit ADC. In my opinion that is the best thing to do anyhow.
Logged
DTiziano
Active Member
***
Offline Offline

Posts: 104

Thank You
-Given: 41
-Receive: 168


« Reply #16 on: November 05, 2010, 02:15:43 14:15 »

In the spreadsheet as we change some values the cell back color changes,- some sort of a indication! How is it to be interpreted ?

The Vref- and Vref+ must be lower and greater respectively to the min - max input voltage.
The back ground color indicate that this condition is not meet.

For the PT100 driving current problem, I do not agree, at 20 mA and 200 °C you have 70 mW power dissipated by the sensor.
Yes it can be self heated, but that depend also on the final sensor mass (sensor holding if exist).
This self heat can be reduced by supplying the PT100 just for the few ms required by the reading.
Low current can be used of course, at low current the self heater is lower, but the noise contribution increase and a better ADC is required.
Here as  everywhere the project is a balance of performances , complexity and costs, and only the designer may know which solution is better  tailored.
We can give suggestions and ideas to evaluate.

If the PT100 supply line can be keep under control or is included in the calibration for example, than also the two wire solution can work.
Take care also that resolution and precision are two different thinks.
Yes typically hight resolution is married with high precision, but again there are applications were the resolution can be a little better than precision just because the final result is trimmed (no hight precision required), but good resolution help to keep it on track.

Regards

PS
For three wire sensor see microchip AN682 pag.7 for example.
« Last Edit: November 05, 2010, 02:58:36 14:58 by DTiziano » Logged
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #17 on: November 05, 2010, 03:40:22 15:40 »

Oh la! I found a nice circuit and explanation in the following : http://ww1.microchip.com/downloads/en/AppNotes/00687b.pdf
In it you get a costant current source at 1mA AND a 3 wire compensation circuit. The ADC is 12 bit anyhow, you may still want to make your own considerations and try to use a 10 bit, but in my opinion this will not give any good. Believe me, I do know the matter. To day you spend less money and get better results using a 24bit sigma-delta and make the differential job in firmware.
Logged
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #18 on: November 05, 2010, 11:04:21 23:04 »

Nice example! So, now, you can understand the reason you cannot really do the job with a 10 bit ADC!  And, by the way, there certainly are thermistors that can be used in the range from 100 to 200 celsius, but they are neither cheap nor accurate. A Pt100 or PT1000 << IS >> the choice in that range.
Logged
oldvan
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« Reply #19 on: November 06, 2010, 12:08:41 00:08 »

I need to do a temperature control. resolution needed is 0.5 Degree Celsius.
Accuracy is not that much great critical.

The operating temperature range is normally only 100 to 200 Degree. ...

Nice example! So, now, you can understand the reason you cannot really do the job with a 10 bit ADC!
How would one be so silly as to conclude that?

The problem is defined to cover a 100 degree range in 0.5 degree increments, requiring 200 data points.

A 10-bit ADC offers 1024 data points, over 5 times as many as minimally necessary.

Scale and offset sensor output voltage with op-amps such that 100 degrees gives 0 volts, 200 degrees gives
5 Volts, feed this voltage to a 10-bit ADC and get on with it.  No need to make a mountain out of a mole hill.
Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #20 on: November 06, 2010, 03:22:57 03:22 »

Thanks a lot, friends.
I am going to use PT100, three wire configuration, which is available.
For the processing I think I narrowed it down to two options.
One is to scale and offset the PT100 output to accommodate in the PIC10 bit ADC- less work
Next is to use that Bonnie Baker Microchip App note circuit with 12 bit ADC- more adaptable for future needs.
Thanks again
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #21 on: November 06, 2010, 07:57:20 07:57 »

How would one be so silly as to conclude that?

The problem is defined to cover a 100 degree range in 0.5 degree increments, requiring 200 data points.

A 10-bit ADC offers 1024 data points, over 5 times as many as minimally necessary.

Scale and offset sensor output voltage with op-amps such that 100 degrees gives 0 volts, 200 degrees gives
5 Volts, feed this voltage to a 10-bit ADC and get on with it.  No need to make a mountain out of a mole hill.


The problem is that every dummy can do the calculus above, BUT the real world is not as you think. I said I do this job all the time. You seem to search and try to insult other people, but maybe can't really know the matter. The 0.5 °C is approx. 0.2 Ohm difference ,over approx. 150 Ohm base resistance. Now the points to resolve are 750 at bare minimum, which doesn't work anyhow with a 10 bit ADC in the real world.
Secondly it is NOT that easy to scale and offset the PT100 plus compensate the 3wire . I can only repeat that the real way to go is use a high resolution converter. But at this point, as most other people DOES KNOW EVERYTHING I will only describe the real circuit to the interested guy, so that he will really gain his job. Please write me in private.
Logged
Ichan
Hero Member
*****
Offline Offline

Posts: 833

Thank You
-Given: 312
-Receive: 392



WWW
« Reply #22 on: November 06, 2010, 10:24:48 10:24 »

The problem is that every dummy can do the calculus above

I use such a dumb calculus on my 20 - 50 degree range 0.1 degree resolution (300 points) thermometer with 10 Bit ATMega internal ADC. Sensor is 10K thermistor with lookup table linearization feed to the ADC through an analog front end which do what Oldvan said about scaling and offsetting plus lowpass filtering.

I can get a stable, consistent, and responsive reading with 0.1 degree resolution over the full range of 20 - 50 degree. Analog front end, noise handling, and stable References (both for ADC and sensor) are the keys.

-ichan
Logged

There is Gray, not only Black or White.
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2430

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #23 on: November 06, 2010, 03:36:31 15:36 »

Quote
Please write me in private.
 
First off we don't condone private share's like this as it doesn't benefit the community as a whole
So far this thread has been quite informative and we want to keep it open for the everyone but if it is going to turn into a flame war over who's right or wrong than it will be closed and so will a few accounts
from what I've read here everything has been covered to use this right from a Hobby level to professional level so everyones input has been of value.
Only the Op knows what degree of accuracy he really needs and is capable of getting away with, even though this may not be the best way in your opion it will work .
do not give up expressing your views because you don't agree with poster "A" or "B"  as there are people who still need information regarding more professional applications and would be interested to see the circuit and at the same time we have members who only want to experiment with these at a hobby level and 24 bit adc would be overkill for them not to mention some of the terms and math involved
the bottom line is we have members ranging from  amature to professional and the professional people tend to get ticked off when posting thinking we are all professional's here when in fact were not so try and remember that
« Last Edit: November 06, 2010, 04:07:36 16:07 by bbarney » Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #24 on: November 06, 2010, 07:06:22 19:06 »

In the early 80's years I worked a lot  with this issue.
I was looking for a long time, this drawing is one of my old things.

It is a simple analog PT100 linearizer circuit, using only one OPAMP.
I prepared the circuit in Proteus (attached), it's working as well.
The output is 10 mV/Celsius, working in the range -100 ...+400 degree
Its linearity error is max. +- 0.1 degree (+- 1 mV).
Please be patient, the spice simulation is too slow ...
  
Unfortunately, I still cannot find my corresponding mathematical derivations,
but the values of the items were on the drawing.
 
Well, I know, these extreme values, but is required for the correct operation.
I remember glory days of the resistance wire was prepared by supplementing the necessary
values. It needed a high-precision resistance measurement too :-)

I prepared also a variation of this circuit to compensate the resistances of the measuring wires,
but I have not found yet...

However, at my humble opinion, this doesn't necessary in your case, MicroMaster.
Please have a look at this simple calculation:

You wrote:
"resolution needed is 0.5 Degree Celsius. Accuracy is not that much great critical"

Well, if measuring cable's lenght 5 m and cross-section 0.5 mm2 is assumed:

- the sum resistance of this wires is appr. 0.36 Ohm, corresponds to 1 Celsius in case
     of a PT100.
- the temperature coefficient of resistance of copper is
     alpha = 3.92 ... (4.041) ... 4.3 x 10-3/kelvin  
- to cause an error 1 celsius the delta T (change of temperature of the wires) must be  
     min. 232 Celsius (worst case), this is not realistic I think : -)

Look at this link for example:
http://www.allaboutcircuits.com/vol_1/chpt_12/6.html.

I hope I could help.
Welcome
zuisti

Edited:
The link for the circuit:
http://hotfile.com/dl/80867570/53fd6e2/circ.rar.html
pw:zuisti
« Last Edit: November 06, 2010, 09:57:26 21:57 by zuisti » Logged
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #25 on: November 06, 2010, 07:38:54 19:38 »

Well, if I shal continue in public I will explain the reason why it is wrong to calculate the ADC requested resolution as the poster who called me "silly" thinks it should be done.
The guy says: " you only need 0.5 °C resolution in 100 °C span, that makes for 200 points wich is well covered by a 10 bit converter ". This is the OUTPUT resolution, it is NOT the input resolution necessary to measure the temperature when using a PT100.   OF course, if you ALREADY have a circuit which gives you the correct voltage as (say) 0-2.5 V from 100 to 200 Celsius than you can make your job with even less than a 10 bit ADC. The problem is that you must build such circuit first. The reasonable way to do this, nowadays, is to use a 24 bit sigma-delta and make some easy calculation. I really love analog circuits as the one proposed by "zuisti" ( I cannot read it but I do beleive it works) but they simply are no longer necessary and the "analog workmanship" required is no longer available (unfortunately).
Second point: yes you can do without 3wire compensation but the OP wants to build a professional system, he wants to be able to buy real world PT100 probes, available as 3 or 4 wire configuration ...  and I suspect would appreciate to be able to enjoy interchangeability of the probes.
I do not think that 24 bit sigma delta converters are exotic components, either, they are very common and very cheap, maybe that somebody can be happy to learn how useful they are.
Finally I give my excuses to the board, but I do not think that being called silly by somebody and accept the insult makes sense for me, so I simply wanted to avoid a discussion with such people.
regards
Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2430

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #26 on: November 06, 2010, 09:25:08 21:25 »

I never asked you to accept an insult,in fact I allowed you to throw a dart too
what I asked was for you to continue contributating to this thread
being called silly is no worse than calling someone a dummy so what I'am saying is the score is even so put that behind you so you can continue to help the OP and other people but at the same time try and remember for some people here a 24 bit sigma delta converter would be exotic and impossible for them to obtain so when someone puts a lesser design on the table whether good or bad it might be the only option for them
we don't need useful threads locked because of differences of opinion no matter how silly or dumb they appear and I wasn't just addressing you
over the mud slinging it goes for everyone.
We are all prone to get in huff when we think our toes have been stepped on myself included but it's no reason to come out swinging or retreat
So why don't you guy's meet in the middle shake hands and make one with -- say a 16 bit convertor  Wink
zuisti
we are still having download trouble with files, could your re-post your file somewhere else like rapid or such
 
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #27 on: November 06, 2010, 09:39:10 21:39 »

zuisti
we are still having download trouble with files, could your re-post your file somewhere else like rapid or such
OK.
The link:
http://hotfile.com/dl/80867570/53fd6e2/circ.rar.html
pw:zuisti
Logged
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #28 on: November 06, 2010, 09:57:13 21:57 »

Well, mr. BBarney, the problem with 16 bit ADCs is that they are NOT easily available. Or there are some specialized and costly and very difficult to use ones. The sigmadelta variety is made exactly on the purpose of the above discussion (or similar application) but unfortunately most of them are (so-called) 24 bits. Other than for that I DO AGREE that you can do the job with a good stable 16bit.
The interesting point of this breed of converters is that they are designed to be slow ( as slow as 15 conversions per second) high resolution and benefit from a very high noise rejection . In the real world they are much easier to use than even the 10bit SAR type found in most microprocessors, which usually is very noisy.
I mostly use the family of TI but there are certainly several others.
Please have a look to the data sheet of the ADS1232
http://focus.ti.com/lit/ds/symlink/ads1232.pdf

You will find several interesting application circuits that exactly address the topic, and believe me they are really useful.
Please note: you do not even need a reference in the PT100 3-wire compensated circuit as proposed.
Unfortunately I did not post this reference before,  I apologize, simply  I did not had it in mind, since I use a different converter. This application circuit was not given in the datasheet of the converter I use, so I had no handy drawing to give.  My typical application uses 4wires and I have a different arrangement for it, but 4wire is not practical for the OP so I never insisted on 4wires.
I sometimes do use 3wires and that works and the circuit is veru similar to the example in the data sheet, so I can say that it works.
Thanks for your patience, I promise not to waste your time in the future.

Logged
oldvan
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« Reply #29 on: November 06, 2010, 11:05:29 23:05 »

engamor:  I appreciate you sharing your insights, and might even have uses for
an ADS1232 some time in the near future.

I'll not be stubborn like those who insist that Vinl sounds "right" and CDs sound
"artificial"; certainly this job CAN be done using opamps, precision resistors, etc.
Something as integrated as the ADS1232 clearly takes the prize.   The $11.75 Ea.
price tag at digiKey isn't terrible.

The controller for my furnace here uses a type K thermocouple and a MAX6675
to monitor firebox temperature.  It's a hard to beat combination for such a
project where it isn't rocket surgery and the most important things are not
freezing to death and not getting the firebox wall much above orange hot.   Cool

Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2430

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #30 on: November 07, 2010, 12:26:15 00:26 »

engamor
The 16 bit referance was only a joke because it's 1/2 way between 10 & 24 (almost Smiley ) but thank you for the explanation and your not wasting my time your input on the subject has been very helpful to the OP and others reading this thread
That looks like a nice chip and oldvan is right $11 dollars for one is reasonable and if you were mass producing it's 1/2 that price , I also noticed that Digi-key has a demo board for $ 55 if anyone is interested in playing around with this chip it looks like the way to go
http://search.digikey.com/scripts/DkSearch/dksus.dll?Cat=2622527&k=ADS1232
manual for the board
http://focus.ti.com/lit/ug/sbau120a/sbau120a.pdf
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #31 on: November 07, 2010, 04:38:57 16:38 »

I have got the file posted by ZUISTI but I cannot read it, I do not have a program to read it  Angry.
Thanks anyhow.
I agree that the evaluation board can be of great help.
The price tag of ADS1232 should be less than 4 $, but yes, this is the price when you buy (even small quantities) from a regular distributor.

Anyhow if "micromaster" decides to go that way, here is what he should do.
1) Implement the circuit as described in the datasheet. The 33KOhm resistors are not critical as for the accuracy, they shall be very good in terms of stability, 20ppm is ok. The original circuit diagram is rather simple and does not include protection resistors on the ic pins. You better place at least 1kohm ohm in series to the input pins and 1nF high quality capacitors in parallel. The exact values may have to be checked later, but you shall set up the place on your board, just close to the input connection block.   
2) Get the hardware working, the microprocessor shall communicate with the ADS1232 via SPI. Exercise a bit the different functions. You may have some specific question at that time, please contact me if in doubt.
3) Buy a few 100 Ohm resistors of high precision and stability , leaded old fashioned ones are best. Accuracy shall be at least 0.1%. If ever possible you might buy real high precision ones, that will cost a little, but you will use them for your lifetime.
4) The result of the conversion from the ADC is a representation of the resistance of the sensor, referred to the divider network made with the two 33K resistors. You can compensate the third wire as illustrated in the datasheet. You better calculate at this stage the real ohmic value from the equation of the divider network. This step is very useful to understand if your circuit is working as it should. Using the 100Ohm resistor(s) you can calibrate the precision ohmeter you have made!
Calibrate it at 100Ohm and at (say) 200 or 150 ohm . Your microprocessor shall be equipped with the ability to store non-volatile correction values and some calibration routine.
5) The circuit works because the two 33K do provide a stable current source even if the 100ohm nominal sensor resistance is changing with temperature. The output from the measurement is thus referred to the ratio as said above.
Of course the internal PGA is set at 128, so that the tiny changes of resistance are amplified and everything works as you had a 12800 ohm resistor driven by 5V/66Kohm ... Got the idea?
6) Once you have got the "3wire_ohmeter" calibrated in 2 points your job is easy. Use  a look up table approach and you have a good stable temperature measurement.

One very big advantage of the PT100 is that your system can get calibrated with just those 100 Ohm resistors. To calibrate a thermocouple system you would need a precision millivoltmeter and some delicate setup.

I am speaking of several 100Ohm resistors because you can buy a small lot and use them to make a reference 100 Ohm, a 150 and a 200. Use SHORT THICK WIRES for the series parallel connections!  ( You can buy different resistors of course ... )

There are many things that you may need to ask. No problem for me.   

Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2430

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #32 on: November 07, 2010, 06:24:04 18:24 »

engamor
You need Proteus to read Zuisti's file here is a link to it just download the single file install at the bottom of the sticky (at the top of the thread)
you will find many use's for it I'am sure
http://www.sonsivri.com/forum/index.php?topic=31342.0
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #33 on: November 08, 2010, 05:36:53 05:36 »

I got zuisti circuit in Proteus and tempted by its seemingly simplistic nature!
But the resistance values and op amp specifications may be very stringent.

I have started looking for ADS1232, so far $13- but that is from farnell. General market I am searching now, should be low.
This is the data sheet circuit.

1K Ohm in series with input pins means 1 each for the probes.(?)
The cap in parallel is across each channel ( between AINN1- AINP1 and AINN2-AINP2) (?)
One channel will read lead resistance(Ch2) and other, lead plus RTD. (?)
Should this sort of high bit count ADCs need any special power supply for stable operation? (Noise problems?)

Only AD1232 and a couple of stable resistors - everything else is in software. That may be the beauty of the proposal!
Regards

« Last Edit: November 08, 2010, 05:40:05 05:40 by MicroMaster » Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #34 on: November 08, 2010, 08:00:23 08:00 »

I have finally seen the circuit proposed by Zuisti. Thanks for the posting of course. This is a nice approach and it was possibly the simplest and smartest one possible some time ago. The circuit is still very useful if you can do without the 3wire configuration, which is possible if you keep leads short at application site, but it is not the general case with standard installation. For lower temperature applications the opamp and circuitry can be placed in the probe casing itself.
Now to the answers for the ads1232 circuit:

1Kohm resistors shall be placed exactly before the input pins:  AINP1+AINP2, AINN1, AINN2 , so that makes for 3 resistors.
Place the capacitors after the resistors, to ground.

AIN1 is reading RTD+2RL, AIN2 is reading RL (1x)

Decouple the power supply to the ADC, nothing special however, If possible use a linear power supply circuit.
The long conversion time makes for a good noise rejection. read carefully the data sheet. Also search for some tutorial on sigma-delta converters.

have a nice day!
Logged
sam_des
Senior Member
****
Offline Offline

Posts: 253

Thank You
-Given: 124
-Receive: 146


« Reply #35 on: November 08, 2010, 11:12:37 11:12 »

Hello,
It was interesting to read this thread. I got many new ideas. Wink

But I think solutions suggested are expensive when not so much accuracy is required. Also using built-in 10-bit ADC of uC seems reasonable for 100-200 deg C range with  0.5 deg C resolution is required. Using single supply op-amp such as 358 is also handy if no -ve supply is not available.

So I tried to design such circuit  Grin
Check it and see if there are any problems. Embarrassed.

Let me emphasize again, that circuit is NOT for high accuracy measurement but for simplicity and cost.

regards,
sam_des
Logged

Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #36 on: November 08, 2010, 01:20:47 13:20 »

Thanks a lot sam_des.
I think this can help me a lot to learn also.
Also I am finding it hard to get the ADS1232 at market rate here. I have placed order with farnell even though the rates are high.(I need to make one for future needs and experience) It can be treated as a academic interest project now. The client also of the opinion that it might be a overkill with the prizing and specification.
I am loading that new circuit in Proteus and playing around.
I am afraid now that  I am becoming little bit greedy. I am thinking of changing my design specifications.
Please don't misunderstand, I am not asking to re-design the circuit - but trying to do it myself for learning.
If I can bring the range to 0 to 250 Deg. or 10  to 240 Deg or something it will be more useful as well as easy for testing and development. Since ADC has 1024 steps I think .25 Deg Celsius resolution and 256 degree span is possible. (Is there anything wrong in my judgment?) now the span seems to be more spread.

If it is possible in principle with the given circuit topology, it will be helpful.Considering the flexibility of the arrangement I feel it can be done.
Please suggest

btw which simulator you suggest better Proteus or Multisim?
(I am not that much interested in that MCU simulation part because I use MCU debuggers for that section. for the other capabilities which is good?)

Thanks

 
« Last Edit: November 08, 2010, 01:29:57 13:29 by MicroMaster » Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #37 on: November 08, 2010, 01:37:08 13:37 »

Please, mr.sam_des, do not think I want to deceive you. Your circuit has a few pitfalls. First of all: you cannot claim that it is made for simplicity and cost! Using 3 trimmer resistors is not cheap. Professional trimmer resistors are very very costly, especially after you spend time and resources to adjust them, not to speak of stability. Secondly, again, the circuit does not provide for 3wire compensation.
If you have a look to the ANALOG Device booklet ( at the page I indicated in a previous post) you can study the circuit in there and possibly see by yourself what I say. The OP wants a professional quality result (building a PID control), and lacks instrumentation and experience on the subject, there is little else that can help him but the solution I propose.
For micro-master ... a little last advice: never speak of technical options to your customer!
Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2430

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #38 on: November 08, 2010, 01:45:38 13:45 »

Quote
btw which simulator you suggest better Proteus or Multisim?
(I am not that much interested in that MCU simulation part because I use MCU debuggers for that section. for the other capabilities which is good?)

Can't say anything about Multisim because I've never used it but just about everyone here use's Proteus , you only have to look at the downloads for each to see the difference in fact that's why most people show up here in the first place because their looking for proteus
which is better isn't always the right choice, if your looking to share designs around here Proteus is the one to go with as most people here use it

Quote
For micro-master ... a little last advice: never speak of technical options to your customer!

I couldn't agree more the seccond you put a bug in their ear they start to scratch and it always cost you time & money because now there indecisive over the design
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #39 on: November 08, 2010, 02:05:59 14:05 »

For micro-master ... a little last advice: never speak of technical options to your customer!
Very correct, but I realized it now only.
Learning lessons one by one.
As bbarney put it he is just behind me scratching and interfering. Sorry to confess but I revealed my weakness.
No problem, let me see!

Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
sam_des
Senior Member
****
Offline Offline

Posts: 253

Thank You
-Given: 124
-Receive: 146


« Reply #40 on: November 08, 2010, 03:43:36 15:43 »

Hi,

@ micro-master
Quote
If I can bring the range to 0 to 250 Deg. or 10  to 240 Deg or something it will be more useful as well as easy for testing and development.
Well, that's possible. I've checked from 0 to 200 deg. in simulation. With 200 deg it gives o/p of about 2.2V, keeping 0.3V margin with full scale of 2.5V.

Quote
Since ADC has 1024 steps I think .25 Deg Celsius resolution and 256 degree span is possible. (Is there anything wrong in my judgment?) now the span seems to be more spread.
I think it's not possible to have 0.25 deg resolution as it is. Using TL431 ref of 2.5V & 10-bit ADC we have 2.44mV limit on ADC resolution. But note that internal ADCs have +/-1 Bit of accuracy hence we have to double the limit to 4.88mV to be on safer side. Now we barely have 0.5 deg temperature resolution.

@ engamor
Quote
Please, mr.sam_des, do not think I want to deceive you. Your circuit has a few pitfalls. First of all: you cannot claim that it is made for simplicity and cost! Using 3 trimmer resistors is not cheap. Professional trimmer resistors are very very costly, especially after you spend time and resources to adjust them, not to speak of stability.
Hardly true where I live.
Bourns 3006 10-Turn Trimming Pot - +/- 0.05% Resistance Adjustability
                                                 +/- 100ppm/Deg C Temp Coeff
costs nearly 0.5$. With 3, it costs 1.5$ even in very small quantities and is available easily.

ADS1232 - Well I haven't been able to get even a quote from my regular dealer, it's not available. The price mentioned earlier of 4$ is still makes huge difference if units are made in quantities.
But yes, time is certainly a factor to consider.

Quote
Secondly, again, the circuit does not provide for 3wire compensation.
That's absolutely true. But like I said, circuit is not meant for high accuracy.
Another thing is, I've seen countless Process Controllers in Textile industry, Dying industry which don't even use 3 or 4-wire connections to PT100. They simply ignore error of about 1-2 deg.

So I think that while your right, it finally depends on your application and cost your customer is ready to pay.

regards,
sam_des
Logged

Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #41 on: November 08, 2010, 05:00:55 17:00 »

Thanks for the inputs.

Since this thread has become a source for PT100 interfacing material, here is one more.
edit: that info is already there
Microchip AN687
Thanks again
« Last Edit: November 08, 2010, 06:00:39 18:00 by MicroMaster » Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #42 on: November 08, 2010, 07:01:42 19:01 »


@ engamor Hardly true where I live.
Bourns 3006 10-Turn Trimming Pot - +/- 0.05% Resistance Adjustability
                                                 +/- 100ppm/Deg C Temp Coeff
costs nearly 0.5$. With 3, it costs 1.5$ even in very small quantities and is available easily.

Uhm ... I would not claim I can make subtle discussions in English. But this is their price isn't it? I was speaking of cost, in my language it is something different. After you have spent 1.5$ the thing shall be mounted, will take room on your board, will drive you crazy to place all three in a way that people can adjust them ... will stay there waiting to be adjusted by a screw driver ... by some human intelligence ... driven by (written) instructions. And btw ... at 100ppm ... why don't we use them as the temperature sensors?
OK OK, I do not want to start again on a bad discussion, but I'll say the following as a last resource:
I have some 36+ years of experience and I ALWAYS try to make a new design with (at least) today's technology, for the simple reason that my design shall survive tomorrow ... I will not base it on yesterdays' ... despite the fact that I know better yesterday than tomorrow.
Please don't be mad with me!



Logged
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #43 on: November 12, 2010, 09:46:11 09:46 »

Back after a break Smiley

I have created a modified form of Microchip AN687 PT100 circuit.

The circuit works ( not in correct ranges) in proteus.

Don't know weather any practical difficulties or problems with the used op amps.

Please suggest. The output is supposed to be going to a PIC internal 10 bit ADC.

The range is -10 Degree to 246 degrees with .25 resolution. Regarding accuracy, Like to know how much I can expect?

Proteus file also attached.
Please advice
MM

Posted on: November 12, 2010, 03:04:26 15:04 - Automerged

Here is the pdf of the diagram
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
engamor
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 21
-Receive: 13


« Reply #44 on: November 13, 2010, 08:04:00 20:04 »

The proposed circuit is possibly theoretically correct, but I have no time to analyze it in detail for you. The problems with precision=stability and accuracy=error are the same as you can suspect. 1 bit here is worth 0.25°C. A 10 bit internal ADC will not give readings stable down to 1 bit. You will be obliged to  average several readings to overcame this problem. But this shall not be of any trouble. The real problems are twofold: 1) You have no room in the converter resolution  for calibration AND you have no calibration device at all. 2) The stability (mid and long term and environmental) relies on so many components that it is really difficult to make a calculation. You may try and change some critical values and see what happens in Proteus. Try to change the reference value by 0.5% or some resistor value etc. I think you will want your circuit to work on some quasi-industrial temperature range (-20 to 85 at least) that makes for at least 60 degrees of change and a standard 50ppm resistor will change 3000ppm or 0.3% (1024 points are 0.1%) ... well you know what I think of this kind of effort!
Logged
Ichan
Hero Member
*****
Offline Offline

Posts: 833

Thank You
-Given: 312
-Receive: 392



WWW
« Reply #45 on: November 13, 2010, 09:11:40 21:11 »

With 10 bit ADC you better go back to your original range and resolution.

But, as you said if you are getting greedy than use uC with 12 bit ADC - many of them are cheap nowadays (dsPIC/XMega/LPC1xxx/MSP430/etc). For example dsPIC33FJ12GP201 has one channel 12 bit ADC with price tag about $3 or so for single quantity.

You will need to do filtering and averaging on adc reading later.

-ichan
Logged

There is Gray, not only Black or White.
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #46 on: November 15, 2010, 07:20:41 07:20 »

Thanks for the responses.
1) You have no room in the converter resolution  for calibration AND you have no calibration device at all.
You mean the variable resistors I have to use to trim that gain and offsetting resistance values?
Or anything else?
But, as you said if you are getting greedy than use uC with 12 bit ADC
You will need to do filtering and averaging on adc reading later.
-ichan
I can use 12 bit ADC at maximum, but controller only PIC16 or PIC18. MCP3402 12 bit ADC I can use. Or else I will stick with my .5 Deg resolution.
Thanks
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #47 on: November 15, 2010, 12:09:31 12:09 »

Hi MicroMaster;

There is an original Labcenter example project
  (using PT100, a cheap sigma-delta AD and a PIC18 with a GLCD).
  It's source level debuggable (written in Proton basic).
  You can see how to calculate the temp using a PT100.
  To use this you need a real high-accuracy 1 mA current source,
  the project uses only a simulated one.

It's in Proteus Samples\VSM for PIC18\MCP3421 & PIC18 folder

 
However:

I still think (though I only had 45 years of experience in there, engamor :-)
that it is more appropriate in your case a simple analog signal-conditioning
and linearizing circuit (like mine above).


.... a personal note:
  After a little "google-ing" I have found this appnote from MAXIM:
  http://www.maxim-ic.com/app-notes/index.mvp/id/3450
  It's dated at Feb 21, 2005. Have a look at the figure 4 and figure 8.

  It was interesting to see my own linearizer circuit (created in 1981),
  although mine is more complete :-).

  Unfortunately it was not patented (:-), was not possible here.
....


About your problems (with my circuit):

- all the extrem value resistors can be loaded with 2 pieces of
  1% metal film resistors (EIA E96 Codes). Tried!

- as OPAMP you can use for example LMP7701 from NS (or other modern
  low offset opamps), or - horribile dictu - you can use a TL071(081)
  IC with offset adjusting pot.  

- it's possible also the 3 wire measuring (one additional OPAMP
  completely compensates it (I found also the circuits made by me),
  or (small claims) the original circuit can be modified slightly to
  compensate the known resistance of the meas wires.

- I think your system will be used under normal conditions
  (20...25, max. 30 degC), and not under "quasi-industrial" conds ...


And now a little math:

The output of the analog circuit is 10 mV/degC
Using  a 10 bit PIC AD:
 
0.25 x 1023 = 255.75

Apply an external 2.56 (2.5575 :-) V to Vref+ in your PIC16 or PIC18 AD program
(created via 2 res and a pot from the +12v measuring bridge supply
to eliminate its accuracy and stability problems. If you want, substitute later
the pot with fix resistors :-).

So the meas. range is 0 ... 255.75 degC (1 LSB = 0.25 degC)

The displaying is easy:

Read AD (10 bit) to a word variable.
Use its highest 8 bits to get the integer degC values (0...255).
Then use the lowest two bits to add the fract. parts (only for displaying):
(00 = 0.00; 01 = 0.25, 10 = 0.5 11 = 0.75 degC)

For your PID controller you can convert it to float but I don't recommend
this: use the 10 bit value instead, do not use floats if possible.
      
Well, the PIC's AD is not very precise, it has also linearity errors, but
I think it's good enough in your case.


zuisti

PS:
If you want I will send to you the supplemented circuits, too
« Last Edit: November 15, 2010, 01:42:08 13:42 by zuisti » Logged
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #48 on: November 15, 2010, 02:10:29 14:10 »

If you want I will send to you the supplemented circuits, too

Your observations about my project are reasonable.
The digital solution of 24 bit sigma delta ADC is not workable here.
I have a three wire PT100 and OPAMPs like OP07, TL084 etc available here.
The other limitation is how much time you can spare for this!
Thanks a lot.
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #49 on: November 15, 2010, 02:19:53 14:19 »

...
The other limitation is how much time you can spare for this!

Yes, unfortunately I don't have time enough now but I go back soon.

Best 73 :-)
zuisti
Logged
MicroMaster
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 92
-Receive: 87


« Reply #50 on: November 15, 2010, 04:37:07 16:37 »

Best 73 :-)
zuisti
Thanks
DE ...- ..- ..--- -.- -.-. -.-.
Logged

MicroMaster

"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats."
                           Howard Aiken.
Pages: 1 2 3 [All]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC