Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| daq-and-datalogging:documents:measuring-thermocouples-with-raspberry-pi [2023/06/14 05:36] – [Measuring Thermocouples with Raspberry Pi® and the MCC 134] Scandiweb | daq-and-datalogging:documents:measuring-thermocouples-with-raspberry-pi [2023/07/27 21:33] (current) – Arthur Brown | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== TechTip: | + | ====== TechTip: Measuring Thermocouples with Raspberry Pi® and the MCC 134 ====== |
| - | + | ||
| - | ===== Measuring Thermocouples with Raspberry Pi® and the MCC 134 ===== | + | |
| **Introduction** | **Introduction** | ||
| Thermocouples are a popular way to measure temperature due to their low cost, ease-of-use, | Thermocouples are a popular way to measure temperature due to their low cost, ease-of-use, | ||
| - | **How thermocouples work** | + | **How Thermocouples Work** |
| <WRAP group> | <WRAP group> | ||
| <WRAP twothirds column>A thermocouple is a sensor used to measure temperature. It works by converting thermal gradients into electrical potential difference - a phenomenon known as the Seebeck effect. A thermocouple is made of two wires with dissimilar metals joined together at one end, creating a junction. Because two dissimilar metal wires create different electric potentials over a temperature gradient, a voltage is induced in the circuit that can be measured.</ | <WRAP twothirds column>A thermocouple is a sensor used to measure temperature. It works by converting thermal gradients into electrical potential difference - a phenomenon known as the Seebeck effect. A thermocouple is made of two wires with dissimilar metals joined together at one end, creating a junction. Because two dissimilar metal wires create different electric potentials over a temperature gradient, a voltage is induced in the circuit that can be measured.</ | ||
| - | <WRAP third column> | + | <WRAP third column> |
| </ | </ | ||
| Line 18: | Line 16: | ||
| **Note:** the hot junction refers to the measurement junction and not its temperature; | **Note:** the hot junction refers to the measurement junction and not its temperature; | ||
| - | {{https:// | + | {{https:// |
| + | |||
| + | **Thermocouple Measurement Fundamentals** | ||
| - | Thermocouple measurement fundamentals | ||
| Thermocouples produce a voltage relative to the temperature gradient - the difference between the hot and cold junction. The only way to determine the absolute temperature of the hot junction is to know the absolute temperature of the cold junction. | Thermocouples produce a voltage relative to the temperature gradient - the difference between the hot and cold junction. The only way to determine the absolute temperature of the hot junction is to know the absolute temperature of the cold junction. | ||
| While older systems relied on ice baths to implement a known cold junction reference, modern thermocouple measurement devices use a sensor or multiple sensors to measure the terminal block (cold junction) where thermocouples connect to the measurement device. | While older systems relied on ice baths to implement a known cold junction reference, modern thermocouple measurement devices use a sensor or multiple sensors to measure the terminal block (cold junction) where thermocouples connect to the measurement device. | ||
| - | Sources of thermocouple errors | + | **Sources of Thermocouple Errors** |
| Thermocouple measurement error comes from many sources, including noise, linearity and offset error, the thermocouple itself, and measurement of the reference or cold junction temperature. In modern 24-bit measurement devices, high-accuracy ADCs are used, and design practices are implemented to minimize noise, linearity and offset errors. | Thermocouple measurement error comes from many sources, including noise, linearity and offset error, the thermocouple itself, and measurement of the reference or cold junction temperature. In modern 24-bit measurement devices, high-accuracy ADCs are used, and design practices are implemented to minimize noise, linearity and offset errors. | ||
| Thermocouple error cannot be avoided but can be minimized. | Thermocouple error cannot be avoided but can be minimized. | ||
| Line 31: | Line 31: | ||
| Accurately measuring the cold junction, where the thermocouples connect to the device, can be a challenge. | Accurately measuring the cold junction, where the thermocouples connect to the device, can be a challenge. | ||
| - | Design | + | **Design |
| To better understand the design challenges of the MCC 134, let's compare it to the design of MCC's popular E-TC — a high-accuracy ethernet connected thermocouple measurement device. | To better understand the design challenges of the MCC 134, let's compare it to the design of MCC's popular E-TC — a high-accuracy ethernet connected thermocouple measurement device. | ||
| The IC sensor design works well in the MCC E-TC because the measurement environment is controlled and consistent. The outer plastic case controls the airflow and the electronic components and processors operate at a constant load. In controlled environment of the E-TC, the IC sensor does an excellent job of measuring the cold junction temperature accurately. | The IC sensor design works well in the MCC E-TC because the measurement environment is controlled and consistent. The outer plastic case controls the airflow and the electronic components and processors operate at a constant load. In controlled environment of the E-TC, the IC sensor does an excellent job of measuring the cold junction temperature accurately. | ||
| Line 39: | Line 40: | ||
| MCC redesigned the MCC 134 with an improved scheme that provides far better accuracy and repeatability while keeping the cost low. Instead of using an IC sensor and one terminal block, MCC redesigned board with two terminal blocks and three thermistors — one placed on either side and in between of the terminal blocks (shown below). Although this added complexity to the design, the thermistors more accurately tracked the temperature changes of the cold junction, even during changes in processor load and environmental temperature. | MCC redesigned the MCC 134 with an improved scheme that provides far better accuracy and repeatability while keeping the cost low. Instead of using an IC sensor and one terminal block, MCC redesigned board with two terminal blocks and three thermistors — one placed on either side and in between of the terminal blocks (shown below). Although this added complexity to the design, the thermistors more accurately tracked the temperature changes of the cold junction, even during changes in processor load and environmental temperature. | ||
| - | {{https:// | + | {{https:// |
| This design yields excellent results that are far less susceptible to the uncontrolled Raspberry Pi environment. Even with this new design, however, certain factors affect accuracy, and users can improve their measurement results by reducing quick changes in temperature gradients across the MCC 134. | This design yields excellent results that are far less susceptible to the uncontrolled Raspberry Pi environment. Even with this new design, however, certain factors affect accuracy, and users can improve their measurement results by reducing quick changes in temperature gradients across the MCC 134. | ||
| **Best practices for accurate thermocouple measurements using the MCC 134** | **Best practices for accurate thermocouple measurements using the MCC 134** | ||
| + | |||
| The MCC 134 should achieve results within the maximum thermocouple accuracy specifications when operating within the documented environmental conditions. Operating in conditions with excessive temperature transients or airflow may affect results. In most cases, the MCC 134 will achieve the typical specifications. In order to achieve the most accurate thermocouple readings, MCC recommends the following practices: | The MCC 134 should achieve results within the maximum thermocouple accuracy specifications when operating within the documented environmental conditions. Operating in conditions with excessive temperature transients or airflow may affect results. In most cases, the MCC 134 will achieve the typical specifications. In order to achieve the most accurate thermocouple readings, MCC recommends the following practices: | ||
| - | | + | * Reduce the load on the Raspberry Pi processor. Running a program that fully loads all 4 cores on the Raspberry Pi processor can raise the temperature of the processor above 70 °C. Running a program that only loads 1 core will operate approximately 20 °C cooler. |
| - | *Minimize environmental temperature variations. Place the MCC 134 away from heat or cooling sources that cycle on and off. Sudden environmental changes may lead to increased errors. | + | * Minimize environmental temperature variations. Place the MCC 134 away from heat or cooling sources that cycle on and off. Sudden environmental changes may lead to increased errors. |
| - | *Provide a steady airflow, such as from a fan. A steady airflow can dissipate heat and reduce errors. | + | * Provide a steady airflow, such as from a fan. A steady airflow can dissipate heat and reduce errors. |
| - | *When configuring multiple MCC DAQ Hats in a stack, position the MCC 134 farthest from the Raspberry Pi board. Since the Raspberry Pi is a significant heat source, placing the MCC 134 farthest from the Pi will increase accuracy. | + | * When configuring multiple MCC DAQ Hats in a stack, position the MCC 134 farthest from the Raspberry Pi board. Since the Raspberry Pi is a significant heat source, placing the MCC 134 farthest from the Pi will increase accuracy. |
| | | ||
| | | ||
| - | **Conclusion**\\ | + | **Conclusion** |
| Thermocouples provide a low-cost and flexible way to measure temperature, | Thermocouples provide a low-cost and flexible way to measure temperature, | ||
| - | More Information\\ | + | **More Information** |
| - | Please contact Measurement Computing Corporation if you have any questions or if you would like any further information. | + | |
| - | Knowledgebase: [[https://kb.mccdaq.com/Default.aspx | kb.mccdaq.com]]\\ | + | Please reach out to our support team on the Digilent Forum if you have any questions: [[https://forum.digilent.com/]] |
| - | Phone: 508-946-5100\\ | + | |
| - | Fax: 508-946-9500\\ | + | Additional TechTips are available |
| - | Additional TechTips are available | + | |

