| |
| Welcome to myHanse.com the forum for Hanse Yachts owners throughout the world. | |
Wave heave and collision detector! |
Post Reply
|
| Author | |
Pzucchel
Rear Admiral
Joined: 13 March 2020 Location: floating Status: Offline Points: 659 |
Post Options
Thanks(0)
Quote Reply
Topic: Wave heave and collision detector!Posted: 10 February 2025 at 16:37 |
|
Dear All,
profiting of the winter months and learning about AI, i want to release for the first time - here in exclusivity - one of the projects i've been working on. Using a 15.5$ device called M5 Stack AtomS3, 0.8x0.8x0.5 inches in size, 21x21x13mm, that has a sophisticated IMU (Inertial Measurement Unit, three acceleration measurements and 3 gyroscope measurements , 200 times a second) inside, i developed a sensor for our boats that measures the waves Period, their Height and Significant Height (1/3 of the largest waves), records the attitude variations of the boat, records the jerks (e.g. sudden accelerations typical of slamming), and also records over time the possible additional shocks from neighbouring boats while mooring (in conjunction with my other project...stay tuned!). Accidentally, it also provides an approximate sea state according to the Beaufort scale... The code is opensource and available here, including detailed documentation on the way to integrate it on your Wifi, allowing any other systems (e.g. my other project...) to collect and store the data 24/24 7/7 365/365 via NMEA0183. the code has been extensively tested by simulation, being the mathematics quite complex as you can see, and I've also explored other techniques to abandon them after some analysis (read: Fast Fourier Transform), that may be resurrected by real data . I will hopefully improve it further with real-world experience (i want to have vocal alarms triggering limit situations, in particular slamming: i still remember my bow thruster batteries collapsing in the middle of the atlantic...) I can provide further info on my boat installation, and maybe a simpler "ready to go" firmware for those not familiar with the arduino IDE... admittedly , the data are broadcasted: so you need some other system (for example , signalk) to collect the data . Any limitations? for sure! i am not detecting (yet) the waves direction, so i can't compensate for the doppler effect introduced by the boat motion: so the wave period is the APPARENT wave period and not the one indicated by the meteo services. But the boat slams according to the APPARENT wave period, so it's physically significant... ![]() Edited by Pzucchel - 25 February 2025 at 11:58 |
|
|
Hanse588#55
|
|
![]() |
|
Arcadia
Admiral
Joined: 27 November 2017 Location: Sag Harbor, USA Status: Offline Points: 1112 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2025 at 16:15 |
|
Very impressive Piero! I wish I learned a bit more about code and hardware but I guess it’s never too late ? Anyway, a great little device to have onboard. I’m guessing the location of the sensor in the hull could affect the data…maybe best near the center of buoyancy for true height and period? Up and down motion at the bow or stern could give false wave data. Let us know how further testing goes.
|
|
|
Leon / ARCADIA
2018 Hanse 588 Sag Harbor, NY |
|
![]() |
|
Mainer
Lieutenant Commander
Joined: 05 January 2023 Location: Maine Status: Offline Points: 59 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2025 at 17:41 |
|
Awesome — I’m gonna build it!
|
|
![]() |
|
Pzucchel
Rear Admiral
Joined: 13 March 2020 Location: floating Status: Offline Points: 659 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 February 2025 at 06:00 |
hi Leon! it is indeed one of the locations I am going to test. it depends a bit on the purpose...slamming is probably best detected at the bow , waves at the center of gravity. Given the limited cost, I could also put two : the phase of movement may give additional information , in particular the wave direction. but this can be done in a system ...that I am actually building already ! fusion of sensor information with significant computing power can provide something very new in a boat . going to the other exotic ideas , I am thinking to implement one to be integrated in the tricolor light at the top of the mast ! what can be difficult to realise is that such a small device has also significant computing power .I am actually running a madgwick filter (and more ) that integrates 3 acceleration measurements with 3 gyroscope measurements, and you can actually get the precise trajectory of where the device is, 50 times a second (I experimented up to 200Hz) ....so in a sense some locations provide better data ,but if the boat is rigid you can know the movement of any other part! maybe even measure the rigidity of the hull ? to get some idea of where the technology is today , see this : |
|
|
Hanse588#55
|
|
![]() |
|
Pzucchel
Rear Admiral
Joined: 13 March 2020 Location: floating Status: Offline Points: 659 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 February 2025 at 06:02 |
i already have a running plugin for signalk collecting the data, and integrating them into the signalk format . the signalk data are stored in influxdb for permanent storage , for analysis in grafana. while the alarm and control part is done in home assistant ...
Edited by Pzucchel - 12 February 2025 at 06:04 |
|
|
Hanse588#55
|
|
![]() |
|
Black Diamond
Admiral
Joined: 24 October 2015 Location: Newport, RI, US Status: Offline Points: 1275 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 February 2025 at 12:58 |
|
Have you thought about collaborating with someone like B&G to put
this on a display? Just as wind direction and speed are graphed over
time, you could do the same with wave period and other information.
Might be "one more differentiator" for one of the biggies to use.
Suggest you consider a patent if you might. Otherwise the opensource is
going to feed someone else cheap.. :-) |
|
|
Rick
S/V Black Diamond Hanse 575 Build #192, Hull# 161 Newport, RI |
|
![]() |
|
Pzucchel
Rear Admiral
Joined: 13 March 2020 Location: floating Status: Offline Points: 659 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 February 2025 at 13:38 |
|
...I have something bigger coming ...just wait, it's not ready yet ! 🤣
|
|
|
Hanse588#55
|
|
![]() |
|
Pzucchel
Rear Admiral
Joined: 13 March 2020 Location: floating Status: Offline Points: 659 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 February 2025 at 13:40 |
|
BTW I think their attitude systems are doing something similar . I could easily improve the system performance with a 9 degrees of freedom board like the boscho065, and it will cost peanuts ...if somebody is interested in , it's a piece of cake to inject back into nmea2000 the signals and display them onto the b&g...I may do it anyway when I have time.
|
|
|
Hanse588#55
|
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
|
Links : www.hanseyachts.co.uk www.hanseyachts.com www.fjordboats.co.uk www.dehler.co.uk www.varianta.co.uk |