Thermocouples are a cost effective, widely available solution for temperature monitoring.
Thermocouples come in many different flavors corresponding to different temperature ranges and accuracies. The table below summarizes the different types and their temperature ranges:
Thermocouple Type | Temperature Range (°C) | |||
---|---|---|---|---|
Cold Junction | Thermocouple | |||
Low | High | Low | High | |
Type B | 0 | 125 | 250 | 1820 |
Type E | -55 | 125 | -200 | 1000 |
Type J | -55 | 125 | -210 | 1200 |
Type K | -55 | 125 | -200 | 1372 |
Type N | -55 | 125 | -200 | 1300 |
Type R | -50 | 125 | -50 | 1768 |
Type S | -50 | 125 | -50 | 1768 |
Type T | -55 | 125 | -200 | 400 |
In VS Code to go the simpleproject folder and create a new .py file called TC_Read.py
Open up this file and copy in the following code block.
from edgepi.tc.edgepi_tc import EdgePiTC
from edgepi.tc.tc_constants import ConvMode
# initialize thermocouple
edgepi_tc = EdgePiTC()
# set thermocouple to single sample mode
edgepi_tc.set_config(conversion_mode=ConvMode.SINGLE)
# make a single temperature measurement
temps = edgepi_tc.single_sample()
print(temps)