405 Documentation  9.0
Lab04: Temperature Readings via I2C

Introduction to I2C

In lab04.py the Nucleo collects data from its internal temperature sensor as well as from a connected MCP9808 temperature sensor (lab04_mcp9808.py). Data is collected once every minute and written to a .CSV file on the device. Once started the program will run until the user presses ^C or the user specified runtime is met. After 12 hours all data will be overwritten so that the data file doesn't overflow the chips limited onboard storage. Finally, the data collected by the board is ploted on a host machine using Matplotlib in lab04_ui.py.

(Source: https://bitbucket.org/dhmorse/me-405/src/master/Lab04/)

Temperature Plot

Onboard (orange) and MCP9808 (blue) Termperatures Plotted wrt Time

(Source: https://bitbucket.org/dhmorse/me-405/src/master/Lab04/)

Author
Hunter Morse
Date
Winter 2021