<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_plain.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9435056">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">LED Thermometer Lab</name>
<metadata xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">
  <md:version xmlns:bib="http://bibtexml.sf.net/">1.2</md:version>
  <md:created xmlns:bib="http://bibtexml.sf.net/">2006/08/13 18:28:02 GMT-5</md:created>
  <md:revised xmlns:bib="http://bibtexml.sf.net/">2006/08/17 15:09:18.159 GMT-5</md:revised>
  <md:authorlist xmlns:bib="http://bibtexml.sf.net/">
      <md:author xmlns:bib="http://bibtexml.sf.net/" id="crweltzin">
      <md:firstname xmlns:bib="http://bibtexml.sf.net/">Casey</md:firstname>
      
      <md:surname xmlns:bib="http://bibtexml.sf.net/">Weltzin</md:surname>
      <md:email xmlns:bib="http://bibtexml.sf.net/">crweltzin@wisc.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist xmlns:bib="http://bibtexml.sf.net/">
    <md:maintainer xmlns:bib="http://bibtexml.sf.net/" id="crweltzin">
      <md:firstname xmlns:bib="http://bibtexml.sf.net/">Casey</md:firstname>
      
      <md:surname xmlns:bib="http://bibtexml.sf.net/">Weltzin</md:surname>
      <md:email xmlns:bib="http://bibtexml.sf.net/">crweltzin@wisc.edu</md:email>
    </md:maintainer>
    <md:maintainer xmlns:bib="http://bibtexml.sf.net/" id="eluther">
      <md:firstname xmlns:bib="http://bibtexml.sf.net/">Erik</md:firstname>
      <md:othername xmlns:bib="http://bibtexml.sf.net/">B</md:othername>
      <md:surname xmlns:bib="http://bibtexml.sf.net/">Luther</md:surname>
      <md:email xmlns:bib="http://bibtexml.sf.net/">erik.luther@ni.com</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist xmlns:bib="http://bibtexml.sf.net/">
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">DAQ</md:keyword>
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">LED</md:keyword>
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">temperature</md:keyword>
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">thermometer</md:keyword>
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">transducer</md:keyword>
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">USB</md:keyword>
  </md:keywordlist>

  <md:abstract xmlns:bib="http://bibtexml.sf.net/">This exercise provides an introduction to temperature transducer measurement as well as data acquisition. The LED Thermometer Lab is designed as a labratory or at-home experiment. Low Cost National Instruments Data Acquisition products are used to to provide a power supply and measure data from a temperature sensor IC.</md:abstract>
</metadata>
<content xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">
<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9460447">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">LED Thermometer Lab Using National Instruments Low Cost Data Acquisition</name>
<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6203570">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Introduction</name>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id2435240">One common measurement that scientists and
engineers like to make is temperature. For example, it may be
necessary to record the temperature of a biology experiment, a heat
testing chamber for electronics, or a jet engine.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id8866305">In order to convert temperature information
into electrical form, a transducer is needed. A temperature
transducer is simply a sensor that will allow the user a mechanism
to detect a temperature change (increasing or decreasing voltage,
current, resistance, etc).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id7377201">During this exercise, the experimenters will
use the integrated circuit LM34CZ temperature sensor to output a
linear, temperature dependent voltage. This voltage will be
digitized by a Low Cost USB DAQ so that measurements can be taken
on a computer. Finally, a LabVIEW virtual instrument (VI) will be
created in order to visualize sampled data and control several
LEDs.</para>
</section>
<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id8828634">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Pre-Lab Assignment</name>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9671755">1) Many types of temperature sensors exist,
including RTDs, thermocouples, thermistors, and ICs. Use any
resources available (textbooks, the web, etc) to research each type
of transducer and prepare a short written summary of each.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9313852">2) Find and print the datasheet for the LM34CZ
temperature sensor using Google. By reading the datasheet, can you
determine how we will measure temperature with this IC? Write a
formula relating temperature and sensor output voltage (this should
be fairly simple).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id8756937">3) Suppose we were using the LM35 temperature
sensor instead. Obtain the datasheet and write a second formula
relating temperature and sensor output voltage for the LM35.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6577178">4) Become familiar with the National
Instruments USB 6008 and 6009 data acquisition devices. These
datasheets are available at 
<link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" src="http://www.ni.com/">www.ni.com</link>.</para>
</section>
<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6454252">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Theory</name>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6369672">One method to measure temperature involves
using an integrated circuit transducer such as the LM34CZ. This IC
will generate a voltage that is linearly proportional to the
measured temperature. Compared to other measurement methods, ICs
provide an extremely linear output with very little error. They are
also one of the simplest temperature sensors to connect and
use.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6230157">Below are several views of the LM34CZ in a
TO-92 package:</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6494374"><subfigure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="subfig1">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic1.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> LM34CZ Sensor </caption>
</subfigure>
<subfigure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="subfig2">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic2.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> Sensor Pinout </caption>
</subfigure></figure>

<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9702859">As the experimenter can see, the LM34CZ is a
three-terminal device. Two pins are used for power (+Vs and GND),
while the third pin is used to output a temperature dependent
voltage.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9469937">Since the LM34CZ outputs a voltage that is
linearly dependent with temperature, it is easy to compute measured
temperature from sensor output voltage or vice versa. In fact, the
LM34CZ ideally outputs exactly 10mV / deg F.</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9711225"><media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic3.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> Temperature - Voltage Relationship </caption></figure>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9709710">To visualize this relationship, a graph sensor
output voltage vs. temperature can be plotted using LabVIEW:</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9636641"><media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic4.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> Output Voltage Vs. Temperature Data </caption></figure>
</section>

<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id10000000">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Hardware and Software Required</name>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="id10000001"><item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> (4) red LEDs </item>
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> (4) 220 Ohm resistors </item>
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> LM34CZ temperature sensor IC</item>
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> National Instruments Low Cost USB DAQ</item>
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> LabVIEW 8.20 software (LabVIEW 7.1 or 8.0 will work as well)</item>
</list>
</section>

<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id7407409">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Laboratory Exercise</name>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6473576">During this exercise, the experimenter will
construct an LED thermometer that resembles the following:</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9744560"><media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic5.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> LED Thermometer Front Panel in LabVIEW </caption></figure>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id7402027">1) In order to create the LED thermometer
output, Connect LEDs and resistors to the digital output lines of
the Low Cost USB DAQ as shown below. Each LED will be programmed to
light up when the temperature exceeds a certain threshold.</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id2739577"><media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic6.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> LED Connection Schematic </caption></figure>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9461801">2) To measure the temperature, connect the
LM34CZ IC to the Low Cost USB DAQ as shown below. Note that the +5V
supply needed by the IC can be obtained directly from the National
Instruments USB 6008 or 6009.</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id3485905"><media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic7.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> Temperature Sensor Schematic </caption></figure>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9595664">3) Using the DAQ Assistant Express VI, create
the following LabVIEW block diagram. In this virtual instrument
(VI), temperature data is acquired using the Low Cost USB DAQ,
scaled, and displayed on a chart. The temperature measurement is
also compared with several thresholds. Once the temperature exceeds
each threshold, a corresponding physical LED and front panel LED
will light up.</para>
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9725749"><media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="Graphic8.png"/>
<caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/"> LED Thermometer Block Diagram in LabVIEW </caption></figure>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6186846">4) Run the VI and adjust the threshold levels
so that several LEDs light up. Warm up the temperature sensor by
squeezing it with your fingers and observe the rise in measured
temperature on the front panel chart. You have now succeeded in
creating an LED thermometer!</para>
</section>
<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9606055">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Post-Lab Questions</name>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9616207">1) Did the measured temperature levels match
what you expected? If the temperature is warmer or cooler than you
expected, elaborate on possible sources of error.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id8859150">2) Look at the LED Thermometer VI created
above, and determine how often temperature measurements are being
taken. Why wouldn’t you want to take room temperature measurements
at a faster rate such as 1 MHz?</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id8648852">3) If you were incorporating the LM34CZ
temperature sensor into a shipping product, what would you do to
calibrate the sensor? Outline the process you would go through to
make your temperature measurements more accurate.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9829767">4) How could you modify the LabVIEW virtual
instrument above to output a Centigrade or Farenheit temperature
depending on user input? Assume you are using the same LM34CZ
temperature sensor.</para>
</section>
</section>
</content>
</document>
