I have soldered the pins to the bme280 sensor and wired this up to my PI:
Pin 1 - VIn
Pin 3 - SDI
Pin 5 - SCK
Pin 9 - GND
I have checked with a multimeter on the VIn and GND pins and I am getting the 3.3V.
I have enabled the I2C on the raspi-config and have downloaded the i2C-tools.
sudo update in between al these steps and rebooting.
When I type
Code: Select all
sudo i2cdetect -y 1
Code: Select all
root@raspberrypi:~# 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: -- -- -- -- -- -- -- --
Code: Select all
root@raspberrypi:~# ls /dev/i2c*
/dev/i2c-1
root@raspberrypi:~#
Also I have checked:
Code: Select all
root@raspberrypi:~# lsmod | grep i2c
i2c_bcm2835 7167 0
i2c_dev 6913 0
root@raspberrypi:~#
Thanks in advance