Forums > Windsurfing   Gps and Speed talk

Another DIY GPS logger approach

Reply
Created by rp6conrad > 9 months ago, 2 May 2021
BigBoss
66 posts
28 Jul 2024 4:23AM
Thumbs Up

Select to expand quote
rp6conrad said..

BigBoss said..


PacoRaapNL said..
Together with Jan indentified the problem and correct it.
3 units which could be flashed through usb with the correct partition setup are now workingg as intended.
Partition can only be done with flashing true Arduino OTAwebupdater.ino.
After submit config file it reboots instead of display freeze.
Before you pour the unit make sure you have the correct partition tables installed and forced to use 1.06 esp32 library.

Thanks to Jan again for the help.

Paco




Oke good work!!

If I flash to the new 5.85 version, is that enough?



If your problem is the same, it cannot be corrected with the 5.85 bin file ! You need to have acces to the usb, only then you can flash the correct partition table !!
More info in the corrected build manual, page 6 : : docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
Greetings, Jan.


Hmm oke i just build 2 b74 and flashed them with the orginal files, and poured them. We cant acces the usb-poort physical anymore

rp6conrad
364 posts
28 Jul 2024 7:10PM
Thumbs Up

Select to expand quote
BigBoss said..

rp6conrad said..


BigBoss said..



PacoRaapNL said..
Together with Jan indentified the problem and correct it.
3 units which could be flashed through usb with the correct partition setup are now workingg as intended.
Partition can only be done with flashing true Arduino OTAwebupdater.ino.
After submit config file it reboots instead of display freeze.
Before you pour the unit make sure you have the correct partition tables installed and forced to use 1.06 esp32 library.

Thanks to Jan again for the help.

Paco





Oke good work!!

If I flash to the new 5.85 version, is that enough?




If your problem is the same, it cannot be corrected with the 5.85 bin file ! You need to have acces to the usb, only then you can flash the correct partition table !!
More info in the corrected build manual, page 6 : : docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
Greetings, Jan.



Hmm oke i just build 2 b74 and flashed them with the orginal files, and poured them. We cant acces the usb-poort physical anymore


@BigBoss : Can you still flash SW with OTA ? In that case there is a workaround : I can compile the SW with the partition table which you have used for the first flash of the OTAWebupdate.ino. Can you give me the version of the ESP32 library that you used then ?
Greetings, Jan.

rp6conrad
364 posts
29 Jul 2024 2:55AM
Thumbs Up

I am working on a small form ESP-GPS with a LCD - display. Again a Lilygo board with a ESP32. These are dead cheap,and there is a version with 16 MB flash. With 16MB flash, you can have a reasonable file storage (13MB), so a SD card is not obligate. The LCD color display has 240*135 pixel.
I see this more as a gps-logger, as the display has a poor visibility in bright daylight (or a HUD display ?).
A link to the board : www.lilygo.cc/products/lilygo%C2%AE-ttgo-t-display-1-14-inch-lcd-esp32-control-board?variant=42159376466101
Greetings, Jan.



PacoRaapNL
145 posts
30 Jul 2024 6:54PM
Thumbs Up

Select to expand quote
CarlosSainz said..
Is anybody in Europe building these for sale ?


Not yet, but I might have some spare units using the 213BN display.
With all the testing I now have 3 working units of which I only will be using one.

What is your limitation for building one?

Paco

CarlosSainz
43 posts
30 Jul 2024 7:46PM
Thumbs Up

Select to expand quote
PacoRaapNL said..

CarlosSainz said..
Is anybody in Europe building these for sale ?



Not yet, but I might have some spare units using the 213BN display.
With all the testing I now have 3 working units of which I only will be using one.

What is your limitation for building one?

Paco


No technical experience at all to be honest....

PacoRaapNL
145 posts
31 Jul 2024 2:58AM
Thumbs Up

Select to expand quote
CarlosSainz said..

PacoRaapNL said..


CarlosSainz said..
Is anybody in Europe building these for sale ?




Not yet, but I might have some spare units using the 213BN display.
With all the testing I now have 3 working units of which I only will be using one.

What is your limitation for building one?

Paco



No technical experience at all to be honest....


Thats how it started with me too. I let you know when the prototyping is finished.

Paco

Basti450
17 posts
31 Jul 2024 5:35PM
Thumbs Up

Select to expand quote
rp6conrad said..
I am working on a small form ESP-GPS with a LCD - display.




Hey Jan, that's super awesome, thanks so much for all your effort on this! Would you have some binaries to share for the LCD-version?

I couldn't tell from the first glance at that board's pin layout, but I guess there could be SPI accessible to connect an external card reader if required?

Cheers, Basti.

rp6conrad
364 posts
31 Jul 2024 6:44PM
Thumbs Up

Yes, I will share the source code and binaries, but still some work in progress... A external spi SD card reader can be connected on these pins :
define SDCARD_SS 13
define SDCARD_CLK 22
define SDCARD_MOSI 17
define SDCARD_MISO 21
GPS goes to the same pins as the T5 version
First time loading the OTAWebUpdater.ino need some attention, as you need to include the correct partitions.csv in the OTAWebUpdater directory. (16 MB flash version !). I will make a small manual how to proceed with this board !
Greetings, Jan.

Basti450
17 posts
1 Aug 2024 2:15AM
Thumbs Up

thanks a lot Jan, much appreciated!

rp6conrad
364 posts
2 Aug 2024 11:07PM
Thumbs Up

ESP-GPS loggerproject with T-display is on github : github.com/RP6conrad/T_display/blob/main/README.md
Current-conumption LCD-backlight is 20 mA higher the T5 E-paper, poor visibility in sunlight, small display....
Main advantage is small formfactor (25*60mm), no SD card necessary (14MB file storage) and low price (8.33$)....
Compared with the T5 e-paper :
Greetings, Jan.

Basti450
17 posts
4 Aug 2024 6:21PM
Thumbs Up

Yay, awesome, thanks again!

Cheers, Basti.

PacoRaapNL
145 posts
6 Aug 2024 5:26PM
Thumbs Up

Select to expand quote
rp6conrad said..
ESP-GPS loggerproject with T-display is on github : github.com/RP6conrad/T_display/blob/main/README.md
Current-conumption LCD-backlight is 20 mA higher the T5 E-paper, poor visibility in sunlight, small display....
Main advantage is small formfactor (25*60mm), no SD card necessary (14MB file storage) and low price (8.33$)....
Compared with the T5 e-paper :
Greetings, Jan.




Hello Jan, is the refresh rate the same as the Lilygo T5? 1 second?
Can the display produce the same good contrast grey background with black pixels for showing the data?
In other words can this be programmed?

Can one of the two push buttons be used for the ON/OFF action instead of the reed switch?

Thanks, Paco

Basti450
17 posts
7 Aug 2024 1:23AM
Thumbs Up

Yay! I didn't pay attention and got the 4M flash version. No problemo as I want to add an external card reader anyways. Thanks a lot Jan!


rp6conrad
364 posts
7 Aug 2024 3:23AM
Thumbs Up

Select to expand quote
PacoRaapNL said..

rp6conrad said..
ESP-GPS loggerproject with T-display is on github : github.com/RP6conrad/T_display/blob/main/README.md
Current-conumption LCD-backlight is 20 mA higher the T5 E-paper, poor visibility in sunlight, small display....
Main advantage is small formfactor (25*60mm), no SD card necessary (14MB file storage) and low price (8.33$)....
Compared with the T5 e-paper :
Greetings, Jan.





Hello Jan, is the refresh rate the same as the Lilygo T5? 1 second?
Can the display produce the same good contrast grey background with black pixels for showing the data?
In other words can this be programmed?

Can one of the two push buttons be used for the ON/OFF action instead of the reed switch?

Thanks, Paco

Refresh rate is much higher then a E-paper, some examples can be seen here :

It is a full color display, so one can choose a grey background with black numbers. But in daylight, visibility is poor.
For now, the right push button has the same function as the reed switch on GPIO15.
I have programmed only 1 stat screen and 1 speed screen, as I doubt that it can be read when surfing.... Logging has the al the same options as the T5 screen.

Greetings, Jan

Basti450
17 posts
7 Aug 2024 3:37AM
Thumbs Up

SD card working after swapping MOSI and MISO pins, awesome!

rp6conrad
364 posts
13 Aug 2024 2:16AM
Thumbs Up

There is a SW update on github : bugfix for a time offset in the gpy-files (in the gpy logfile, local time was used, this must be GMT time). For some timezones (-4h), it was even 40 hours offset....
github.com/RP6conrad/ESP-GPS-Logger/blob/master/README.md
github.com/RP6conrad/T_display

PacoRaapNL
145 posts
13 Aug 2024 6:08PM
Thumbs Up

For those who use Arduino IDE 2.0+If you start the IDE and get the message there are new librarys and boards available do not click to update automatically by default.
The ESP32 board needs the 1.06 version and this board update puts it on a newer version which gives the problem I expereinced with the partitions.
latest is not always the best option.. ;-)

Paco

Flex2
WA, 366 posts
15 Aug 2024 8:39PM
Thumbs Up

Got all the bits today for the T-display, flashed the OTA, uploaded the bin file ok but how to get the initial config file loaded that has the wifi details to get further with the web server?? Seem to be missing something fundamental.

rp6conrad
364 posts
16 Aug 2024 4:59AM
Thumbs Up

When booting the T-display, It will first try to connect to a Wifi SSID. When you see the countdown on the display, press the button (or the reed contact). Then the T-display will change to AP mode. No you can connect your laptop to this AP with the name ESP32AP, and password = "password". If you are connected, the IP nr 192.168.4.1 will show up on the screen. Go with your browser to this IP, and choose the configuration menu. When you submit, the new config file will be saved.

Greetings, Jan.

Flex2
WA, 366 posts
16 Aug 2024 8:42AM
Thumbs Up

ya, thought it was simple. thanks Jan. Luckily you provided the IP address as my screen seems to be offset on the AP page (see attached). However once logged in the screen looks fine. Interestingly it exhibits the same behaviour as my previous 'old style' GPS build that the unit bricks after a config save but I can successfully unbrick it wirelessly as the unit auto connects to my home wifi and reinstalling the software unbricks it. No doubt this has got to do with the partition stuff and probably have the wrong ESP32 library version (I am on Mac been using forever). Interestingly unit bricks when remove USB power but doesn't brick if put to sleep by long button press.




rp6conrad
364 posts
16 Aug 2024 3:51PM
Thumbs Up

Indeed, probably a "partition" issue. I guess you have the 4 MB flash version, as you only have left 1 MB storage. The settings and partition table for the 4 MB flash are different, I shall extend the manual for this version :
Arduino IDE memory setting = 4 MB
ESP32 library 1.06
Do not copy the "partitions.csv" in your OTAWebupdate directory for flashing the first time over usb.
Greetings, Jan.

Flex2
WA, 366 posts
16 Aug 2024 5:19PM
Thumbs Up

Definitely got the 16MB version...will work on sorting out the partition stuff

rp6conrad
364 posts
17 Aug 2024 12:52AM
Thumbs Up

Check the buildmanual here : docs.google.com/document/d/1EAuqvbSOyW8XMN_1-I5Rsge2eNxJeE1X47yJEWSanZo/edit
Start again with the OTAWebUpdater.ino example.
Settings : 16 MB Flash
copy the partitions.csv to your OTAWebUpdater directory !
More info in the buildmanual.
Greetings, Jan.

Flex2
WA, 366 posts
17 Aug 2024 9:52AM
Thumbs Up

worked fine thanks Jan. Main issue I was running ESP3.x library. Uninstalled that and downgraded to 1.06. Followed the rest of instructions and works as advertised with 13Mb free for logg'n. Partition scheme is exactly as you state. Now to solder the bits on.

Flex2
WA, 366 posts
17 Aug 2024 11:13AM
Thumbs Up

All the bits connected and works a treat, display looks awesome but it's a cloudy rainy day here. Another dumb question...how to activate AP mode after the first software load? Pulsing the reed switch does nothing except turn unit off if long hold. Unit logs onto home wifi no probs. This is especially important as the latest Lilygo's don't seem to like/recognise iPhone hotspots for some reason.


rp6conrad
364 posts
17 Aug 2024 2:36PM
Thumbs Up

AP-mode can be accessed by pushing the Button on the upperside of the screen, when the count down for the wifi is started. In the next update, the reed switch will be programmed identical.
The second wifi is (default ssid = ESP_GPS, password = password2) can be used if you set your phone as a hotspot with this ssid. Seems to work with Android phones, but you have to switch of mobile data (4G), otherwise Android refuses to access local IP-adresses. Never tried it with a Iphone.
Greetings, Jan.

Flex2
WA, 366 posts
17 Aug 2024 4:01PM
Thumbs Up

ok, good to know..so interim solution if want to seal unit is to wire a reed switch across that switch. As for the iPhone hotspot, turns out it works fine for iPhone 8 but I recently upgraded my iPhone and the hotspot isn't recognised by the esp32 because the default for iPhone 12 and above is 5GHz wifi and the ESP32 is looking for 2.4GHz. The work around is to disable the 5GHz (or is it enable the 2.4?) by enabling "Maximise compatibility" in the hotspot settings. It also seems to help to log onto the iPhone hotspot with another device first like your laptop before the esp32 tries to connect.

PacoRaapNL
145 posts
27 Aug 2024 3:28PM
Thumbs Up

Jan, still enjoying the GPS to the max.

Last surf day some one asked what was my maxium speed and I looked at the screen and said 47.2 km.
Then I asked and what is yours? He answered I have to connect my watch to the app on my mobile phone to see the speeds......... ;-)
So I have to go onshore to see it.

1000000 dollar question, would it be possible to have in the speed screens also the current time shown on the most vertical right hand side?
Like this
1
4
:
2
2
When I am doing long stints at steady speed it would be nice to see the time.Now I have to stop so the time will be visisble in the main screen.

Paco

Freezer
111 posts
28 Aug 2024 11:44PM
Thumbs Up

Select to expand quote
PacoRaapNL said..
Jan, still enjoying the GPS to the max.

Last surf day some one asked what was my maxium speed and I looked at the screen and said 47.2 km.
Then I asked and what is yours? He answered I have to connect my watch to the app on my mobile phone to see the speeds......... ;-)
So I have to go onshore to see it.

1000000 dollar question, would it be possible to have in the speed screens also the current time shown on the most vertical right hand side?
Like this
1
4
:
2
2
When I am doing long stints at steady speed it would be nice to see the time.Now I have to stop so the time will be visisble in the main screen.

Paco


Hi Paco,

The intention of the config setting "stat_speed" is the speed where the stats-screens will jump into the speed-screen.
Usually during a jibe the speed is slowing down and before pushing it, you might have some time to check your last rake. I'm not sure but the default might be set so low that nobody will ever see the statistics after a gibe unless you come to a complete stand still. The speed is in m/s so to be multiplied by 3.6 to get it in km/h. If you set it to a speed of easy planing (for instance <25 km/h) set it to 7. The statistics will be shown until the speed reaches 25km/h and you can comfortable read whatever statistics page you have selected. It will toggle multiple statistics pages "Stat_screens" at a configurable amount of seconds "Stat_screens_time".

Adding time (or other stuff) goes at the expense of font size in the speed-screen. If it needs to be vertical one can also rotate the text like the "speed in km/h" or "speed in knots" in the stat-screens. writing it digit by digit below each other makes it very hard to read.

rp6conrad
364 posts
29 Aug 2024 3:01AM
Thumbs Up

@Paco : In the SW 5.88, the actual time is in the speed screen "Large Font off". The progress bar will override it, but most of the time it will be visible.

I added also a link in the webserver for uploading the latest session to GPSTC






Greetings, Jan.



Subscribe
Reply

Forums > Windsurfing   Gps and Speed talk


"Another DIY GPS logger approach" started by rp6conrad