Closed inlovewithsilver closed 2 years ago
Hi @inlovewithsilver , thank you for using my program!
How about the result of "$ i2cdetect -y 1"? I think the address of your sensor is differnt from the address(0x77) in the program. My result as follows, 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- 1d -- -- 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 3f 40: -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77
Probably, yours is 0x76. If so, you need to modify modules/sensor/i2c/BMP280.py. The address is specified in the line 62.
original: SENSOR_ADDRESS = 0x77 modified: SENSOR_ADDRESS = 0x76
Sincerely,
It works! The problem is just as you said, and thank you for giving me the solution. You are awesome!
@inlovewithsilver . Glad it worked! Enjoy!
Hi, hishi, hope you are doing well. I'd like to firstly appreciate your work, but something going wrong with my I2C sensor - BMP280. For some reason I couldn't buy the product like Adafruit and SparkFun Qwiic SHIM for Raspberry Pi (https://www.sparkfun.com/products/15794), so I use GY-BMP280-3.3 as substitution. While I connecting the VCC, GND, SCL and SDA pins with Raspberry Pi (and CSB, SDO are left vacant), bikecomputer seems not have receive the data form BMP280, and the demo mode shows:
Is my connection wrong or the configuration is not completed? Looking forward to your solution, thanks again.