![]() |
|
Waveshare BME280 I2C send no data - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: Waveshare BME280 I2C send no data (/showthread.php?tid=3895) |
Waveshare BME280 I2C send no data - Fred90 - 2022-01-28 Hello Members, I have an issue with Waveshare BME280 sensor. My openplotter is up to date with latest available software installed. It is well detected by the openplotter I2C and I'm able to get data from it using a python script running on my RPi4. But, regarding SignalK, there is no communication and data. Do you have any advice for me? Regards, RE: Waveshare BME280 I2C send no data - Jay_cd33 - 2022-01-28 Fred90, I believe the problem is with the openplotter I2C app that reads the BME280 sensor and sends the data to signalK. The Adafruit Library for this sensor was updated last year and the I2C app has not been updated. Take a look at my post linked below. I think it will fix your problem. https://forum.openmarine.net/showthread.php?tid=3542&pid=20441#pid20441 You might make a backup of the file before editing as suggested in a follow on post. Good Luck, Jay RE: Waveshare BME280 I2C send no data - Fred90 - 2022-01-28 (2022-01-28, 10:38 AM)Jay_cd33 Wrote: Fred90, Hi Jay, Thanks for your answer. I saw your post before to post this question. I tried but it did not solve my issue. Just adding two tabs :from adafruit_bme280 [tab][tab]import basic as adafruit_bme280 was generating a syntax error when runing the script openplotterI2cRead.py So I put a newline between the two import, no syntax error anymore. But no I2C data too ![]() But as you say, maybe installing an older version of adafruit lib may solve the issue... Regards, RE: Waveshare BME280 I2C send no data - Jay_cd33 - 2022-01-28 (2022-01-28, 11:10 AM)Fred90 Wrote:(2022-01-28, 10:38 AM)Jay_cd33 Wrote: Fred90, Fred90, Just to make sure you have the syntax correct... The new line should be: [tab][tab]from adafruit_bme280 import basic as adafruit_bme280 Just a single [space] between "adafruit_bme280" and "import". Jay RE: Waveshare BME280 I2C send no data - Fred90 - 2022-01-28 (2022-01-28, 11:50 AM)Jay_cd33 Wrote:(2022-01-28, 11:10 AM)Fred90 Wrote:(2022-01-28, 10:38 AM)Jay_cd33 Wrote: Fred90, Great, it was late yesterday and I did a mistake. Your fix is working. Thanks a lot for your time! |