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 59: | Line 59: | ||
{| style="border:1px solid darkgray;" cellpadding="5px;" | {| style="border:1px solid darkgray;" cellpadding="5px;" | ||
|- style="background: #c0c0c0;" | |- style="background: #c0c0c0;" | ||
!Setup | !Example Setup | ||
!Strengths | !Strengths | ||
|- style="background: #efefef;" | |- style="background: #efefef;" | ||
Line 71: | Line 71: | ||
*[[3107 - TPK-01 Bead Probe K-Type Thermocouple (-50°C to +200°C)]] | *[[3107 - TPK-01 Bead Probe K-Type Thermocouple (-50°C to +200°C)]] | ||
| Ability to measure multiple points | | Ability to measure multiple points | ||
|- style="background: #efefef;" | |||
| | |||
*[[1051 - PhidgetTemperatureSensor 1-Input]], plus | |||
*[[3110 - TPK-01H Bead Probe K-Type Thermocouple (-50°C to +785°C)]] | |||
| Wide temperature range thermocouple | |||
|} | |} | ||
Of course, these are only examples - any thermocouple with either Temperature Sensor Phidget board will work. | |||
We will log data from thermocouple port 0. On a one-input board, this is the only thermocouple input; on a four-input board, make sure you have a thermocouple plugged in to port 0: | |||
[[Image:App guide templogger 1048Leads.png|600px|link=|alt=]] | |||
Then: | |||
* Make sure you have followed the ''Getting Started'' guide [[Device List|for your Phidget]] | |||
* Make sure you have the programming language libraries that you want installed | |||
* Plug the USB in to your computer | |||
* Continue on to the next section and start writing code! | |||
==Code== | ==Code== |
Revision as of 16:22, 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:
Example Setup | Strengths |
---|---|
Basic thermocouple setup | |
Ability to measure multiple points | |
Wide temperature range thermocouple |
Of course, these are only examples - any thermocouple with either Temperature Sensor Phidget board will work.
We will log data from thermocouple port 0. On a one-input board, this is the only thermocouple input; on a four-input board, make sure you have a thermocouple plugged in to port 0:
Then:
- Make sure you have followed the Getting Started guide for your Phidget
- Make sure you have the programming language libraries that you want installed
- Plug the USB in to your computer
- Continue on to the next section and start writing code!