Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Engineering & Systems > Marine Electronics
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-07-2019, 23:17   #1
Registered User
 
GILow's Avatar

Join Date: Sep 2008
Location: On the boat, somewhere in Australia.
Boat: Swanson 42 & Kelly Peterson 44
Posts: 9,141
DIY boat electronics, starting from scratch, what would you use?

Hi all,

Thanks to Australia Post I have just lost my ENTIRE electronics tool kit and components. Long story short, I took it all with me on a recent interstate visit because I figured I'd have some spare time to kill, forgot to pack it in the car for the trip back, got a family member to post it to me... and it was never seen again.

No more multi-meter, soldering iron (at least I have few), prototyping boards, resistors, capacitors... you name it. All gone.

I also lost my ENTIRE set of Picaxe chips, the various I2C modules (memory, real time clocks), the GPS chips, half a dozen LCD displays, temperature probes and serial drivers.

So... I am starting again. From scratch. All I own for electronics work at this moment are selection of soldering irons. And one roll of solder. Oh yeah, and a soldering stand. Great.

Now, I was about to go out and order all I needed to build my projects in Picaxe again, because at least I have the code for all of those projects, but I thought I should stand back and ask if this is not the time to rethink my hardware platform.

The three main projects I have to build are:

1. Regulator for my Aerogen wind generator. This was working nicely, with LCD display, power logging, dump load switching and programmable voltage cutouts. Sadly, I removed it from the boat because I wanted to improve the functionality of the power logging and reporting, (hence the memory chip) and yeah, it was in the tool box.

2. Heater control system. This was functional but untested, basically a collection of three temperature probes, an LCD display and some circuits to turn on/off the diesel furnace and various pumps.

3. Autopilot circuit. This was just at the proof of concept stage, being a rework of a previous system that drove a home made tiller pilot using a compass chip, I was trying to integrate a GPS chip and add an anchor alarm function while I was at it. It had a simple LCD display and and a compass chip on the I2C bus.


So... with those three projects, which hardware platform would YOU choose to build your systems?

Open to ideas, no real restrictions that I can think of, aside from the fact that it is going on a boat so 12 volt DC compatible would be logical. (Not that I can think of anything that would be depended on 240 volts)

Oh, I should add, I really don't want to run any of this from a laptop or PC. Lots of reasons for this, but mainly I like simple independent devices that don't need big operating systems or reboots or internet connections etc.

Matt
__________________
Refitting… again.
GILow is online now   Reply With Quote
Old 26-07-2019, 00:10   #2
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: DIY boat electronics, starting from scratch, what would you use?

No question imho.
Raspbery pi running openplotter / signalk with esp32/8266 running locally. Send all the data as signalk to the Pi which can then log it in a database (influxdb works great) , display on any device. There's a built ln autopilot plugin project for opencpn already- https://pypilot.org/
Control could either be in the Pi or locally on an Esp, they can serve web pages and create access points so no need for displays unless you want them. Esps have capacitive sense pins which makes it easier to control locally and keep waterproof. Sleep mode can keep power use down to next to nothing.
Loads of code available to cut and paste .
conachair is offline   Reply With Quote
Old 26-07-2019, 02:58   #3
Registered User
 
GILow's Avatar

Join Date: Sep 2008
Location: On the boat, somewhere in Australia.
Boat: Swanson 42 & Kelly Peterson 44
Posts: 9,141
Re: DIY boat electronics, starting from scratch, what would you use?

Hmmm. Good point. Hadn’t considered what I might do if my plotter died. It’s pretty old too.

How easy is it to control hardware using the Raspberry Pi?
__________________
Refitting… again.
GILow is online now   Reply With Quote
Old 26-07-2019, 03:32   #4
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: DIY boat electronics, starting from scratch, what would you use?

Quote:
Originally Posted by GILow View Post
How easy is it to control hardware using the Raspberry Pi?
The Pi can control 3.3v pins so with a logic level relay or FET it's not that hard. Node-Red is built in to Openplotter so it makes it easy to all sorts of clever stuff quite easily, and signalk has apps to talk to some kit like victron with more getting written all the time.
You could just order a coupke of esp32's of 8266's and have a play, they're really powerful little devices. I have temperature senors on the engine, current sensor piggy backed on the battery monitor shunt and voltage, plus an accurate barometer.
What hardware did you have in mind?
conachair is offline   Reply With Quote
Old 26-07-2019, 03:59   #5
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: DIY boat electronics, starting from scratch, what would you use?

Also, just now got Adafruit IO working, didn't know it existed til now, so with a Pi or ESP8266/32 you can send data to the web to graph or view in a dashboard, just add web access like a cheap smartphone and data sim. Could be V handy for remote viewing of battery voltage etc, even turn the fridge on the day before going back to the boat

https://io.adafruit.com/
conachair is offline   Reply With Quote
Old 26-07-2019, 10:45   #6
Registered User
 
FionaJC's Avatar

Join Date: Dec 2016
Location: East Coast UK
Boat: Colvic 40' Ketch
Posts: 277
Re: DIY boat electronics, starting from scratch, what would you use?

Just to stir things up a bit.


I chose to use Arduino and other processors over Pi as its faster and lower power consumption. I don't know about the new one. I use processor to control, engine sensors and gauges with dual displays. Engine pressure, engine temp, hours (elapsed & total), 2 x bilge alarms, temp & pressure alarm, cooling water flow, fuel consumption, exhaust temperature alarm, volatile gas alarm, CO2 alarm, Battery Voltage. Logs all this plus time, SOG, position, temp and pressure.


I use arduino's over winter for standby alarms (bilge 1 & 2, hours run and how many times, fire, gas, intruder low battery and texts me "OK" once a week and texting me on alarm. I am working on another one to control a satellite dish and another to replace my autohelm. That's four separate systems to do different things.
FionaJC is offline   Reply With Quote
Old 26-07-2019, 12:08   #7
Registered User

Join Date: Dec 2013
Posts: 120
Re: DIY boat electronics, starting from scratch, what would you use?

The fastest standard Arduino I know of is the Due (please post if there is a faster one) which I use because for simple and non speed critical development by non programing friends and kids is easy to use. My actual reason for selecting it is the Matlab support. My first choice for non IoT is the Beagle Black with its reasonable speed processor and most importantly the included dual fast controllers. The Raspberry Pi loses to both due to the items stated. I would also suggest getting a vacuum pump and a passiable oscilloscope with an analog mode (Rigol are cheep and passiable). Non contact scope probes are great but a little pricey.
lvictorlucas is offline   Reply With Quote
Old 26-07-2019, 12:27   #8
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: DIY boat electronics, starting from scratch, what would you use?

If you are interested to discuss pypilot free autopilot:

OpenMarine - Pypilot

A few have built their own from components and discussion continues.
seandepagnier is offline   Reply With Quote
Old 26-07-2019, 13:15   #9
Registered User
 
DeepFrz's Avatar

Cruisers Forum Supporter

Join Date: Mar 2006
Location: Winnipeg
Boat: None at this time
Posts: 8,462
Re: DIY boat electronics, starting from scratch, what would you use?

You might be interested in this web page with comparison and selection help:

https://www.dfrobot.com/blog-447.htm...0aAs8vEALw_wcB
DeepFrz is offline   Reply With Quote
Old 26-07-2019, 14:46   #10
Registered User
 
GILow's Avatar

Join Date: Sep 2008
Location: On the boat, somewhere in Australia.
Boat: Swanson 42 & Kelly Peterson 44
Posts: 9,141
Re: DIY boat electronics, starting from scratch, what would you use?

Wow, great responses, thank you all.

DeepFrz, your post was particularly timely, as I had looked at both the Arduino and Pi on the advice given above and was trying to get my head around each.

In summary, the Arduino seems to be most similar to what I have been using so far, it's basically the Picaxe but delivered in a nice user-friendly hardware platform that comes with a lot of the fiddly stuff already installed, like the power supply and programming interface.

The Raspberry Pi does seem a lot more powerful, but as noted, less suited to simple IO projects, which most of these are.

I think if I were aiming for a fully integrated setup with all the electronics on the boat I would go the path of the Raspberry Pi, but, despite appearances to the contrary, I am actually a bit of a KISS kind of guy (30 years in IT will do that to fella) and the simple stand alone nature of the Arduino fits that philosophy a bit better.

I will now crunch the numbers and see how the Arduino stacks up against the Picaxe. At first glance it seems more expensive, but there as some savings, such as not needing the $60 Picaxe USE programming cable and not needing to buy minor items like the power regulator chip. But the reals savings look like they might come from cheaper options on the other stuff, like the GPS and Compass chips, and LCD screens. There seem to be many more of these at better prices for Arduino.

Thanks again for the responses.

Matt
__________________
Refitting… again.
GILow is online now   Reply With Quote
Old 26-07-2019, 15:26   #11
Registered User
 
DeepFrz's Avatar

Cruisers Forum Supporter

Join Date: Mar 2006
Location: Winnipeg
Boat: None at this time
Posts: 8,462
Re: DIY boat electronics, starting from scratch, what would you use?

I'm pleased the post helped. I almost didn't post it because I thought it might have been to basic. Glad I did.
DeepFrz is offline   Reply With Quote
Old 26-07-2019, 15:36   #12
Registered User
 
GILow's Avatar

Join Date: Sep 2008
Location: On the boat, somewhere in Australia.
Boat: Swanson 42 & Kelly Peterson 44
Posts: 9,141
Re: DIY boat electronics, starting from scratch, what would you use?

Quote:
Originally Posted by DeepFrz View Post
I'm pleased the post helped. I almost didn't post it because I thought it might have been to basic. Glad I did.


Sometimes basic is good. It really was perfect timing. Some good suggestions by CF members immediately followed by a way of easily comparing the options.
__________________
Refitting… again.
GILow is online now   Reply With Quote
Old 26-07-2019, 15:53   #13
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,548
Re: DIY boat electronics, starting from scratch, what would you use?

I think conachair has given great advice (rPi + ESPs), but I also share Fiona's love for Arduinos. When you can score a nano clone with USB interface for $3, it's pretty hard to justify pulling out all the stuff required to work with bare microcontrollers (though I still like small PICs and SourceBoost C).

I also like working with ESP8266 and ESP32 using the Arduino environment. (or more specifically the VisualMicro plugin for Visual Studio, which lets you do Arduino programming in a more professional IDE)

Have fun re-stocking up!
Lake-Effect is offline   Reply With Quote
Old 26-07-2019, 17:22   #14
Registered User
 
GILow's Avatar

Join Date: Sep 2008
Location: On the boat, somewhere in Australia.
Boat: Swanson 42 & Kelly Peterson 44
Posts: 9,141
Re: DIY boat electronics, starting from scratch, what would you use?

Quote:
Originally Posted by Lake-Effect View Post
I think conachair has given great advice (rPi + ESPs), but I also share Fiona's love for Arduinos. When you can score a nano clone with USB interface for $3, it's pretty hard to justify pulling out all the stuff required to work with bare microcontrollers (though I still like small PICs and SourceBoost C).

I also like working with ESP8266 and ESP32 using the Arduino environment. (or more specifically the VisualMicro plugin for Visual Studio, which lets you do Arduino programming in a more professional IDE)

Have fun re-stocking up!


Yes, some good options. But what’s the deal with the nano clones? Are they doing anything shifty with intellectual property?

I ask because the “fun” of stocking up amounts to a horrible unplanned expense and I’d like to keep cost low, but not by supporting IP thieves.
__________________
Refitting… again.
GILow is online now   Reply With Quote
Old 26-07-2019, 23:50   #15
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: DIY boat electronics, starting from scratch, what would you use?

Quote:
Originally Posted by GILow View Post

In summary, the Arduino seems to be most similar to what I have been using so far, it's basically the Picaxe but delivered in a nice user-friendly hardware platform that comes with a lot of the fiddly stuff already installed, like the power supply and programming interface.

The Raspberry Pi does seem a lot more powerful, but as noted, less suited to simple IO projects, which most of these are.
Both!
But not arduino imho much as i love them, don't see the point, an Esp32 is basically an arduino but 16 times faster with Bluetooth and WiFi. A Pi3 is plenty fast enough and cheap to fit if you don't bother with a monitor. Then the local esp can send data to the Pi if it's turned on for logging or whatever you want to do. The Openplotter/signalk/node red combination is extremely powerful, don't think there's anything else comes close to openplotter for an all in 1 system for boats. Order a Pi3 and an esp8266 or 32 and have a play
My fridge has an arduino as a thermostat after the mechanical one broke but that will be an Esp soon, think having your fridge data online and adjusting the temperature from the bar free WiFi might be going too far....
conachair is offline   Reply With Quote
Reply

Tags
boat, DIY, electronics


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete boat electrical and electronics from scratch Timber Marine Electronics 22 23-07-2016 07:13
Tanzer 22 - Starting wiring from scratch again... (help!) scottmcleod Electrical: Batteries, Generators & Solar 7 23-06-2013 16:43
Starting from Scratch knottybuoyz Construction, Maintenance & Refit 46 14-12-2008 18:03
Starting From Scratch - What Would You Do? ssullivan Navigation 45 16-06-2008 15:10
Buiding our boat - starting from scratch Alain d'HYLAS Construction, Maintenance & Refit 11 02-12-2006 09:19

Advertise Here


All times are GMT -7. The time now is 15:09.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.