For this lab you will connect several sensors to the Z8 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 interfaces (I2C, SPI, Analog, PWM). You will need to find the datasheet for each sensor, figure out how to connect it to the Z8, 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.
There are 4 temperature sensors on each board: one analog output, one PWM output, one I2C control, one SPI control. You might want to make reusable libraries for the subcomponents of this lab. Some helpful guidelines:
Minimum lab requirements.
Shown above the the circuit board. Red is the TOP traces and green is the bottom. Note that many but not all devices share a common power and ground connection (makes for less pins on the circuit board). Also note that for each site (A,B,C,D) there are several chip solder pads but only one of these will be used (makes for more compact circuit board (which is cheaper). Some of these sites share common wires.
Shown above is the top view of one board (board 412). Note that there is one part for site A, one for B, one for C and one for D. You will need to carefully study the board, the picture above, the circuit board routing picture and the part datasheet to determine how to connect the pins to the Z8 board.
Shown above is the bottom view of the same board. Notice that there are some traces on the common that complete traces on the top. A simple connection diagram (that you will provide to me for each sensor) and be done using ascii art (no need for a complex schematic), like this example. Some of the sensors are too small to list the full part number on them. For these a shortened nomenclature is used and these can be hard to track down what the actual part number is. Here is a list of the ones that are used for this lab:
If you want to verify the sensors on your board, you can email me with your board number and what sensors you think you have and I can tell you if that is indeed the sensors that I put on that board.
Answer these questions: