Select to expand quote
QLDCruiser said..I thought I'd start a new thread after reading posts from Shaggy and Lazzz on the VSR thread. Who else is using microcontrollers or RPis for boating applications?
I did some work with PICs onboard a few years back, but now mostly use Arduino Nanos. They're dirt cheap (about $7 from Ebay) and very easy to use. But in one of my recent projects I used a Particle Photon - a bit like a Nano but with a wifi system onboard. You don't even need a USB connection to update firmware - it's all done by wifi. I have the Photon monitoring the NMEA bus, saving all NMEA data (wind, GPS data, depth, etc) locally every minute, and keeping data for the last hour. This in turn communicates with an Android app that I've written, that allows me to chart any of the NMEA variables. There's an example output below (not underway, just 40 minutes tied up).
I find this very useful when cruising. For example:
- when motoring in the calm of the morning, and waiting for a forecast sailing breeze to come in, watching the chart of True Wind can help you determine whether it's "really started".
- When tacking downwind, or heading up above the lay line to get better apparent wind, watching the chart of CLV (closing velocity on waypoint) tells you whether your actions had a useful effect.
- If offshore on the east coast, watching the temperature chart helps you understand whether you're in the EAC.
Having the display on the phone means it's easy while underway and on deck to noodle around the various charts - both me and my wife have it installed.
So - anyone else for show and tell?

HI Qldcruiser,
That's very cool, thanks! That what I am trying to get to, but you're much more advanced than I am!
Question for you, was the graphing part hard to do?
I am still working on the input stuff, so I haven't got to the output to a display yet. Was it hard to create the multiple graphs to display the data?
I am trying to treat this exercise a bit like a data analysis program, so the basic concept is I want a line graph display where I can select the data sources I want to have compared in the graph. If you want to display multiple data sets on the same graph, you just select t by clicking on the buttons above the graph. I've attached an example of what I am trying to achieve.
If I can scrape the BOM data in real time and record this as another input, its no different to the on-boat stuff, it's just another dataset you are logging and can compare at your leisure.

After a race, I can use Time as the Y value (the time is sourced from the GPS) and then I can put up all of the data inputs I want to compare over the duration of say a 2 hour race. Once they're all displayed, I can then look for aberrations, ie: peaks and troughs.
I've had a GoPro on the rear rail that is time synched for a still image every 60 secs in time lapse mode. This is so I can go back and see our trim at the time to see if we can improve anywhere.
If I get really good, I should be able to log and display those still images as I click on the graph.
Some days it feels like it's all too hard, but I'm making progress, just at what feels like a snails pace!
Congrats on what you'be built mate, I'm jealous!
Edit: I'm missing a few inputs from this list, I'd also record the following as inputs; Heading, Bearing, Leeway, Current direction, Current strength, % of polars, and Sailect data (what sail choice and reefs is recommended from the sail loft).