This script uses I2C communication to measure ambient temperature with a MCP9808 microchip. More...
Classes | |
| class | me405_lab4.MCP9808 |
Variables | |
| me405_lab4.i2c = pyb.I2C(1) | |
| me405_lab4.MASTER | |
| me405_lab4.baudrate | |
| me405_lab4.tempSensor = MCP9808(i2c, 0x18) | |
| me405_lab4.startTime = utime.ticks_ms() | |
This script uses I2C communication to measure ambient temperature with a MCP9808 microchip.
The me405_lab4.MCP9808 class provides methods for communicating with the MCP9808 chip for measuring the temperature in both Celcius and Farenheit. This script provides an example use of the me405_lab4.MCP9808 to measure the ambient temperature at one minute intervals and record them to a .csv file on the Nucleo.
Link to source code: https://bitbucket.org/ebriefer/me305_lab/src/master/ME405/Lab%204/me405_lab4.py