Microchip Technology Inc.’s MCP9808 digital temperature sensor outputs temperatures between -20°C and +100°C with ±0.25°C typical accuracy. https://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf
MCP9808 MANUAL
Often sold on a breakout board, only 4 pins (5v, 0v, SDA and SCL) are used here to connect to the PIC16F88 operating as an I2C bus master.
i2csoftwarediscovery_to_terminal_16f88.gcb (attached) was used to discover the MCP9808 I2C address. This test program uses 48 (30 hex) with address pins untouched (default settings).
MCP9808degPIC16F88.gcb reads the temperature from the MCP9808 and displays it every few seconds onto RS-485 or RS-232 serial connected to a PC terminal.
After startup a few tests of the display mechanics are shown before MCP980 readings are displayed.
Typical test output:
Microchip Technology Inc.’s MCP9808 digital temperature sensor outputs temperatures between -20°C and +100°C with ±0.25°C typical accuracy.
https://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf
MCP9808 MANUAL
Often sold on a breakout board, only 4 pins (5v, 0v, SDA and SCL) are used here to connect to the PIC16F88 operating as an I2C bus master.
i2csoftwarediscovery_to_terminal_16f88.gcb (attached) was used to discover the MCP9808 I2C address. This test program uses 48 (30 hex) with address pins untouched (default settings).
MCP9808degPIC16F88.gcb reads the temperature from the MCP9808 and displays it every few seconds onto RS-485 or RS-232 serial connected to a PC terminal.
After startup a few tests of the display mechanics are shown before MCP980 readings are displayed.
Typical test output:
Last edit: Jon Nelson 2022-06-11
Thanks for sharing. Unfamiliar device, I'll look it up.
Nice piece of work.
I have moved into the demos! See https://github.com/GreatCowBASIC/Demonstration_Sources/tree/main/Temperature_Sensor_Solutions/MCP9808_temperature_solutions
Please review - mods for generic use only.