User Tools

Site Tools


tempcontroller:sensor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tempcontroller:sensor [2010/03/03 22:17]
ladyada
tempcontroller:sensor [2016/01/28 18:05]
Line 1: Line 1:
-====== Temperature sensing ====== 
  
-To build a feedback controller, you'll need a way to measure the error. This measurement is done by the sensor! In this case, we're controlling a temperature system so we need a temperature sensor. Theres a few options out there, each one good for certain applications,​ so we'll go through the different kinds and what we can expect 
- 
-====== But first... ====== 
- 
-A note about '​precision'​! 
- 
-The feedback controller uses the error in the output to determine what action to take. That means that the error has to be as '​correct'​ as possible. Its way more important to spend $ on a good temperature sensor than on a controller or heater. (Not that those are not important things either but if you had an extra $1...) Why? Because if your sensor accuracy varies by ±2°C then it doesn'​t matter too much if your controller has 0.1°C precision. 
- 
-{{:​tempcontroller:​500px-accuracy_and_precision.svg.png|http://​en.wikipedia.org/​wiki/​Accuracy_and_precision}} 
- 
-(From the very nice [[http://​en.wikipedia.org/​wiki/​Accuracy_and_precision|Wikipedia article on accuracy and precision]] 
- 
-===== Accuracy ===== 
- 
-This is what most people mean, its how close the sensor is to "Real Temperature"​. If a sensor is inaccurate to ±1°C that means that a measurement of 25°C (assuming everything else is perfect) could be anywhere between 24-26°C ​ 
- 
-Something that is inaccurate can sometimes be '​fixed'​ by calibrating it against a precise & accurate sensor. 
- 
-===== Precision ===== 
- 
-Precision is how '​repeatable'​ that measurement is - so if you have that ±1°C accuracy sensor and its precise to 0.1°C then a measurement of 25°C could '​really'​ be 24.3°C (because thats within the accuracy) but every time you get a reading of 25°C it will be no greater than 24.4C or smaller than 24.2°C - precision is the **consistency** of measurements. 
- 
-If a sensor is imprecise, theres really not much you can do about it. A precise but inaccurate sensor can be calibrated, but each one must be calibrated individually since the inaccuracy changes from one to another. 
- 
-====== 
- 
-So what is more important? Well, if you don't care what the temperature is, but you want to make sure it stays the same (steady) then precision is more important than accuracy. If you want the temperature to be exactly correct, then you need accuracy (and of course precision). ​ 
- 
-You may be able to calibrate sensors, if they are inaccurate, but it depends on whether the inaccuracy is consistant over the range ('its always 1°C too high') which makes it easy. Or if the inaccuracy varies ('its sometimes 1°C too high and sometimes 1°C too low'). Of course, if you have a digital lookup table and a precise but inaccurate sensor you are good to go - just tabulate each entry you want with the actual reading 
- 
-====== Different sensors to choose from! ====== 
- 
-Here are the most common sensors we'll look at 
- 
-===== Thermocouples ===== 
- 
-==== Accuracy & Precision ==== 
- 
-K type thermocouples have accuracy of 2°C (±1°C) and precision of about 0.5°C 
- 
-Because the voltages across the wires are so small (in the uV range!) the precision probably has more to do with your amplifier and any hash (noise) pickup than with the thermocouple itself. 
- 
-==== Range ==== 
- 
-K thermocouples can be used from -350 to 1350 - a huge range which is basically the big plus  
- 
-==== Amplifiers & Interfaces ==== 
- 
-The [[http://​www.maxim-ic.com/​quick_view2.cfm/​qv_pk/​3149|MAX6675]] has a resolution/​precision of 0.25°C 
- 
-==== Pricing ==== 
- 
-Thermocouples themselves can be had for cheap - we've seen K-type for $3/each. They'​re also incredibly common, available anywhere you can get a multimeter (multimeters often have them as probes) 
- 
-The expensive part is the amplifier - unless you're going to build your own (which is hard, you need extremely low bias and low offset input amplifiers) the chips will cost you about $13 
/home/ladyada/public_html/wiki/data/pages/tempcontroller/sensor.txt · Last modified: 2016/01/28 18:05 (external edit)