Tag Archives: i2c

A Python class for the MCP9801 Temperature Sensor

Having brought a couple of Temperature Sensors based on the Microchip Technology MCP9801 to use with my Rasperyy Pi. I decided to see if I could write a simple class to encapsulate the code needed to control them.

Posted in Hardware, Linux | Tagged , , | Leave a comment

Setting up I2C on a Raspberry Pi

How to load the necessary kernel modules, configure user access, and install the necessary packages to allow python programs to use the I2C bus is documented in several different places. I just thought I’ll pull together the various steps I … Continue reading

Posted in Hardware, Raspbian | Tagged , , | Leave a comment

Enabling the I2C bus on a Raspberry Pi

As I just re-discovered after reinstalling Raspbian, by default only the superuser can access the I2C bus. (This may not be the case if you are using one of the official pre-installed SD card images).

Posted in Hardware, Programming, Raspbian | Tagged , , | Leave a comment