Skip to content Skip to navigation

Connexions

You are here: Home » Content » LED Thermometer Lab

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

      What are tags? tag icon

      Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

    • External bookmarks
  • E-mail the author
  • Rate this module (How does the rating system work?)

    Rating system

    Ratings

    Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

    How to rate a module

    Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

    (0 ratings)

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • National Instruments display tagshide tags

    This module is included in aLens by: National InstrumentsAs a part of collection:"Electronics Experiments Using USB Data Acquisition"

    Comments:

    "This set of six student labs are designed to allow anyone to recreate simple experiments at home to explore electronics and electrical engineering concepts. The software and hardware utilized is […]"

    Click the "National Instruments" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

LED Thermometer Lab

Module by: Casey Weltzin

Summary: 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.

LED Thermometer Lab Using National Instruments Low Cost Data Acquisition

Introduction

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.

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).

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.

Pre-Lab Assignment

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.

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).

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.

4) Become familiar with the National Instruments USB 6008 and 6009 data acquisition devices. These datasheets are available at www.ni.com.

Theory

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.

Below are several views of the LM34CZ in a TO-92 package:

Figure 1
(a) LM34CZ Sensor (b) Sensor Pinout
Figure 1(a) (Graphic1.png)Figure 1(b) (Graphic2.png)

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.

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.

Figure 2: Temperature - Voltage Relationship
Figure 2 (Graphic3.png)

To visualize this relationship, a graph sensor output voltage vs. temperature can be plotted using LabVIEW:

Figure 3: Output Voltage Vs. Temperature Data
Figure 3 (Graphic4.png)

Hardware and Software Required

  1. (4) red LEDs
  2. (4) 220 Ohm resistors
  3. LM34CZ temperature sensor IC
  4. National Instruments Low Cost USB DAQ
  5. LabVIEW 8.20 software (LabVIEW 7.1 or 8.0 will work as well)

Laboratory Exercise

During this exercise, the experimenter will construct an LED thermometer that resembles the following:

Figure 4: LED Thermometer Front Panel in LabVIEW
Figure 4 (Graphic5.png)

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.

Figure 5: LED Connection Schematic
Figure 5 (Graphic6.png)

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.

Figure 6: Temperature Sensor Schematic
Figure 6 (Graphic7.png)

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.

Figure 7: LED Thermometer Block Diagram in LabVIEW
Figure 7 (Graphic8.png)

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!

Post-Lab Questions

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.

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?

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.

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.

Comments, questions, feedback, criticisms?

Send feedback