This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C port configurable
#9
(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


Reply


Messages In This Thread
I2C port configurable - by hreuver - 2020-03-08, 05:59 PM
RE: I2C port configurable - by Sailoog - 2020-03-09, 11:35 AM
RE: I2C port configurable - by hreuver - 2020-03-09, 11:01 PM
RE: I2C port configurable - by Sailoog - 2020-03-10, 05:00 PM
RE: I2C port configurable - by hreuver - 2020-03-14, 04:05 PM
RE: I2C port configurable - by sebba - 2021-05-04, 04:33 PM
RE: I2C port configurable - by ALROCHARARI - 2024-05-14, 02:40 PM
RE: I2C port configurable - by mgrouch - 2024-05-14, 07:43 PM
RE: I2C port configurable - by Sailoog - 2024-05-14, 05:34 PM
RE: I2C port configurable - by ALROCHARARI - 2024-05-26, 08:08 AM
RE: I2C port configurable - by TWBoats - 2024-06-02, 11:00 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)