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:
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?
cat /etc/os-release
. Did you run the test program using sudo or just as Pi?