Coder Social home page Coder Social logo

adafruit_python_mcp9808's Introduction

DEPRECATED LIBRARY Adafruit Python MCP9808

This library has been deprecated!

we are now only using our circuitpython sensor libraries in python

we are leaving the code up for historical/research purposes but archiving the repository.

check out this guide for using the mcp9808 with python! https://learn.adafruit.com/adafruit-mcp9808-precision-i2c-temperature-sensor-guide

Python library for accessing the MCP9808 precision temperature sensor on a Raspberry Pi or Beaglebone Black.

Designed specifically to work with the Adafruit MCP9808 sensor ----> https://www.adafruit.com/product/1782

To install, first make sure some dependencies are available by running the following commands (on a Raspbian or Beaglebone Black Debian install):

sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus

Then download the library by clicking the download zip link to the right and unzip the archive somewhere on your Raspberry Pi or Beaglebone Black. Then execute the following command in the directory of the library:

sudo python setup.py install

Make sure you have internet access on the device so it can download the required dependencies.

See examples of usage in the examples folder.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Tony DiCola for Adafruit Industries. MIT license, all text above must be included in any redistribution

adafruit_python_mcp9808's People

Contributors

brennen avatar dhalbert avatar ladyada avatar tdicola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit_python_mcp9808's Issues

Receiving IO error when trying to run the example.py using Raspberry Pi B+

Hey!

I'm running into an issue when trying to run the example.py. I get the following error

pi@raspberrypi ~/servos $ sudo python MCP9808_example.py 
Traceback (most recent call last):
  File "MCP9808_example.py", line 44, in <module>
    sensor = MCP9808.MCP9808()
  File "build/bdist.linux-armv6l/egg/Adafruit_MCP9808/MCP9808.py", line 64, in __init__
  File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 66, in get_i2c_device
  File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 95, in __init__
IOError: [Errno 2] No such file or directory

For a little debug info for the Adafruit_GPIO library, here's my platform info :

pi@raspberrypi ~/servos $ python
Python 2.7.3 (default, Mar 18 2014, 05:13:23) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_GPIO.Platform as Platform
>>> Platform.platform_detect()
1
>>> Platform.pi_revision()
2
>>> 

My setup is documented below :

20151208_233919
20151208_233908
20151208_233858
20151208_233844

Following guide breaks YouTube on Raspbian Jessie on pi 3

Would there be any relation to installing the packages listed in the MCP9808 rasp pi guide and youtube failing to play videos? Youtube has been working all morning and the only thing I've done is follow the guide to get the libraries installed for the sensor and now youtube no longer functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.