Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 11-07-2021, 12:00   #1
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Arduino based anchor watch

I’m working on the software for my anchor watch system. The hardware is an Arduino mega plus lcd and a gps input. ( I may add a nmea2k interface later )

Id like some feedback on my methodology


The basic premise is this

There will be a push button at the wheel , at the designated anchor drop ( or shortly thereafter ) the button is pushed and the anchor watch system records the gps location

A subsequent push then records ( assuming you’ve dug in your anchor the max swing radius.

The system then monitors both the swing radius and the amount of swing angle ( these are adjustable ) ie if you fall out the max swing radius you get an alarm. If you swing through too much angle you also get an alarm.

I may add the ability to communicate this to my iPhone but again this is secondary.

Anything I’ve missed here. The gps uses SBAS to improve the accuracy
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 11-07-2021, 12:13   #2
Registered User
 
TooCoys's Avatar

Join Date: Apr 2016
Location: earth
Posts: 589
Re: Arduino based anchor watch

I have no idea, but take my money!!
TooCoys is offline   Reply With Quote
Old 11-07-2021, 12:16   #3
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Re: Arduino based anchor watch

Quote:
Originally Posted by TooCoys View Post
I have no idea, but take my money!!


The code will be freely available !!
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 11-07-2021, 12:19   #4
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Arduino based anchor watch

The lcd will show a representation of the arrangement , with an anchor symbol at the centre a circle representing the max radius and a boat icon moving inside the maximum swing radius

The whole system is self contained so only it needs to be powered up.
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 11-07-2021, 12:21   #5
Registered User
 
Bill O's Avatar

Join Date: Jul 2015
Boat: Bruce Bingham Christina 49
Posts: 3,328
Re: Arduino based anchor watch

Software sounds very similar to the anchor watch feature in the opencpn Watch Dog plugin.
__________________
Bill O.
KB3YMH
https://phoenixketch.blogspot.com/
Bill O is offline   Reply With Quote
Old 11-07-2021, 12:23   #6
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Arduino based anchor watch

Quote:
Originally Posted by Bill O View Post
Software sounds very similar to the anchor watch feature in the opencpn Watch Dog plugin.


Yes not dissimilar except all you need is a button at the helm. The instrument is positioned belowdecks.

The power is low around 100 mA average @ 12V
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 11-07-2021, 12:30   #7
Registered User
 
Bill O's Avatar

Join Date: Jul 2015
Boat: Bruce Bingham Christina 49
Posts: 3,328
Re: Arduino based anchor watch

Sounds fine. We wait for the anchor to settle in before setting our alarm/watch zone and we set ours down below. Not sure you need the button at the helm function, but could work for some.
__________________
Bill O.
KB3YMH
https://phoenixketch.blogspot.com/
Bill O is offline   Reply With Quote
Old 11-07-2021, 13:09   #8
Registered User

Join Date: Dec 2020
Posts: 750
Re: Arduino based anchor watch

Sounds exactly like any one of dozens of apps available for Android or iPhone.

What’s the advantage of new hardware and connections at 10x the price?
BillKny is offline   Reply With Quote
Old 11-07-2021, 13:20   #9
Registered User
 
TooCoys's Avatar

Join Date: Apr 2016
Location: earth
Posts: 589
Re: Arduino based anchor watch

Quote:
Originally Posted by BillKny View Post
Sounds exactly like any one of dozens of apps available for Android or iPhone.

What’s the advantage of new hardware and connections at 10x the price?

Two reasons.

1. Phones die. Batteries are drained depending on what apps you have running "in the background", and if your phone dies at 2am while you're on anchor, whats going to alert you at 4am when your dragging toward the rocks?

2. Service drops. If I have GPS issues with programs like Waze or Google Maps losing GPS connectivity, whats to say that it wont drop with any one of the dozen apps?
TooCoys is offline   Reply With Quote
Old 11-07-2021, 14:28   #10
Registered User

Join Date: Dec 2020
Posts: 750
Re: Arduino based anchor watch

Quote:
Originally Posted by TooCoys View Post
Two reasons.

1. Phones die. Batteries are drained depending on what apps you have running "in the background", and if your phone dies at 2am while you're on anchor, whats going to alert you at 4am when your dragging toward the rocks?

2. Service drops. If I have GPS issues with programs like Waze or Google Maps losing GPS connectivity, whats to say that it wont drop with any one of the dozen apps?
Two things wrong with your comments.

First, phones do not die if you have them plugged in to a charger. Kind of obvious, but you seem to have missed it. Just like your hardware needs to be plugged in to work.

For an anchor watch app NO data connection at all is required, just a gps signal.

So my question stands…
BillKny is offline   Reply With Quote
Old 11-07-2021, 14:40   #11
Registered User
 
Zanshin's Avatar

Join Date: Feb 2007
Location: Caribbean
Boat: Jeanneau 57
Posts: 2,284
Images: 2
Re: Arduino based anchor watch

I've been programming Arduinos for years and wrote an anchor watch program a long time ago as a small project. I didn't have a piezo-alarm, but apart from that it wasn't difficult to write at all; although choosing an appropriate radius for valid swings at anchor wasn't as trivial as I thought. The Arduino actually uses less power than the GPS device (I used one from Sparkfun) and trying to optimize for power draw took up most of my time.
__________________
Zanshin sailing
Zanshin is offline   Reply With Quote
Old 11-07-2021, 17:06   #12
Registered User
 
Kelkara's Avatar

Join Date: Oct 2016
Location: Vancouver Island
Boat: Hullmaster 27
Posts: 1,044
Re: Arduino based anchor watch

Mine works pretty well. When dropping the anchor, I'm on the bow with hands full of steel, not at the helm with a GPS, so I mark the anchor position while backing down setting the anchor, the position is set by specifying the bearing (look at the compass) and distance to the anchor (approximately the rode length). I can also adjust the anchor position by locating a point on the screen if it seems to be in the wrong place after swinging for a while. Then I set the alarm circle to a little over the rode length. It then maps the swinging pattern on the screen keeping track of the distance and bearing from the anchor point.
Attached Thumbnails
Click image for larger version

Name:	IMG_20200922_091325805.jpg
Views:	71
Size:	395.0 KB
ID:	241927  
Kelkara is online now   Reply With Quote
Old 11-07-2021, 20:38   #13
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Arduino based anchor watch

Thanks folks

In my case there’s always somebody on the helm so the button there is sufficient

I currently use a phone based anchor alarm. But a built in one is simpler to use in the “ heat “ of anchoring with just a button press at the helm.

The hardware cost is a fraction of my iPhone cost ? , about €60 the vast majority being the GPS receiver. The Nmea2k option would let me use my 2K gps , which would reduce the hardware to about €10 !! ( and a 3D printed case ) but I’m not doing the nmea2k option first

Again the primary benefit is the easy setup , two button presses on the helm as you set the anchor
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 11-07-2021, 20:45   #14
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Re: Arduino based anchor watch

Quote:
Originally Posted by Kelkara View Post
Mine works pretty well. When dropping the anchor, I'm on the bow with hands full of steel, not at the helm with a GPS, so I mark the anchor position while backing down setting the anchor, the position is set by specifying the bearing (look at the compass) and distance to the anchor (approximately the rode length). I can also adjust the anchor position by locating a point on the screen if it seems to be in the wrong place after swinging for a while. Then I set the alarm circle to a little over the rode length. It then maps the swinging pattern on the screen keeping track of the distance and bearing from the anchor point.


What’s the hardware ?
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 11-07-2021, 21:10   #15
Registered User
 
Kelkara's Avatar

Join Date: Oct 2016
Location: Vancouver Island
Boat: Hullmaster 27
Posts: 1,044
Re: Arduino based anchor watch

Quote:
Originally Posted by goboatingnow View Post
What’s the hardware ?
Arduino Mega with one of the common 3.5" touchscreen displays, a gps, a buzzer, and a plastic box.


The only real problem is that the screen doesn't have a pin to dim the backlight for night time, and I haven't added an option for a night-mode colour scheme. At the moment it sheds a bit too much light into the cabin at night.
Kelkara is online now   Reply With Quote
Reply

Tags
anchor


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fenix autopilot project - tiller autopilot based on Arduino spascual90 Marine Electronics 70 16-05-2023 14:21
Arduino based Alternator Regulator Project wayne.b Electrical: Batteries, Generators & Solar 11 11-03-2021 10:16
Camera-based Night Watch montyp Marine Electronics 10 10-10-2019 07:21
Arduino software for navigation/boats vtomanov Navigation 2 11-09-2016 11:43
A DIY barograph based on an Arduino shield PauloOnArbutus Marine Electronics 5 23-01-2016 04:58

Advertise Here


All times are GMT -7. The time now is 12:21.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.