Notice: This page contains information for the legacy Phidget21 Library. Phidget21 is out of support. Bugfixes may be considered on a case by case basis. Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21. We recommend that new projects be developed against the Phidget22 Library.
|
Data Logging With a Thermocouple: Difference between revisions
No edit summary |
|||
Line 48: | Line 48: | ||
==Introduction== | ==Introduction== | ||
This application guide is all about basic data logging and analysis. | This application guide is all about basic data logging and analysis with Phidgets. The ability to write an automatic data logger is one of the strong advantages to Phidgets - you do not have to take visual readings of a thermometer (or other sensor) and record the readings in a log book manually, rather, you can simply log directly to a computer. | ||
Thermocouples provide a way to inexpensively measure the temperature of a material through physical contact. Although we use thermocouples and a Phidget Temperature Sensor (1048 or 1051) as our Phidget to log data from, basic data logging will be similar for many other Phidgets. | Thermocouples provide a way to inexpensively measure the temperature of a material through physical contact. Although we use thermocouples and a Phidget Temperature Sensor (1048 or 1051) as our Phidget to log data from, basic data logging will be similar for many other Phidgets. | ||
==Phidgets== | ==Phidgets== | ||
To use the code in this Guide, you will need to have a Phidget Temperature sensor and a thermocouple. | |||
Some example ways to set this up are: | |||
{| style="border:1px solid darkgray;" cellpadding="5px;" | |||
|- style="background: #c0c0c0;" | |||
!Setup | |||
!Strengths | |||
|- style="background: #efefef;" | |||
| | |||
*[[1051 - PhidgetTemperatureSensor 1-Input]], plus | |||
*[[3107 - TPK-01 Bead Probe K-Type Thermocouple (-50°C to +200°C)]] | |||
| Basic thermocouple setup | |||
|- style="background: #efefef;" | |||
| | |||
*[[1048 - PhidgetTemperatureSensor 4-Input]], plus | |||
*[[3107 - TPK-01 Bead Probe K-Type Thermocouple (-50°C to +200°C)]] | |||
| Ability to measure multiple points | |||
|} | |||
==Code== | ==Code== |
Revision as of 16:14, 12 April 2012
The project described here is a data recording program for the Phidget Temperature Sensors. We play with the program and record data to learn things about our environment. The emphasis in this project is on passing data and writing to files in different languages, to also learn about data logging in general.
Practical concepts covered are (click on links to see other projects on that topic):
|
As with any of our described projects, Phidgets takes care of the electrical component design. Here, we also provide some simple code so you can play around with your Temperature Sensor and thermocouple, and save the data to plot later.
Time: | About two hours for the basics, four hours for setting up background logging |
Special Needed Tools: | Something hot (tea, your skin), or something cold (ice, etc) |
Materials and Phidgets: | A Phidget Temperature Sensor (1048 or 1051), a Thermocouple, a USB cord, and your computer |
Also:
- You should have already worked through our Phidget Temperature Sensor Getting Started Guide for your Temperature Sensor - this will show you how to get the the Phidget Libraries installed for your operating system.
- Your computer should have at least one of:
- A version of Python 2.6 or later, set up with the Python Phidget Libraries
- A version of Java, set up with the Java Phidget Libraries
- If you are using Linux (or the Phidget SBC), you can also use the gcc C compiler
- Set up the Phidget C libraries on Linux
- Set up gcc for development on the Phidget SBC
- If you would like to follow along with the graphing examples, you can install the R Statistical package, which is free and available for Windows, Mac, and Linux.
Introduction
This application guide is all about basic data logging and analysis with Phidgets. The ability to write an automatic data logger is one of the strong advantages to Phidgets - you do not have to take visual readings of a thermometer (or other sensor) and record the readings in a log book manually, rather, you can simply log directly to a computer.
Thermocouples provide a way to inexpensively measure the temperature of a material through physical contact. Although we use thermocouples and a Phidget Temperature Sensor (1048 or 1051) as our Phidget to log data from, basic data logging will be similar for many other Phidgets.
Phidgets
To use the code in this Guide, you will need to have a Phidget Temperature sensor and a thermocouple.
Some example ways to set this up are:
Setup | Strengths |
---|---|
Basic thermocouple setup | |
Ability to measure multiple points |