MCP9600_Pi
Read temperatures from an MCP9600 - Designed for Raspberry Pi but should function fine for other SBCs
Reference: MCP9600/96L00 Datasheet
Usage Example:
$ ./mcp9600 -a 0x65 -b 1 -A -f 2 -d 200
25.19 23.50
25.19 23.50
25.12 23.38
25.25 23.44
25.25 23.44
25.25 23.44
Options:
-a address (example: -a 0x65)
-b bus (Example, for /dev/i2c-1 use -b 1)
-d delay in ms (Example, to display temperature to STDOUT every 200 ms use -d 200) To display once and exit omit or set to 0.
-f filter value. Set the MCP9600's internal filter from 0 (none) to 7 (max)
-r resolution Set the ADC resolution. 0-3, where 0 is 18bit, and 3 is 12bit)
-t thermocouple type. Set the thermocouple tpye K, J, T, N, S, E, B, or R (Default is K)
-A Display the ambient (cold junction) temperature
-q Suppress normal output, read temperature and exit returning the temperature (as integer)
Compiling
$ cd /usr/local/src
$ git clone https://github.com/pvint/MCP9600_Pi.git
$ cd MCP90600_Pi
$ mkdir build && cd build
$ cmake ..
$ make