Displaying non-standard NMEA data on plotter?

jdc

Well-known member
Joined
1 Dec 2007
Messages
2,016
Location
Falmouth
Visit site
I have constructed a strain-gauge (0-1000kg to 1kg resolution and ~5kg accuracy), which potentially has multiple uses but which I first want to use to measure and display the anchor rode tension in real-time. It outputs NMEA style sentences (but I can make it send any format really). It sends serial data via Bluetooth SPP.

My question is what should I display the readings, or graph of readings vs time, on?

I'd ideally like it to be my chart plotter as that's the only built-in graphical device. Of course I could use my lap-top, but that's a palaver and I don't always take it on board (expensive and fragile and mission critical for work). However NMEA183 or 2000 sentences don't seem to support strain as a measurement, and neither do they allow an arbitrary sentence to be displayed. Any ideas? Represent it as fake 'engine temperature' or other quantity which is supported in NMEA?

FWIW the chart plotter is Raymarine A95.
 
Last edited:

Minerva

Well-known member
Joined
16 Oct 2019
Messages
1,348
Visit site
sounds interesting; what did you use for the strain gauge?

I’d imagine the most useful would be to track and record the dataset alongside apparent wind speed to plot them together
 

Hoolie

Well-known member
Joined
3 Mar 2005
Messages
8,156
Location
Hants/Lozère
Visit site
If you can select the data source on your plotter you could, for example, scale and address the output of the strain gauge as depth where 1kg = 1metre.
 

ylop

Well-known member
Joined
10 Oct 2016
Messages
2,449
Visit site
Can you use XDR? I think designed for any transducer - and you can label it and the units yourself.
 

jdc

Well-known member
Joined
1 Dec 2007
Messages
2,016
Location
Falmouth
Visit site
XDR is an excellent suggestion, and there's even a reserved unit of Newtons. Thank you for the suggestion, I think this is the 'accepted' way to do the strain sensor in NMEA.

But as Hoolie said, we'll have see if the Lighthouse S/W can recognise and display it!
 

KompetentKrew

Well-known member
Joined
27 May 2018
Messages
2,440
Visit site
B&G Vulcan allows some NMEA data to be displayed as a line chart:

dcppdq9.png
 

Martin_J

Well-known member
Joined
19 Apr 2006
Messages
4,405
Location
Portsmouth, UK
Visit site
It's starting to sound like it might be easier to go direct to NMEA2000 with an Air Pressure PGN... saves all the NMEA0183 issues and will get you into creating an NMEA2000 circuit.

Hard to remember (it was so long ago that I built it) but I think I use a BMP180 on board with a raspberry Pi and canbus interface direct to NMEA2000.

I know the numbers will be different but at least it'll be future proofed..
 

jdc

Well-known member
Joined
1 Dec 2007
Messages
2,016
Location
Falmouth
Visit site
I can certainly run a small computer aboard, for instance a raspberry-pi, but monitors are a pita so this question is about how, if poss, one could display as an integrated data source on the MFD.
For graphing we all have our preferences, mine being Matlab.
 

GHA

Well-known member
Joined
26 Jun 2013
Messages
12,457
Location
Hopefully somewhere warm
Visit site
no need for a monitor, openplotter ships with realvnc installed so view from a tablet/laptop (or at home if you have internet on the boat), burn onto a sd card, reboot & wifi network is there waiting. though once set up most stuff is on a webpage. No real need for matplotlib, signalk app writes whatever you tell it to into influxdb & view in grafana, extremely powerful, must be pretty much world leader combination in ITO data these days. . All installable with a click of a mouse & sources known to play nice with each other. Signalk will write pretty much any data format to any output you have connected to the Pi, node-red built so if an app doesn't already exist a javascript function is simple to implement. Depends what the MFD will accept.
 

rogerthebodger

Well-known member
Joined
3 Nov 2001
Messages
13,525
Visit site
Is it possib
no need for a monitor, openplotter ships with realvnc installed so view from a tablet/laptop (or at home if you have internet on the boat), burn onto a sd card, reboot & wifi network is there waiting. though once set up most stuff is on a webpage. No real need for matplotlib, signalk app writes whatever you tell it to into influxdb & view in grafana, extremely powerful, must be pretty much world leader combination in ITO data these days. . All installable with a click of a mouse & sources known to play nice with each other. Signalk will write pretty much any data format to any output you have connected to the Pi, node-red built so if an app doesn't already exist a javascript function is simple to implement. Depends what the MFD will accept.
le to do the same monitoring using OpenCPN running on a Windows PC as I already have this setup which works very well including remode screen in my cockpit
 

GHA

Well-known member
Joined
26 Jun 2013
Messages
12,457
Location
Hopefully somewhere warm
Visit site
Is it possib

le to do the same monitoring using OpenCPN running on a Windows PC as I already have this setup which works very well including remode screen in my cockpit
signalk will run on a PC which will do anything you can think of with data on a boat 😎 Run all the data though signalk which then sends it to opencpn.
 

jdc

Well-known member
Joined
1 Dec 2007
Messages
2,016
Location
Falmouth
Visit site
Thanks to all for the suggestions, but not having the display and taking the data home on an SD card, or even via the cloud, for display later isn't what I want. My question was how to make it display on the MFD in real time, just like any other instrument data. Some fake Pressure (or engine temperature perhaps) can do it, and I can output CAN bus sentences, so that may be a solution.

BTW: I didn't say matplotlib (I do Python, and use matplotlib on many of our cloud servers, but that's not the point), I said Matlab (mind you, an individual licence costs ~£1k p.a. but we've already an unlimited licence at work).
 
Top