Already successfully running an RTL-SDR device (for Flight Tracking) and U-Blox NEO-6M GPS (for GPS/NTP) on my Orange Pi PC Plus, and now wanted to try a BME280 weather chip, but ran into problems talking to it. The 'i2cdetect' seems to be working fine:
However, after many Googles with both C and Python code, I can't seem to successfully talk to this device
In my last attempt (using bme280_sample.py and modifying the reference to 0x76, installing 'smbus2', etc.):
darren@frodo10:~/Downloads$ sudo python bme280_sample.py
Traceback (most recent call last):
File "bme280_sample.py", line 138, in <module>
setup()
File "bme280_sample.py", line 133, in setup
writeReg(0xF2,ctrl_hum_reg)
File "bme280_sample.py", line 19, in writeReg
bus.write_byte_data(i2c_address,reg_address,data)
File "/usr/local/lib/python2.7/dist-packages/smbus2/smbus2.py", line 391, in write_byte_data
ioctl(self.fd, I2C_SMBUS, msg)
IOError: [Errno 6] No such device or address
Does the 'ic2detect' output mean that I have everything wired up properly? Am I close to success?
Question
darethehair
Hello Folks!
Already successfully running an RTL-SDR device (for Flight Tracking) and U-Blox NEO-6M GPS (for GPS/NTP) on my Orange Pi PC Plus, and now wanted to try a BME280 weather chip, but ran into problems talking to it. The 'i2cdetect' seems to be working fine:
However, after many Googles with both C and Python code, I can't seem to successfully talk to this device
In my last attempt (using bme280_sample.py and modifying the reference to 0x76, installing 'smbus2', etc.):
Does the 'ic2detect' output mean that I have everything wired up properly? Am I close to success?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts