Temperature Sensor Lab Version 2

For this lab you will connect several temperature sensors to the Z16 board, figure out how to access them, configure each sensor and then read the sensor value. I will give you several temperature sensors that use various serial interfaces (I2C, SPI, Analog, PWM, 1-wire). You will need to find the datasheet for each sensor, figure out how to connect it to the Z16, how to configure it, and how to read the sensor value. You will then write a program that will read the sensor and display the value. You must use the floating point library and convert all sensor readings into a float. You will need to modify your display library to display floating point numbers. Your program will continuously read from a sensor and display the result on the LED display. You can write a separate program for each sensor.  The smallest sensor is too small to contain the full patr number, instead it is marked "CNCT" but is infact a TC77 sensor.


There are 5 temperature sensors in each collection (I2C, SPI, Analog, PWM, 1-wire). You might want to make reusable libraries for the subcomponents of this lab. Some helpful guidelines:

  • Record the part number for each sensor.
  • Find the data sheet for each sensor.
  • Look up the pin out of each sensor.
  • Examine the PCB routing to see which pins on the circuit board are connected to each sensor.
  • Figure out how to connect each sensor to the Z8 board. You may only have enough wires to connect one sensor at a time.
  • Review the sample programs that came with the IDE for examples of how to use the Z8 on-chip peripherals for some of the sensors. Don't cut/paste but use them as guidelines. Write your own programs.

Minimum lab requirements.

  • Identify all 5 components by part number and type (I2C, SPI, Analog, PWM, 1-wire). 
  • Provide connection diagram for all 5 sensors.
  • Select at least 3 sensors from which you will read the temperature.
  • Write programs that reads and displays the current temperature from the 3 sensors you selected.
  • Answer questions below.

Answer these questions:

  • What is the full part number for each of the 5 sensors?
  • How do you know that CNCT is also TC77 (other than I told you so)?
  • Any problems finding the datasheets or getting the necessary information?
  • Which 3 sensors did you choose to implement?
  • Which sensor was the easiest to configure and use? Why?
  • Which sensor was the most difficult or temperamental?
  • What techniques did you to use help you debug your programs?
  • Did you need any pull up resistors? Why?