Since we are in learned company, let me expand on things a little bit to give you a better idea of what I'm trying to achieve. It all started off with me wanting to buy a small house somewhere in the sunny southeastern countryside of the UK, where I could settle down and grow old. But despite trying to save up for years, getting even the minimum required 20% deposit together seemed beyond me - house prices kept going up at the same rate I could stash money away. Then Brexit happened and the whole appeal of staying in the UK dropped by something like a country mile. Yes, I'm one of those horrible scrounging EU migrants who've come to rob the UK of its NHS, its jobs, and its unemployment benefits - almost twenty years I've been at it too! I'm really sorry to see the UK go, and think it's a pitiful mistake they've made, but hey, life goes on! The direction of my plans duly, and thoroughly, shifted, I instead decided I'd try and fulfill another one of my life dreams; to live on a houseboat on the canals and rivers of Europe. So I promptly dumped my meagre savings on a rusty old barge, with, in hindsight, perhaps a tad too little hesitation.
That was six months ago, and with said barge now being rather less rusty, courtesy of an extended stay in a very expensive boatyard, it's soon going to be time to start working on the internal fit-out, which of course includes a brand new electrical system. To me, and I'm sure you'll all agree, this is the most interesting part of owning a boat, from a technical perspective: the quirky particulars of minimising power consumption, the plethora of sensors and actuators, the infinite scope for automation and monitoring, the challenging environmental conditions. A houseboat is a veritable geek paradise and I intend to embrace that opportunity fully.
I've spent much of my spare time this winter working on the design of it, going through many iterations and complete re-thinks, and this is the gist of what I've settled on:
The DC electrical system is 12V nominal. I considered 24V, which has some benefits, most importantly the lower cable losses, but 12V won because of the wider availability of cheap components, and the cost and losses of doing 24V > 12V DC/DC conversion. Pretty much any piece of equipment I would like to use is available in a 12V version. Try finding a 24V DAB radio, LCD monitor, or audio amplifier for example. Yes, they exist, of course, but the selection is more limited, and prices are higher. From what I've seen, quality is also lower, unless you're prepared to spend truly stupid amounts of money, or you happen to live in the US, where the trucking industry feeds the 24V market. Many people have tried to convince me I should go for 24V, but I'm sticking with 12V and believe I have good reason to. The only on board device that might challenge this would be a bow thruster, or maybe an electric windlass, but if at some point I would like to fit either there are ways around the cabling problem.
The main ("house") battery bank consists of flooded lead acid cells, around 1kAh capacity. Yes, I am aware of the appealing benefits of other chemistries, and variations on lead acid such as AGM and gel cells, but I've done my research, I've weighed them up(!) against each other, and flooded lead acid is the winner. For me. I have not yet decided on the exact configuration, and whether it will be made up by 12, 6 or 2 Volt units, but for height reasons I'm currently leaning towards four 230Ah 12V beasts in parallel, as these have the lowest height I've been able to find. The diesel engine starter motor will have its own, smaller, 12V battery, which will also be of the flooded type.
There will be at least three energy sources from which this bank is charged:
- The engine alternator
- A shore power battery charger (connected via isolation transformer)
- Two 300W solar panels, with independent MPPT charge controllers
- Possibly, a 300-500W wind turbine of the type commonly used on yachts
There will also be an inverter on board - this is actually part of the shore powered battery charger, a
Mastervolt Mass Combi, which combines a 100A multi-stage battery charger and a 2200W 240V inverter in the same package. This has an RS485 port which will be connected to the "resources" computer (see below), for monitoring charge status of the house bank, shore power availability, and inverter power usage. The shore power feed goes via a
3600VA Victron isolation transformer, to prevent galvanic corrosion. Shore power, when available, apart from running the battery charger, will be used to run a 1kW immersion heater in the hot water supply boiler (which can also be heated from the engine, a
Webasto diesel heater, and
a back-boiler equipped wood burning stove), a dehumidifier and other power hungry 240V devices. I also need 240V, from shore or inverter, to run certain machinery, such as power tools and my OmioCNC router, though on the whole I consider 240V a necessary evil, and the inverter will only be switched on when its needed (speaking of quiescent currents - the inverter draws 750mA no-load).
I'm not going to go into detail about how the 12V system is divided up, not only because it's not very interesting, but also because I haven't finalised those plans yet. What I do know is that all power goes through a main distribution panel, from which each circuit is connected via a thermal circuit breaker, not dissimilar to a house electrical system. There will be load monitoring, but I haven't decided how granular I want this to be (another 1-Wire project is a current monitor). More interesting are my plans for the control and monitoring system, which will consist of three computers:
1. SecurityThis is the only system that is guaranteed to be "always on". It is mounted in the forward cabin, well away from any potential fires and near the ceiling, and has its own 22Ah SLA battery backup, courtesy a very nifty little
OpenUPS charge controller, which allows it to monitor house bank voltage and backup-battery state, and adapt based on available power. This system maintains a 3G/4G connection through a
Sierra Wireless Raven RV50 vehicular router/modem with GPS, and not that much else. Its main task is to provide a way "in" for me while I am not aboard, and to send me alerts via email and SMS should certain events be triggered. The security system controls the power for the other two on board computers, and can boot them up/shut them down as required. In terms of sensors, it is equipped with a minimum of security related inputs:
- Bilge water level sensors
- Fire/smoke detectors
- CO2/gas detectors
- Vibration sensors
- IR movement/intrusion detectors
- Weather instruments
To minimise power usage, and simplify installation, most of these sensors will be using the 1-Wire bus. The exception being the movement/intrusion sensors, since these may need to be responded to immediately. For such time critical sensors I will will use individual I/O pins on the Raspberry Pi.
It will also have 2 to 4 cameras connected via an
IVMech IVPort camera multiplexer. These will be unpowered until requested by sensor input, still image capture schedule, or a remote request for images. In the same power domain sits a
Netgear GS105 five port Ethernet switch, to which the other computers are connected. Real-world testing indicates a 15-20h runtime on the 22Ah backup battery, when fully charged.
2. ResourcesThis control system is embedded in the main power distribution panel, and deals with controlling and monitoring power consumers, such as lights, heating and ventilation, as well as monitoring fuel, fresh water and waste water tank levels. As long as the house bank holds a sufficient level of charge, this system will be operational, allowing remote monitoring of on-board resources as well as scheduled and telemetry triggered lighting and HVAC control. Much wider in scope than the "security" system, this computer is connected to the Mastervolt charger/inverter and the Morningstar MPPT solar charge controllers over RS485, 1-Wire tank level sensors, a multitude of temperature sensors (also 1-Wire), dozens of light and ventilation controllers of the type discussed in this thread as well as individual current sensors on the different 12V circuits. Pretty much anything that can be switched on/off by a button while on board can be automated and remote controlled by this system. I am very tempted indeed to invest in a
Monarco Hat for it, but we'll see.
3. NavigationThe lowest priority system from a power perspective, this system is normally off unless navigating, but can be woken up by "security" should the need arise (for example if while away, I would like to monitor traffic in the area, or listen in to local VHF transmissions). Its responsibilities include anything to do with moving the boat around, including positioning, engine status, and radio communications. It is equipped with its own GPS/Gallileo/GLONASS receiver (
NaviLock NL-8022MU), a
dAISy AIS reciever and an SDR device, yet to be decide upon. It is also connected to various engine telemetry sensors, such as engine and gearbox temperature sensors, oil pressure and RPM, as well as heading, list and trim sensors (a combined fluxgate compass/accelerometer/IMU type thingy). This telemetry data is
combined in OpenCPN, and displayed on a 12" touchscreen LCD in the wheelhouse. Possibly this system will at some point include some kind of autopilot functionality, though I don't know if I could ever trust my Python Fu that far.
All three computers, in addition to their specific task related software, run an instance of Domoticz, with "navigation" and "resources"
sharing their devices with "security" (which can be regarded as the "master" system). In turn, "security" pushes all data to a cloud node over an SSH tunnel (the closest thing to
a static IP on a mobile network unless you're a millionaire), so that this remains available even in a disaster scenario.
There you have it, a basic outline of my crazy plan. Of course I do not intend to build this all as one monolithic project - some of it may never even happen - the plan goes in stages, and I've tried to make the benefits of each stage independent of future plans; I'm a big fan of "loosely coupled" designs, in software as well as hardware. And things are already well under way; I already have working versions of the "security" and "navigation" systems, both of them Raspberry Pi 2s, and much of the core equipment has been purchased - in fact I am looking at its boxes crowding my livingroom while I type this. It's strange but once you own a boat it kind of... takes over your life. In good and bad ways. Hard to explain, like a love affair. At least now you know why I will be pestering this forum with an endless stream of boat related electronics questions going forward
I hope you'll all bare with me.