(2023-06-13, 08:54 PM)amckeown Wrote: [ -> ]I have a question on I2c connections. I have the i2c turned on in the pi, and installed from settings. Wanting to monitor inside temperature and humidity with a bmp 280.
Had it hooked up last year on the old version, got it set up but never got data. This year in version 3 the I2C setup page is dead. Have two different manufacturers sensors and both act the same.
just wondering if the I2C routine is not active yet, or I've made a mistake somewhere.
latest openplotter, Pi 4b, pi-can M hat now hooked up to the Pi.
Thanks
Alan
Hi Alan
Firstly you can't measure humidity with a BMP280, they only support pressure and temperature (and derived altitude of course). You'll need a BME280 for the three readings.
I don't understand when you say the I2C page is dead, can you elaborate?
I am using I2C 3.3.12 on a Pi 4 and have just set up a BMP280 as a test and it works fine. I've too many screenshots of the process to fit in one post so first let me try to explain by text:
In a terminal window run the command to find the address of your BMP280:
You should (probably) see a 76 in the output grid which is the typical BMP280 address but it may differ on occasions but it would be uncommon.
Go to Openplotter>I2C and you will see a message at the bottom of the page saying the access request must be aproved (sic) etc
Go to Openplotter>Signal K and log in with the admin credentials. If you haven't already set this up then enable it now and log in.
Under the Security Tab you will see Access Requests at the bottom, click that, click the entry in the Identifier row, select NEVER and Read/Write in the Authentication Timeout and Permissions Respectively. Then Approve.
Go to Openplotter>I2C and in the Sensors Tab click Add
Under Supported sensors click BMP280 and Detected addresses 0x76 (assuming yours is on that address), click OK
You should now see two lines, one yellow, one white. Left click on the white one and it turns grey, click Edit. Under Signal K key type environment.inside.temperature and hit OK. Now both lines are yellow.
Go to Openplotter>Signal K>Data Browser and you see the data for pressure and temperature.
I'll add a few screenshots in the hope it helps, I think the max is 5 in one post.
Good luck