This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boat Instruments Display on m5stack tough
#1
M5stack Tough is esp32 waterproof microcontroller with a touchscreen. 
Priced about $50. 

Here are a few screenshots of a marine display/autopilot control built for it. 
The code is free and open.

For more screenshots and code check:

https://github.com/bareboat-necessities/...ts/VIEW.md

Fair Winds!


Attached Files Image(s)
                   
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#2
Looks pretty cool mgrouch! Going to give it a try when my M5 Tough arrives.

Thanks!
Reply
#3
Gave it a try; it connected to OpenCPN a few times but was unstable.

Checked all the ports, which were correct. Tried burning it again and followed all of the directions at the github.

NMEA 0183 and SignalK connected a few times after a while but nothing reliable. Used 10.10.01.1.x while using the AP on the Pi.

Any ideas?
Reply
#4
(2023-06-04, 03:26 AM)Opie91 Wrote: Gave it a try; it connected to OpenCPN a few times but was unstable.

Checked all the ports, which were correct. Tried burning it again and followed all of the directions at the github.

NMEA 0183 and SignalK connected a few times after a while but nothing reliable. Used 10.10.01.1.x while using the AP on the Pi.

Any ideas?

What do you mean it connected to OpenCPN?
There is no code in it to connect to OpenCPN. 
What and how did you test it?

If you have issues with NMEA 0183 and SignalK connections 
sounds like you having WiFi issues and not software 
issues. Did you set your WiFi country on your pi? (not
setting it caused poor wifi for me in the past).
Check your WiFi signal quality and antennas. 
It works reliably in my tests more than 50 feet away from Wifi router. 

Might be you mistake going to power saving sleep
after 30 mins of no touch activity with losing connection. 

How do you know it loses connection to SignalK or 
NMEA 0183? How are you checking it?
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#5
Sorry, I meant OpenPlotter3.

I know it has no connection by looking at the connection page. The check marks are red. When connected, they are green.

It randomly will connect to NMEA0183, Signal K and PyPilot.

Wifi country is set on the pi, using OpenPlotter to create a hot point.
Reply
#6
Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#7
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.
Reply
#8
(2023-06-06, 01:49 AM)Opie91 Wrote:
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.

Also if you do not have Victron CerboGX set Venus MQTT IP address in
m5stack settings to 0.0.0.0. 
It will stop wasting cycles trying to reconnect to
something you do not even have.
And I hope you are using latest version of software
from here

https://github.com/bareboat-necessities/...tack-tough

Version 1.0.2 or later snapshot

(2023-06-06, 01:49 AM)Opie91 Wrote:
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.

Also esp32 is not good on 5GHz WiFi band. 
You better off connecting to 2.4GHz access point on your boat router 
That’s the band for IoT devices.
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#9
(2023-06-07, 06:18 PM)mgrouch Wrote:
(2023-06-06, 01:49 AM)Opie91 Wrote:
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.

Also if you do not have Victron CerboGX set Venus MQTT IP address in
m5stack settings to 0.0.0.0. 
It will stop wasting cycles trying to reconnect to
something you do not even have.
And I hope you are using latest version of software
from here

https://github.com/bareboat-necessities/...tack-tough

Version 1.0.2 or later snapshot

(2023-06-06, 01:49 AM)Opie91 Wrote:
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.

Also esp32 is not good on 5GHz WiFi band. 
You better off connecting to 2.4GHz access point on your boat router 
That’s the band for IoT devices.

Tried a fresh image, same issue. Does not consistently connect to SignalK,  PyPilot or NMEA0183.

Was always using a 2.4Ghz access point. Tried using the OP3 access point and then my home AP. Neither were consistently connecting.

Have you tested this with OP3 or has it mostly been developed with BBN in mind?
Reply
#10
(2023-06-08, 02:31 PM)Opie91 Wrote:
(2023-06-07, 06:18 PM)mgrouch Wrote:
(2023-06-06, 01:49 AM)Opie91 Wrote:
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.

Also if you do not have Victron CerboGX set Venus MQTT IP address in
m5stack settings to 0.0.0.0. 
It will stop wasting cycles trying to reconnect to
something you do not even have.
And I hope you are using latest version of software
from here

https://github.com/bareboat-necessities/...tack-tough

Version 1.0.2 or later snapshot

(2023-06-06, 01:49 AM)Opie91 Wrote:
(2023-06-05, 03:46 PM)mgrouch Wrote: Is there NMEA and SignalK traffic from pi?
What is CPU utilization on pi?
Display would keep reconnecting if it
doesn’t receive any messages from those connections
every 3 seconds or so.
Do you have any NMEA devices plugged into your pi?

Is there NMEA and SignalK traffic from pi?

Yes, when it does connect, everything is shown on the M5 Tough

What is CPU utilization on pi?

CPU has low utilization.

Do you have any NMEA devices plugged into your pi?

I am using the signalK to NMEA 0183 plugin, so yes there is NMEA0183. OpenCPN picks it up no problem. Plenty of traffic.

My plan is to make a fresh install of OP3 and see how it goes. This is my test rig so there is a chance something installed or uninstalled incorrectly and is causing an unrelated (to the M5) problem. Won't be able to get to that until next weekend. Will update after further testing.

Also esp32 is not good on 5GHz WiFi band. 
You better off connecting to 2.4GHz access point on your boat router 
That’s the band for IoT devices.

Tried a fresh image, same issue. Does not consistently connect to SignalK,  PyPilot or NMEA0183.

Was always using a 2.4Ghz access point. Tried using the OP3 access point and then my home AP. Neither were consistently connecting.

Have you tested this with OP3 or has it mostly been developed with BBN in mind?


Is your Pi set up for static IP address on your router?
How did you compile the sketch? Did you edit lv_conf.h to put this:

Code:
  /*Use a custom tick source that tells the elapsed time in milliseconds.
  /*It removes the need to manually update the tick with `lv_tick_inc()`)*/
  #define LV_TICK_CUSTOM 1
  #if LV_TICK_CUSTOM
      #define LV_TICK_CUSTOM_INCLUDE "Arduino.h"        /*Header for the system time function*/
      #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis())    /*Expression evaluating to current system time in ms*/
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)