I am trying to connect an Adafruit BMP280 with i2c to Raspberry Pi 3. I have been able to connect it to the pi, and it shows up when I run the command: i2cdetect -y 1
$ i2cdetect -y 1
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
But when I run the command around 10-15 minutes later, I get nothing:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I saw in another post (https://raspberrypi.stackexchange.com/questions/56775/i2c-disconnecting-after-while) that this could be a problem that the "Pi [is] dying because you are feeding 5V from your LCD into SDA pin." As far as I can tell, both devices run at 3.3 volts, besides the 5v input from the pi that I am using to power the BMP280. (Which uses a voltage regulator to the board runs at 3.3 volts.)
Also, if I unplug all of wires, then reconnect them, the rpi detects the device.
Any help or possible solutions would be greatly appreciated!