My plan for a remote boat monitor

fifer

Well-Known Member
Joined
12 Apr 2013
Messages
353
Visit site
Inspired by the excellent work of others on this forum I've been looking into how I might create a boat monitor for remotely measuring useful parameters such as battery voltage, temp etc.

I've stumbled across The things network which is an open facility (free to access) to allow IOT data transfer via LoRaWAN (Long range WAN). In principle its much the same as wifi and bluetooth, except it works on a fixed frequency and is very low bandwidth, but with long range - up to 22km or so it is claimed. Its designed for IOT so is very low power consumption. The device requires a local gateway to connect to, although due to the range, it doesn't have to be particularly local. For example heres the stations available on Anglesey:

1613391914125.png

Devices such as the LoPy4 are micropython oriented, low power processors designed to transfer data across the LoRaWAN network. The LoPy4 has extensive I/O on board and can handle ADC much the. same as an Arduino, meaning it is very able to interface with sensors. It can also handle two way transmission on the LoRaWAN network meaning it can be used to sense and actuate if a demand signal is sent to it. The power consumption in LoRa transmit is 15mA, whilst it only uses 25uA in deep sleep. In idle it consumes around 35mA (outside of any radios), which compares very favourably with RPis etc.

1613391973372.png

Micropython supports uMQTT which is a messaging protocol design for low bandwidth transmission. Rather than using signal K, or another protocol the LoPy4 will directly interpret and broadcast the data in MQTT format.

Adafruit IO is a portal which can act as a web based tool to view and interpret data from your thing on the internet. It provides a toolkit of dials, graphs, gauges and other useful things to help visualise data. There are also a variety of inputs, through which you can send triggers back to the LoPy4 if required. The best bit is its free for lighter users (such as boat monitors!). It has native ability to parse incoming uMQTT messages.

1613392001502.png

Another interesting development is Openplotter developing a soon to be available IOT MQTT broker. Watch this space!

So overall, for the cost of the LoPy4, its antenna, sensors and some bits and bobs to tie it all together you can have a long range remote boat monitor with no ongoing costs and minimal current consumption!

I'm going to go ahead and buy one today and start playing around with it at home. See if I can get it to talk to the local receiver here and send some basic data to Adafruit as a proof of concept.
 
just after spending a week sorting out SignalK (almost!) and started pumping info from the raspberry on board connected to the NMEA2000 bus, via SignalK and influxdb to my office server and getting grafana to show the data (nicely!) you come up with a low bandwidth free solution that does 20km? That's evil, that is!

I'll have a look in a couple of days, once I finish with this:

grafana_weather1.jpg

cheers

V.
 
just after spending a week sorting out SignalK (almost!) and started pumping info from the raspberry on board connected to the NMEA2000 bus, via SignalK and influxdb to my office server and getting grafana to show the data (nicely!) you come up with a low bandwidth free solution that does 20km? That's evil, that is!

I'll have a look in a couple of days, once I finish with this:

View attachment 109357

cheers

V.

Looks good, vas.

What are you using to plot the wind speed/direction readout?
 
windrose, but tried a couple more and still struggling to get the grips with the whole grafana thing. Still not happy with this wind one, but at least it shows something :)

fe, now stuck not able to decipher lat/lon values and present them on a map (there are a couple of globe panels for grafana that look nice)
Wondering if there's something odd/silly happening and signalk is not picking GPS position from the N2K bus.
at the same time I have to learn influxdb (as if mysql wasn't bad enough!) and check what's arriving from the boat to my server and then figure out where it's getting lost...
Also missing water temp from the airmar DST800 (which shows on the garmins onboard) so it's a steep learning process atm.
 
I haven't got mine onto the boat yet, so i'm still playing with simulated data. - ill have a go with the lat long thing later see i can make it work. (I tried and failed before!)


This was what i came up with as a home screen Screenshot 2021-01-29 125224.png
 
well, looking at the config settings of signalk there's a specific tickbox which I may have forgotten to hit on the rpi which is now onboard.
Finalising the installation on the "production"rpi at home and just noticed it. We shall see! more confused on seawater temp missing tbh
 
I managed to draw a wind chart on Thingsboard by overlaying two backgrounds in one graph. Mapping with lat and long using data sent using MQTT and a 1p per MB sim card seemed okay as well. Unfortunately I've not powered that Raspberry Pi on since last summer.

I ought to find some time to give it another go and refresh my memory. Looks like the website is still up.


Screenshot_20210218-175051_Samsung Internet.jpg
 
Top