Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

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)

Dependencies/Prerequisites

$ sudo -i
$ apt update
$ apt install git build-essential cmake

Compiling

$ git clone https://github.com/pvint/MCP9600_Pi.git
$ cd MCP90600_Pi
$ mkdir build && cd build
$ cmake ..
$ make

About

Read Thermocouples using an MCP9600 with a Raspberry Pi

Resources

License

Releases

No releases published

Packages

No packages published