BME280 > SignalK no data/gauges - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4) +--- Thread: BME280 > SignalK no data/gauges (/showthread.php?tid=3542) |
RE: BME280 > SignalK no data/gauges - Jay_cd33 - 2022-03-03 (2022-03-03, 11:00 AM)schrammie Wrote: hi all, renze, Not sure what is causing this. Check to make sure the port defined in the "Connections" tab of the I2C app match the port defined in the Signal K Data Connections. See attached. Jay RE: BME280 > SignalK no data/gauges - schrammie - 2022-03-03 jay, Thanks a lot for replying. I did try to run the script but i failed. See picture. I copied and named it bme.py and and run it but is stopped. See foto 9093. By IC@ connections i have 2 because i tried a lot, but both are not working see picture 9091. by signal K you see ic2 and ic201 but at the data browser there is a lot (1 wire and prypilot) but no ic2 (and that is strange because the prypilot is the same board) and i attachted a seperate BME 280 incase. therefore two adresses 0x68 and 0x76 see pictures 9094 and 9095 and the last picture 9096. Iam lost. So thanks a lot. Have the Pican-m too by the way. renze RE: BME280 > SignalK no data/gauges - Jay_cd33 - 2022-03-03 (2022-03-03, 08:11 PM)schrammie Wrote: jay,renze, I'm not sure if I can help. But I will offer some suggestions. Hope they help. 1. I'm not a python wizard but the error message is pointing to the "print" statement. Python is indent and space sensitive so formats make a difference. Check the print statement format it may need indent spaces. 2. Looks like signal K has your connections setup correct. At least the I2C looks right. However on the I2C app connection tab it looks like the BME280 sensor is only defined for the I2C01 connection. BTW the I2C address button above the "connections" tab will show the I2C addresses of the sensors connected(uses i2cdetect). I would only create one BME280 connection to the address of your sensor shown in the I2C addresses. 3. Try executing the following command in a terminal; openplotter-i2c-read see my post; https://forum.openmarine.net/showthread.php?tid=3542&pid=20417#pid20417 If you get a similiar output as I did then your problem is openplotter-i2c-read.py. If that's the case see this post for how to fix it. https://forum.openmarine.net/showthread.php?tid=3542&pid=20441#pid20441 If that is not the case then I'm out of suggestions. Maybe someone else can jump in to help you. Jay RE: BME280 > SignalK no data/gauges - schrammie - 2022-03-04 Jay Thanks again. My problem is i know a little bit of programming Arduino, but not linex nor python. So iam a newby on this terminal. 1. I copied direcly your scipt and put it in text editor and saved it unther the same name in the head directory and then run it with the terminal. You saw the results. So iam not sure what iam doing wrong here. 2. My raspberry (pi 4 8 gb) got stuck last week with installing of the new update from signal K so i started from fresh again. I first tried with 1 sensor after reprogramming the adafruit sentence, but with the same result, so i added the second one, fresh from aliexpress and only the bme280 sensor. But iam connected it on the Pican-M ic2 connector. Is it bettre to connect it directly on the ectension row of the raspberry (btwthats very diffycult because you cant get a wire in with the Pican-M i tried for the 1-wire application)? 3. i tried, but where can i find that one? see picture, but he cant find it. With directory is that one? i tried /usr/lib/python3/dist-packages/openplotterI2c Thanks a lot. renze RE: BME280 > SignalK no data/gauges - Jay_cd33 - 2022-03-04 (2022-03-04, 08:22 AM)schrammie Wrote: Jay renze, 1. I am sorry I can not help you more with your script. 2. There were some problems with the latest Signal K updates, but I thought they were resolved. Search the forum for Signal K updates. 3. The command I suggested in my first link has no spaces in it. However based on your second picture it looks like the openplotter i2c read python script name has changed. The text editor page shown is the correct openplotter i2c read python script. If you execute this script in a terminal window the results may help you diagnose the problem. The editor page does show the library import correction I referenced in my second link. So I do not have any more suggestions. Sorry. Good luck. Jay RE: BME280 > SignalK no data/gauges - sambos76 - 2022-03-05 (2021-08-30, 01:03 AM)Jay_cd33 Wrote: You my friend, are a legend! I, like you, spent hours trying to work this out. Thank you ! RE: BME280 > SignalK no data/gauges - Jay_cd33 - 2022-03-07 (2022-03-05, 12:49 AM)sambos76 Wrote: You my friend, are a legend! I, like you, spent hours trying to work this out. Thank you ! Thanks for the kind words. I only know what I have learned from others here on the forum. Glad it worked for you. Jay RE: BME280 > SignalK no data/gauges - schrammie - 2022-03-07 Jay, Thanks! sry for the delay, i had to paint my boat over the weekend! But iam think iam stuck. So i will try the next strategy: 1. Install a new sd card with new Openplotter, update signalK and start only with the BME280 (not even with the Pincan-m) and hope for the best. or 2. Buying another type off sensor. I want to have pressure, temp (inside) and humilty. So i found on this forum the BMP280. Will this sensor without problems on the I2C connection on the pincan-m add-on board? Does anybody knows? Jay thanks again for the great help!! kind regards renze RE: BME280 > SignalK no data/gauges - Jay_cd33 - 2022-03-07 (2022-03-07, 03:40 PM)schrammie Wrote: Jay, renze, I forgot to ask. Did you enable the I2C interface on your RPi? The I2C interfacec is not enabled by default. You need to enable it before an I2C device will work. Go to; RPi > Preferances > Raspberry Pi Configuration > Interfaces enable I2C Just checking. Jay RE: BME280 > SignalK no data/gauges - schrammie - 2022-03-10 hi jay, THANKS THANK THANKS!!!! Ic2 was/is enable as well as 1-wire. Good news, the new sensor (bmp280) is working fine. No issues at all, see foto's. I don't have humidity but thats for me not important (would be nice, not have to have). In totaly the project is looking like this: Raspberry pi 4 8 gb (second hand because new it's not availble) Pican-M OPENPLOTTER!! 1-wire with 2 sensors for temp outside and reserve ic2 with bmp280 and gy91 [inside, pressure and roll, till, compass (bme280 on the GY-91 thats all the story above about)] Screen AOC 16T2 16 inch touchscreen (be aware the screen needs about 2,5 amp on 5 volts and the raspberry gives only 0,9 amps so you needs 3 wires, 1 power (different 2,5 amp usb socket) 1 touchscreen wire (usb3.0) to raspberry and 1 Micro HDMI to Micro-HDMI and that i could not find. I build in the raspberry behind a cupboard and have now 3 sockets for the screen, 1 HDMI, and 2 USB 3.0. 1 RTL-SDR dongle with mini whip for NAVTEX and weatherfax and SSB-receiver Arduino to the nmea 2000 with sensors for fueltank watertank rpm etc not finished totaly See some pictures, its not finished yet but you get a impression. @ Jay Thanks a lot again. Renze |