i2c BMP sensor - 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: i2c BMP sensor (/showthread.php?tid=3812) |
i2c BMP sensor - bvandijk - 2021-12-20 Hi All, I'm new to this forum, my name is Bas, I have a sailboat in the Netherlands and have been using OpenCPN for a couple of years. Currently trying to upgrade to Pi4 and adding some sensors. I have Openplotter installed (the default stable release from the website) on a Pi4. I want to read a BMP sensor using the Signal K server but I can't get it to work:
Many thanks, Bas RE: i2c BMP sensor - bvandijk - 2021-12-20 BTW: I found this: https://forum.openmarine.net/showthread.php?tid=3542&page=2&highlight=BMP280 and did the hack in the file but the result is still the same. Complete silence in Signal K. RE: i2c BMP sensor - bvandijk - 2021-12-21 Ok, I solved it. So for others that may have the same issue: Apart from the above hack in the file you need to do this: The BMx280 sensor can work on address 76 or 77. Apparently, even though the i2C module from Openplotter sees the 76 address, the library assumes the address to be 77... To get the sensor to work on 77 you need to connect the SDO pin to 3.3V. After I did that, removed the sensor and reinstalled at 77 everything worked. BW, Bas |