2024-05-14, 07:43 PM
(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
Download BBN Marine OS for raspberry pi
https://bareboat-necessities.github.io/m...at-os.html
Video of actual installation:
https://www.youtube.com/watch?v=3zMjUs2X3qU
https://bareboat-necessities.github.io/m...at-os.html
Video of actual installation:
https://www.youtube.com/watch?v=3zMjUs2X3qU