New I2C sensors supported - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=2) +--- Thread: New I2C sensors supported (/showthread.php?tid=3055) |
RE: New I2C sensors supported - beercansailor - 2020-11-17 Did you also create the actual influx database, in your case "boatDB"? You need to do this only once in the lifetime of your raspberry Pi.
RE: New I2C sensors supported - PaddyB - 2020-11-18 (2020-11-17, 10:48 PM)beercansailor Wrote: Did you also create the actual influx database, in your case "boatDB"? There's actually no need to do that, put a database name in the influxdb writer plugin config and if it doesn't exist the plugin will create it in influxdb and start writing to it. (2020-11-17, 09:19 PM)Didier B Wrote: Yes, indeed ! How can I fill this info ? and where do I find it ? Server>plugin config. Same as in the screenshot. RE: New I2C sensors supported - Didier B - 2020-11-22 Thanks to the helpers for influxdb ! About mysterious I2C info (temperature, atmospheric pressure) disappearing :
RE: New I2C sensors supported - jpaul1 - 2020-11-26 Hello, I have just received one of the Adafruit BMP390 sensors and would like to get it working with Openplotter. I also have a BMP280 and that is working fine, it is connected to a Raspberry Pi with I2C and using the Openplotter I2C 2.2.0 connection However when I connect the BMP390 in the same way using I2C and adding the "BMP3XX" sensor in the I2C screen of Openplotter I am not receiving any data in the SignalK server...? I have been able to connect to the BMP390 and receive the Pressure and Temperature readings from the board by using the Adafruit Python3 "simple test" program https://learn.adafruit.com/adafruit-bmp388-bmp390-bmp3xx/python-circuitpython bmp3xx_simpletest.py although to get it working I did need to change a part of the adafruit_bmp3xx.py program as per the following forum post https://forums.adafruit.com/viewtopic.php?f=60&t=172253&p=840816&hilit=bmp3xx#p840816 So I know that the BMP390 board and I2C wiring is working okay. I am just wondering if the same problem exists in the Openplotter I2C BMP3XX code ie if it is using the same code:- https://github.com/adafruit/Adafruit_CircuitPython_BMP3XX/blob/master/adafruit_bmp3xx.py and hence assuming the CHIP_ID ... _CHIP_ID = const(0x50) (0x50 is correct for the BMP388) when for the BMP390 it should be:- _CHIP_ID = const(0x60) Any help to figure out what is going wrong would be much appreciated... Thanks very much Cheers Jeremy Hi, Update from my earlier post about Adafruit BMP390 Barometric Pressure sensor board... Having amended the local copy of the adafruit_BMP3XX.py on my RPI, I then deleted the Openplotter I2C BMP3XX sensor/connection and reinstalled it... and now it is working perfectly...! So there is an issue with getting the BMP390 to work with Openplotter, but it appears to be an issue with the Adafruit_BMP3XX.py code.. So hopefully they will get it working properly soon.... In the meantime please read the following forum post, or search for BMP390 in the Adafruit Forums... https://forums.adafruit.com/viewtopic.php?f=60&t=172253&p=840831&hilit=bmp390#p840831 Cheers Jeremy RE: New I2C sensors supported - Didier B - 2020-11-26 Once more this afternoon, the disparition of I2C data occurred . This time, I could restore the I2C by simply removing the I2C GND wire, and when I reconnected that wire, all data as shown back (both Piylot and I2C) : no need to switch power off then on again ! RE: New I2C sensors supported - Sailoog - 2020-11-26 (2020-11-26, 03:43 PM)jpaul1 Wrote: Hello, Jeremy, thanks for this debug work. The fastest way to get this solved is reporting it to github so I have created an issue there and we should wait for them to fix this: https://github.com/adafruit/Adafruit_CircuitPython_BMP3XX/issues/12 RE: New I2C sensors supported - Sailoog - 2020-11-26 (2020-11-26, 05:57 PM)Didier B Wrote: Once more this afternoon, the disparition of I2C data occurred . This time, I could restore the I2C by simply removing the I2C GND wire, and when I reconnected that wire, all data as shown back (both Piylot and I2C) : no need to switch power off then on again ! What sensors you have connected? What sensor is failing? What "i2cdetect -y 1" returns when this happens? RE: New I2C sensors supported - Sailoog - 2020-11-26 Jeremy please could you unzip and replace the attached file and report the result? RE: New I2C sensors supported - jpaul1 - 2020-11-26 Hi Wow that was quick... I think I have done what you wanted and it seems to be fine. I unzipped the file, put it in my local directory /usr/local/lib/python3.7/dist-packages/adafruit_bmp3xx.py then I removed the sensor/connection from openplotter I2C and reinstalled the sensor/connection... and it is working fine, and passing data to signalK I hope I have done it right.. Let me know if you need me to check anything else. Kind regards Jeremy RE: New I2C sensors supported - Didier B - 2020-11-27 (2020-11-26, 07:00 PM)Sailoog Wrote:(2020-11-26, 05:57 PM)Didier B Wrote: Once more this afternoon, the disparition of I2C data occurred . This time, I could restore the I2C by simply removing the I2C GND wire, and when I reconnected that wire, all data as shown back (both Piylot and I2C) : no need to switch power off then on again ! Hello Sailoog, sorry for the delay, but it only occurred a few min ago, missing address is 76, but where is the issue : BMP280 part of my GY-91 breakout, or with the I2C app ? I have spare IMU & environmental sensors, I am testing them from now on ! |