0

At the moment I am trying to get readings of pressure from a BMP180 on a Raspberry Pi (OS : Noobs)

So far, I have been successful with connecting the device with the pins and the I2C is detecting the BMP180.

When I check using i2cdetect this is shown:

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 

which most likely means that the BMP180 is connected properly and I successfully enabled I2C.

However when I try to run the example code of the Adafruit_Python_BMP on the github page this error is shown:

Traceback (most recent call last):
  File "simpletest.py", line 37, in <module>
    sensor = BMP085.BMP085()
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_BMP-1.5.4-py3.7.egg/Adafruit_BMP/BMP085.py", line 69, in __init__
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_BMP-1.5.4-py3.7.egg/Adafruit_BMP/BMP085.py", line 72, in _load_calibration
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_GPIO-1.0.4-py3.7.egg/Adafruit_GPIO/I2C.py", line 202, in readS16BE
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_GPIO-1.0.4-py3.7.egg/Adafruit_GPIO/I2C.py", line 179, in readS16
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_GPIO-1.0.4-py3.7.egg/Adafruit_GPIO/I2C.py", line 166, in readU16
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_PureIO-1.1.5-py3.7.egg/Adafruit_PureIO/smbus.py", line 224, in read_word_data
OSError: [Errno 121] Remote I/O error

The tutorials/websites I used were these: https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi/using-the-adafruit-bmp-python-library https://www.instructables.com/id/Raspberry-Pi-Weather-Station-3/

Diagram that I used as a guide to connect the BMP180: Diagram

Please note that I did not solder the pins but they are embedded in the breadboard and the wires are connected as shown in the diagram.

Am I missing something or is there a solution to this please?

11
  • 1
    Welcome to the forum. NOOBS is a loader not the O/S - You can tell the version of the O/S by the command cat /etc/os-release. Did you run the test program using sudo or just as Pi?
    – user115418
    May 20, 2020 at 21:20
  • 1
    Check your connections and add clear photos. The error is a typical symptom of loose or erratic connections.
    – joan
    May 20, 2020 at 21:43
  • 1
    @Andryroo I ran both sudo using the terminal and pi and both yield the same errors.
    – GarXik
    May 20, 2020 at 21:54
  • 1
    @joan This can be the problem since I did not solder my BMP180. As for the pictures I will include a diagram that I used as a guide and edit the post.
    – GarXik
    May 20, 2020 at 21:55
  • 1
    Have a look at stackoverflow.com/questions/52735862/… - different device but possibly a similar problem...
    – user115418
    May 20, 2020 at 22:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.