Coder Social home page Coder Social logo

Comments (3)

ds2k5 avatar ds2k5 commented on July 28, 2024

after i installed: sudo apt-get install python3-dev
got a next step
but it did not work

cd ~/Adafruit_Python_BMP/examples

$ sudo python3 simpletest.py
Traceback (most recent call last):
File "simpletest.py", line 37, in
sensor = BMP085.BMP085()
File "/usr/local/lib/python3.4/dist-packages/Adafruit_BMP-1.5.2-py3.4.egg/Adafruit_BMP/BMP085.py", line 69, in init
File "/usr/local/lib/python3.4/dist-packages/Adafruit_BMP-1.5.2-py3.4.egg/Adafruit_BMP/BMP085.py", line 72, in _load_calibration
File "/usr/local/lib/python3.4/dist-packages/Adafruit_GPIO-1.0.1-py3.4.egg/Adafruit_GPIO/I2C.py", line 200, in readS16BE
File "/usr/local/lib/python3.4/dist-packages/Adafruit_GPIO-1.0.1-py3.4.egg/Adafruit_GPIO/I2C.py", line 177, in readS16
File "/usr/local/lib/python3.4/dist-packages/Adafruit_GPIO-1.0.1-py3.4.egg/Adafruit_GPIO/I2C.py", line 164, in readU16
File "/usr/local/lib/python3.4/dist-packages/Adafruit_PureIO-0.2.1-py3.4.egg/Adafruit_PureIO/smbus.py", line 173, in read_word_data
OSError: [Errno 70] Communication error on send

sudo i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77

from adafruit_python_bmp.

compasss avatar compasss commented on July 28, 2024

i got the same problem with my orangepi pc
change sensor=BMP085.BMP085() to sensor = BMP085.BMP085(busnum=0)
it works

from adafruit_python_bmp.

ladyada avatar ladyada commented on July 28, 2024

hiya we're closing these issues and archiving this repo because this library has been deprecated!

the bmp085 and bmp180 are no longer made, and are replaced by the bmp280 + friends

we are now only using our circuitpython sensor libraries in python

check out this guide for using the bmp280 with python!
https://learn.adafruit.com/adafruit-bmp280-barometric-pressure-plus-temperature-sensor-breakout

from adafruit_python_bmp.

Related Issues (14)

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.