Cruisers Forum
 


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 04-04-2018, 10:08   #16
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Arduino ESP8266 stream wifi

Quote:
Originally Posted by Capt.Don View Post
Node red looks interesting. I like the idea of connecting the various streams in a central database, and possibly moving out from OpenCPN.
Node red is just wonderful

And I'm an idiot, no need for any kind of usb board to get the data into your computer, you can just plug in a whole variety of sensors into the esp8266 and have it send the data over wifi.
Bit long winded at the moment but I send temperature, voltage and barometer over mqtt from a esp which then gets turned into signalk. You could send the data in any format and have node red do anything with it, mqtt is quite easy as it sends as topics. Udp should work just as well. One really handy function is having engine temperature converted I to water temperature so it can be displayed in an Opencpn dashboard.

Easyesp also makes all this simple though a little limited if you can't be bothered to code.

Just to whet your node-red appetite...



And pressure during a near miss with a small tornado..
conachair is offline   Reply With Quote
Old 04-04-2018, 12:33   #17
Registered User
 
Capt.Don's Avatar

Join Date: Aug 2010
Posts: 961
Images: 1
Re: Arduino ESP8266 stream wifi

Exactly where this leads to!!

What I envision is a series of ESP8266's connected to various sensors, including barometer, air-temperature, engine-temp, oil-pressure, fridge.... These are each stand-alone little boxes, simply broadcasting their data. Each sensor can be easily put together for about $4.00 in parts (ESP8266 $2.00, 3.3v buck converter $1.00, voltage sensor $1.00). Originally I thought to feed OpenCPN, but node-red opens a lot of options.

Thanks for the inspiration.

I spent about an hour with node-red. Using my ESP8266 wifi barometer/temperature server, I configured two graphs. It is very easy to setup the connectors, split the NMEA data for temp and pressure, and feed the gauge.

At this point, I'm reconsidering whether I need the NMEA stream or a more compact json message, fed to node-red and displayed on a browser. There's no need for NMEA sentences. I also don't see the need for Signal-K - seems like a lot of overhead to digest 1/2 dozen data values. Node-red looks like it will do everything I want.

Fun,
Don
Attached Thumbnails
Click image for larger version

Name:	node-red1.jpg
Views:	97
Size:	23.5 KB
ID:	167637  
Capt.Don is offline   Reply With Quote
Old 04-04-2018, 12:53   #18
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,548
Re: Arduino ESP8266 stream wifi

Quote:
Originally Posted by Capt.Don View Post
At this point, I'm reconsidering whether I need the NMEA stream or a more compact json message, fed to node-red and displayed on a browser. There's no need for NMEA sentences. I also don't see the need for Signal-K - seems like a lot of overhead to digest 1/2 dozen data values.
I was wondering if this thought would come up... the main reasons for conforming to NMEA or SignalK would be because you already have consuming devices ready to accept and use data in that format. Otherwise, if the display is custom, you can keep it as simple as you want.

I've been playing with an ESP8266-based sensor for a potential outdoor weather station that periodically pushes environmental and battery voltage data at a controllable interval. A shout-out for the BME280 sensor (if you're not already using it): temperature, pressure and relative humidity from one tiny device.
Lake-Effect is offline   Reply With Quote
Old 04-04-2018, 14:40   #19
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Arduino ESP8266 stream wifi

Quote:
Originally Posted by Lake-Effect View Post
Otherwise, if the display is custom, you can keep it as simple as you want.
.
Mqtt is pretty a handy though you'll need a broker to talk to, think the node-red node might set up one, otherwise need to install one like mosquitto. Node red makes it easy with just a little clicking to filter the mqtt and send it anywhere you want.
Bonus is with some sort of WiFi access you can send all the data to the cloud for viewing anywhere straight from the esp (though haven't done that to check.) , mqtt is very low bandwidth.

Mqtt is pretty a handy though you'll need a broker to talk to, think the node-red node might set up one, otherwise need to install one like mosquitto. Node red makes it easy with just a little clicking to filter the mqtt and send it anywhere you want.
Bonus is with some sort of WiFi access you can send all the data to the cloud for viewing anywhere straight from the esp (though haven't done that to check.) , mqtt is very low bandwidth.
conachair is offline   Reply With Quote
Old 04-04-2018, 14:50   #20
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Arduino ESP8266 stream wifi

Quote:
Originally Posted by Capt.Don View Post
, voltage sensor $1.00).

Fun,
Don
Worth checking out the ads1115, it can do differential measurements so you don't get into an earth loop mess, really accurate.
Node red makes it quite easy to send everything to a database like sqlite, the whole database is just one file so easy to copy anywhere for fiddling. This is many Meg of data but is lots of boat data from many months with some python converting the database into a web page. Loads fun

Bokeh Plot
conachair is offline   Reply With Quote
Old 27-12-2019, 14:19   #21
Registered User

Join Date: Oct 2019
Posts: 5
Re: Arduino ESP8266 stream wifi

I came across this and would love to intergrate it into my opencpn. But running it, the light flashs and I can see no outout. If I log into my Pi that open cpn runs on, I can see that the nodemcu connects on 192.168.4.11. I can ping it but I cannot ping 192.168.4.254

I added 2 connections to opencpn covering the twp ports on udp

I know I am missing something simple
thecivvie is offline   Reply With Quote
Reply

Tags
wifi


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
Arduino based Alternator Regulator Project wayne.b Electrical: Batteries, Generators & Solar 11 11-03-2021 10:16
Want to set up a boat WiFi system that connects through marina's wifi MV Wanderlust Marine Electronics 25 06-12-2016 12:45
Arduino software for navigation/boats vtomanov Navigation 2 11-09-2016 11:43
A DIY barograph based on an Arduino shield PauloOnArbutus Marine Electronics 5 23-01-2016 04:58

Advertise Here


All times are GMT -7. The time now is 11:48.


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.