2024-05-26, 08:08 AM
(This post was last modified: 2024-05-26, 08:10 AM by ALROCHARARI.)
(2024-05-14, 05:34 PM)Sailoog Wrote: 4 I2C ports???? why? you can connect all your sensors to 1. If you are doing that because your sensors have the same address the solution is setting diferent addresses or using a multiplexer currently supported by openplotter.
Example of adding more sensors to openplotter-i2c: https://github.com/openplotter/openplott...9de4a3f5f2
BNO085 is not recommended for Raspberry. This is the list of IMUs supported by Openplotter (openplotter-pypilot): https://openplotter.readthedocs.io/en/3....t/imu.html
Will do it this way. Make more sense.
Thanks a lot.
(2024-05-14, 07:43 PM)mgrouch Wrote:(2024-05-14, 02:40 PM)ALROCHARARI Wrote: Hello,
I'm using OpenPlotter with I2C 4.1.0 on a RPI 5 8Gb.
I have configured 4 IC2 ports for 6 devices.
I can only find the 2 devices connected to port 1.
pi@RPI-NAV-01:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77
pi@RPI-NAV-01:~ $ i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- 4a -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@RPI-NAV-01:~ $ i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@RPI-NAV-01:~ $ i2cdetect -y 4
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Questions:
- How to enable I2C 4.1.0 to read the other ports too.
- How to add other sensors like Adafruit BNO085 to calculate wave heights, wave frequencies, direction changes, ...
Thanks for your help.
Best regards,
Raoul
To calculate wave height you need to integrate vertical acceleration using Kalman filter.
For frequency measurement you could use Aranovskiy frequency estimator which is also
online filter (or do whole Fourier FFT) and you will need to adjust it for Doppler effect.
For direction of waves you need to play on phases of 3 different accelerometers
mounted in different locations on a boat.
You can get ideas from this link:
https://bareboat-necessities.github.io/m...-math.html
There I reach my limits
Will apply the suggestion to use suggested sensor first and see if I can make it work correctly.