Mechatronics
Documentation for ME 405 labs
Lab0x04

Lab 0x04: Hot or Not?

In this lab we explored the I2C communication protocol by reading temperature values from the mcp9808 temperature sensor made by Microchip Technology Inc. Temperature data was collected for a period of 9 hours and 7 minutes overnight in Perfumo Canyon once every minute. A driver class, mcp9808.TempSensor , was created to abstract the details of the I2C protocol.

Shown below, the core temperature refers to temperature reported by ADC channel 16 and sensor temperature refers to temperature read from the mcp9808.

Temperature data was saved to temps_log.csv on the nucleo and then exported manually to the PC where it was plotted using the generate_plot.py utility. In this lab, we also created a small utility script core_temp.py for logging the core temperature to a file. Note that this file is included here, but was not used as part of the main project.