DIY Remote Monitoring System

Apr 25, 2024
322
Fuji 32 Bellingham
Last fall, I designed a system that allows me to remotely monitor conditions on my boat. I'm not the first person to do this, but I didn't love the options. So, I built my own because I am nerdy like that.

We had a couple of very minor incidents that motivated this project. In one case, we were without shore power (someone had unplugged us) for some time over the winter, and we had quite a bit of mildew, as a result. The second (and more motivating) incident was that our cockpit drains became clogged with dog hair (which we produce a lot of) and bits of shell donated by the resident seagulls. We came to our boat to find the cockpit with about 6" of standing water.

So, my system is fairly simple:
  • I have a WiFi hotspot on the boat that is also run on a small battery backup. This provides WiFi to the boat.
  • I made a small RPi-based server that is also on the battery backup.
  • I added a few sensors that talk to the server:
    • A GPS sensor. Not really useful, but I had a spare one sitting around, so why not?
    • Moisture sensors: Used to detect moisture (such as standing water in the cockpit) or surface moisture (like in the area under my stanchions, indicating a deck leak)
    • Temperature/humidity sensors: Tells me that I am out of the "mildew zone" and also indirectly tells me when I have lost shore power.
  • I have an off-site server that collects data from the boat. The boat reports data periodically to this server. This allows me to access the latest data, even if my boat goes completely offline. I can see when it happened and possibly why. Also stores historical data, just in case I ever care about that.
  • My off-site server also is capable of sending SMS. So, I am alerted if temp/humidity go out of a certain range, or if a moisture sensor is activated.
1742932680933.png

(Note, the water sensors are currently offline because I shut them off a few days ago.)

I will be able to add, but have not gotten around to yet:
  • Movement sensor: Will tell me if my boat is taking a beating in the wind.
  • Camera: Will allow me to check in remotely, look at conditions, etc. I might incorporate two-way audio so I could talk to a person remotely - not because I think this will ever be useful but because I sometimes can't help myself but to overengineer.
  • Remote distribution panel: Will allow me to check the status of all circuits and turn things on/off. (This is actually somewhat involved because I want the basic manual operation to be absolutely independent of the automation. That is, a physical on/off switch should be just that - physical. That's a whole other discussion.)
  • Pretty much any sensor/switch/control you could think of.
This was all conceived when our boat was (temporarily) stored about 40 minutes away, and getting there was inconvenient enough that we did not check on our boat frequently enough. We recently transferred to a slip about 10-15 minutes away. So, now it is mostly just a toy to satisfy my inner nerd.

This system, as it is designed, is not suitable for the average DIYer. That is, it is not documented or packaged up in such a way that the average person could easily figure out how to use it. It's not particularly complicated. In fact, I think I've made some good design decisions. It just was never intended for use by anyone but me, with no intent to set it up more than once.

But, I've had a few people ask about getting this on their boat.

It doesn't feel like the world needs this, but maybe I'm wrong. If there was a lot of interest, I might devote some time to making an open-source product out of it - something that a reasonably technical person could figure out without getting too mad at me.

There are a bunch of commercial systems for this, but I can't stand paying for something that I can build myself for less, probably better, and have complete control over. And, there are some open source options which make me think that the world doesn't really need my solution. That is, if you wanted do put together your own system, it wouldn't take much know-how. You could pretty much just use HomeAssistant and/or SignalK (or any of a few other options) to accomplish a similar thing. The only thing my solution really offers above what is currently out there are:
  • You own the whole process, so you don't have to pay a commercial subscription that could change or become unreliable at any time with nothing you can do about it. This is non-proprietary, unlike commercial options.
  • It is designed narrowly for this application, unlike HomeAssistant and even unlike SignalK, to some degree. That said, those are excellent platforms and absolutely can accomplish the same thing.
  • My sensors are specifically designed for a marine environment. For example, the moisture sensors are designed such that they can be submerged, abused, and neglected for extended periods. This is the one thing that I think might actually have some value to the community.
  • The system has a lot of redundancy and is fault-tolerant and self-healing. It is designed on the assumption that things will go wrong, and I don't want to have to drive out just to reset/fix the system that is supposed to be watching other systems.
Is there actually a demand for this sort of system that is not met by current options? My sense is that there isn't a lot of demand for this sort of system - at all - and that any such demand is pretty well met.
 

ShawnL

.
Jul 29, 2020
146
Catalina 22 3603 Calumet Mi
There may be more demand than you think. I'm on a mooring during the season and have had a camera on the boat for years (wyze). It's powered off of the battery bank and a 100watt solar panel -- I will admit that for my Catalina 22 it's overkill. I had thought about a RPI monitoring system, but decided that the cam was enough -- it also tells us what the conditions are like before we head down to the boat, which is nice.

I probably have too much battery, and too much solar. But, it's also really helped with peace of mind. Last year we had some vandalism in the mooring field -- law enforcement thinks it's critters, but we don't buy it. Boats were set free from their moorings several times, and none of the line damage looks like it was from a critter. Never managed to catch anyone on camera, but if I had more battery and more cameras, maybe. That's not really the point.

If you're away from your boat and you have a monitoring system, you have peace of mind that everything is ok. If it isn't, you can make a plan to deal with the issue. When my boat is in my back yard for the winter, there's a web cam in there so that I can keep an eye on things. Is the cover flapping too much, do I see daylight where I shouldn't, are there rodents, etc.
 
Apr 25, 2024
322
Fuji 32 Bellingham
Yeah, I can see where in your area, it would be more important. I think that the marinas are pretty easily accessible to the public. (I have family in Ironwood, so have a little familiarity with the area.) Critters and vandalism are pretty low on my list of worries. To get to my boat, you have to go through the locked gate (not that hard) and walk about 10 miles of dock (uphill both ways) past a bunch of liveaboards. Then, turn the corner and walk past about 50 more boats and decide to stop and mess with my boat and not half-dozen or so big expensive yachts within a few steps of my boat. We're so far out that the seagulls don't even bother coming out to poop on us.
 
  • Like
Likes: maxi95
May 17, 2004
5,541
Beneteau Oceanis 37 Havre de Grace
I undertook a similar DIY project a few years ago and have kept refining it over the winters. I have a Pi and a Pico onboard to monitor things like bilge pump runs, voltages, current, temperatures, tank levels, and VOCs (in case of propane leaks). It puts all that on my NMEA bus so I can see it from my chartplotter, and gathers all the chartplotter data so I can save it for later analysis of things like boat speed vs wind speed and angle. The Pi runs SignalK but I mainly just use that to save all the data in an InfluxDB database on the Pi. I also send the data to a SQL database in my house, and I run Grafana there to visualize all the data either from the InfluxDB on the Pi or the SQL database. I run HomeAssistant in my house for general home automation and it can pull in the data too for automated notifications.

I live less than 10 minutes from the boat but I still really like having it. Several times it’s reminded of things like forgetting to turn on the shore power circuit breaker when getting back from a sail, and I did have a hose clamp start failing once that I got bilge pump notifications for.

A couple years ago I wanted to learn more about git so I took the opportunity to document the project on GitHub - GitHub - davidasailor/PiForBoat
 
  • Like
Likes: Jan_H
Mar 27, 2024
15
Hunter 39 Wickford
This is something that I've been wanting to do but haven't had the time. Would be a fun project. I have a Victron Cerbo that I can pull battery voltage, solar status, I added a bilge pump alert and a remote on / off for the refrigerator do I can reduce the power loads during multiple cloudy days and not getting enough solar to keep up. Your system sounds nicer. I would like to add a camera as well.
 
Jul 8, 2012
137
Catalina 36 MKII North East
If you have the Cerbo and a way to stay connected to the internet (cellular wifi or Starlink) check out Smartboatinnovations.com
Rob at smart boat wrote and updates necessary code, he uses Home Assistant as the interface to the data. In addition to monitoring data from the Cerbo other sensors, switches, cameras, etc can be set up pretty easily.
I use Shelly 1 relays for temperature monitoring and remote switching. They operate on 12 volts and communicate on wifi so they are simple to hook up anywhere on the boat.
In addition to monitoring all the Cerbo data I can get the NMEA 0183 and N2K information. Engine temperatures are monitored with a Shelly and analog gauges - oil pressure, tachometer are converted to digital and available on a Home Assistant dashboard.
 
Last edited:
Jun 14, 2010
2,286
Robertson & Caine 2017 Leopard 40 CT
I use a cheap cellular-capable router Amazon.com with a prepaid TMobile SIM card. It’s powered by the boat’s inverter and I have excess solar capacity to keep things going.
I monitor the exterior with Reolink 4k cams on my topshrouds and cabin top, and the interior with Ring cams.
I monitor the environmentals with X-sense monitors for temp/humidity and leak detectors https://a.co/d/8O772pN.
I have an old retired smartphone on the boat’s WiFi running AquaMaps remote anchor alarm (a function of the app) for location tracking and alerting.
Edit: Also have the Victron Cerbo connected, to monitor/manage batteries and charging
 
Last edited:
  • Like
Likes: LloydB
Mar 27, 2024
15
Hunter 39 Wickford
If you have the Cerbo and a way to stay connected to the internet (cellular wifi or Starlink) check out Smartboatinnovations.com.
Rob at smart boat wrote and updates necessary code, he uses Home Assistant as the interface to the data. In addition to monitoring data from the Cerbo other sensors, switches, cameras, etc can be set up pretty easily.
I use Shelly 1 relays for temperature monitoring and remote switching. They operate on 12 volts and communicate on wifi so they are simple to hook up anywhere on the boat.
In addition to monitoring all the Cerbo data I can get the NMEA 0183 and N2K information. Engine temperatures are monitored with a Shelly and analog gauges - oil pressure, tachometer are converted to digital and available on a Home Assistant dashboard.
Thanks that looks interesting
 
Jan 7, 2011
5,442
Oday 322 East Chicago, IN
I also installed a Raspberry zip on my boat, but more for a redundant nav display. I used it to “keep tabs” on my boat also…

1) My RPi is tied into my Chart plotter and N2K system, so can display wind info (speed & direction), heading, etc. I could remote into my RPi and display this info on my remote screen (home or mobile device). If the boat moved too far, I would expect the direction to change. I can also see speed, so if someone stole it, I would see where they are heading.

2) I put a security camera in the cabin, which I can manipulate and look around. I can watch the battery monitor to see how my SOC is looking, a temperature/humidity screen and I can point it at the sole and see if there is any water in the bilge. Or I can point it out the companionway window and see what the weather looks like.

Not high-tech, but gives me an idea what is happening when I am not at the boat.

Greg
 
Jun 14, 2010
2,286
Robertson & Caine 2017 Leopard 40 CT
One more thing you might consider adding: a motion sensor activated LED flood light in the cockpit to deter intruders. Thieves and vandals prefer the cover of darkness.

--Peggie
My Reolink cams have bright floodlights, and record video to the cloud with 4k image quality. The interior Ring cam also records 2k images straight to cloud and after a few seconds delay it announces on its speaker: "You are being recorded". Both have IR recording and switch to full color when the light goes on. Even if they destroy the cam it's too late unless they were prepared with a mask.
 
Last edited:
Jan 7, 2011
5,442
Oday 322 East Chicago, IN
One more thing you might consider adding: a motion sensor activated LED flood light in the cockpit to deter intruders. Thieves and vandals prefer the cover of darkness.

--Peggie
Maybe it could scare off the spiders!

Like Captain Larry, my camera includes a speaker (I could yell at an intruder) a siren, and infrared recording if it is dark.

Turning the light on the camera creates too much glare trying to film out through the companionway in the dark though.

Greg
 
Jun 14, 2010
2,286
Robertson & Caine 2017 Leopard 40 CT
I recently had an incident where a mechanic I had hired visited my cockpit in an “unscheduled visit”. The boat is on the hard and he had to climb a ladder, at around 5:30 or 6pm (it was after dark in winter). I received the motion alert from the cam and took a look. He had finished with his work for me about 2 months earlier, and through the camera’s speaker I asked him what he was doing there. He said he was following up on a message to check the battery switch and “got confused” and went to the boat of the “wrong Larry”:facepalm:. Yes, a little suspicious but I know there’s another Larry in the boatyard. Told him to have a nice night. :huh:
Bottom line - it’s comforting to have the surveillance. PS - I have video monitoring alert stickers on the transom steps and the boatyard is happy to have the extra cameras around.
 
Jul 8, 2012
137
Catalina 36 MKII North East
How often do you need to remotely monitor engine data?

Mark
Mostly I use it for logging to have the ability to look at RPM, oil pressure, temperatures over time. It is also useful for setting alarms in Home Assistant such as low oil pressure, high temperature, etc. Engine hours also send a reminder for oil changes.
Alarms and reminders can show up on computer, iPad, iPhone, email, text and most likely other ways.