OpenMarine

Full Version: Boat Instruments Display on m5stack tough
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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!
Looks pretty cool mgrouch! Going to give it a try when my M5 Tough arrives.

Thanks!
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?
(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?
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.
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?
(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.
(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.
(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?
(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*/
Pages: 1 2