Temperature Sensor Interface

For the temperature sensor interface assignment we will be interfacing a FPGA development board with an external temperature sensor. Depending on the type of development board you are using you will either be using an external ADC chip or the internal XADC (Xilinx).

  1. Verify that your 7 segment display is working properly.
  2. Convert the ADC readings from the embedded processor to millivolts and compare the results to an actual Multi-meter.
  3. Use the printf() statements to help debug when working with the soft-core processors.

Setup

If your development board has a 4-digit on-board 7 segment display such as the BASYS 3 development board you can just use that. Otherwise you will need to connect an external 4 digit 7 segment display. See the schematic setup below:


See the BOM below for components I used during the demonstration of this lab.


Verification

To verify that your design is working properly use a thermometer to see how accurate the temperature reading is. If you notice that the Celsius and Farenheight conversions are working but the actual temperature reading seems high, check the ADC and verify what the ADC is reporting back as well as the reference voltage.