Forums > Windsurfing   Gps and Speed talk

Another DIY GPS logger approach

Reply
Created by rp6conrad > 9 months ago, 2 May 2021
elmo
WA, 8868 posts
17 Jan 2023 7:35PM
Thumbs Up

Anita, try chucking on the charger see if it starts up

decrepit
WA, 12765 posts
17 Jan 2023 7:42PM
Thumbs Up

Select to expand quote
Rolz said..
got an esp32 with a non-responding SD card.



We had problems with Sandisk Ultra PUS 32GB cards. They were OK everwhere else but the esp32 wouldn't talk to them

Windxtasy
WA, 4017 posts
17 Jan 2023 8:37PM
Thumbs Up

Select to expand quote
elmo said..
Anita, try chucking on the charger see if it starts up


I had tried that already without success, but I tried it again and the unit came alive straight away. Yay!
Thanks for the suggestion.
Batt had gone down to 3.35 so it must have been running in the background. Weird.
I did have it sitting out in the sun all afternoon in case water had gotten in somehow. I don't know if that helped - it certainly didn't when I tried the magnet afterwards

remery
WA, 3709 posts
17 Jan 2023 8:51PM
Thumbs Up

Select to expand quote
Windxtasy said..

Windxtasy said..

Voltage hasn't changed since ths morning. That is going to take a long time.



2 days now. Still frozen. Batt voltage/ display hasn't changed


Mine went a bit loopy (good word because it was looping on start up with low voltage). I put it on the charger and took off a few times then, miraculously, it started.

rp6conrad
364 posts
18 Jan 2023 4:33AM
Thumbs Up

Again a update with a bugfix, and a webserver change. After loading the webpage with all files, they are sorted. Files with the latest date on top.
SW 5.71
Again bugfix for time in gpy file (offset year 1970->1900, month->-1)
Removed #include timelib.h
Removed listing of directorys in webserver
Add sortTable() after DOM is loaded : now the files are ordered by date after loading all filenames !
Timestamp files with FTP command MLSD is now UTC
Add type of ublox to .txt file + e-paper shut down

github.com/RP6conrad/ESP-GPS-Logger
Greetings, Jan.

decrepit
WA, 12765 posts
18 Jan 2023 8:29AM
Thumbs Up

Select to expand quote
Windxtasy said..
Batt had gone down to 3.35 so it must have been running in the background. Weird.
I did have it sitting out in the sun all afternoon in case water had gotten in somehow. I don't know if that helped - it certainly didn't when I tried the magnet afterwards


Yes, when computers go off the rails or crash, they usually don't stop running. The program has been corrupted by a byte or too, and it's doing random stuff, still using battery. So now we know after a few days you can try turning back on by charging.
It would be good to have a more precise idea of the discharge time, but I guess that will vary.

remery
WA, 3709 posts
18 Jan 2023 11:08AM
Thumbs Up

Select to expand quote
rp6conrad said..
Again a update with a bugfix, and a webserver change. After loading the webpage with all files, they are sorted. Files with the latest date on top.
SW 5.71
Again bugfix for time in gpy file (offset year 1970->1900, month->-1)
Removed #include timelib.h
Removed listing of directorys in webserver
Add sortTable() after DOM is loaded : now the files are ordered by date after loading all filenames !
Timestamp files with FTP command MLSD is now UTC
Add type of ublox to .txt file + e-paper shut down

github.com/RP6conrad/ESP-GPS-Logger
Greetings, Jan.



I just tried 5.71 and its all good. Sorting is appreciated and the date/time issues disappeared with 5.70.

rp6conrad
364 posts
19 Jan 2023 4:21PM
Thumbs Up

If you try to connect to the AP mode with your mobile phone, you have to switch off "mobile network" ! Because the ESP32 has no internet connection, your phone will try to find internet over the mobile network (4G). This will block the webpage access. For Android 9, change the settings : Settings, Connections, Data Usage, Mobile data OFF
Do not forgot to set it back, as you will have no mobile internet anymore !
Can someone test this for Iphone ?

Greetings, Jan.

Rolz
QLD, 169 posts
19 Jan 2023 7:11PM
Thumbs Up

Select to expand quote
rp6conrad said..
If you try to connect to the AP mode with your mobile phone, you have to switch off "mobile network" ! Because the ESP32 has no internet connection, your phone will try to find internet over the mobile network (4G). This will block the webpage access. For Android 9, change the settings : Settings, Connections, Data Usage, Mobile data OFF
Do not forgot to set it back, as you will have no mobile internet anymore !
Can someone test this for Iphone ?

Greetings, Jan.


on iPhone, I can connect to esp-gps via wifi and still surf web.

Though I would suggest for the ESP32AP when setting dhcp server up don't configure a default gateway (GW), only have IP and subnet.
I noticed ESP32AP sends a default GW of 192.168.1.1 - this could cause issues depending on phones network interface binding order.
With no GW any network binding should prioritise the one network interface that as a GW as the main one to get out to the net.

remery
WA, 3709 posts
20 Jan 2023 5:05PM
Thumbs Up

Hey do we have to incrementally update firmware? One of my devices has been on loan for a couple of weeks and its still on 5.60 I think.

rp6conrad
364 posts
20 Jan 2023 5:15PM
Thumbs Up

Select to expand quote
remery said..
Hey do we have to incrementally update firmware? One of my devices has been on loan for a couple of weeks and its still on 5.60 I think.


No, you can upload every bin file from the github. Just make sure you choose the one for your screen. If you upload one for the wrong screen, everything will work, except the screen....So, you can always upload the correct version after such a mistake.
Greetings, Jan.

Alhop
WA, 46 posts
22 Jan 2023 2:51PM
Thumbs Up

Hi All

Got mine working after reading everything then an afternoon on the computer / soldering iron.

Thanks for all the great advice.

How can I set the logos for Patrik Boards and Severne Sails ? Doesn't seem to be an option.

Cheers
Al

rp6conrad
364 posts
22 Jan 2023 4:14PM
Thumbs Up

Good to hear that everything went smooth !
Select "7" for the board logo, and "10" for the Sail logo in the configuration.



Alhop
WA, 46 posts
22 Jan 2023 4:59PM
Thumbs Up

Thanks that's fixed it. FYI the link in the web server goes to a pic but it only goes up to 9. The F2 and Severne are chopped off for some reason.

rp6conrad
364 posts
22 Jan 2023 5:41PM
Thumbs Up

Select to expand quote
Alhop said..
Thanks that's fixed it. FYI the link in the web server goes to a pic but it only goes up to 9. The F2 and Severne are chopped off for some reason.


On which SW are you now ? Last on github is SW5.71, there Sail and Board logo choice goes up to 20.
Do you have the correct bin for your screen ? Just tested it here on the 213BN screen, no chopping here.

Alhop
WA, 46 posts
22 Jan 2023 7:16PM
Thumbs Up

I'm on 5.71. It's all working fine. Just when I click 'this link' it takes me to a picture on seabreeze that only has 9 sails and 9 boards.





decrepit
WA, 12765 posts
25 Jan 2023 8:54AM
Thumbs Up

Jan, yet another request, I'd love to see the last 2s run, if that's possible

rp6conrad
364 posts
25 Jan 2023 3:44PM
Thumbs Up

Select to expand quote
decrepit said..
Jan, yet another request, I'd love to see the last 2s run, if that's possible


I could change the "STAT1" screen to this :


Or do you wont it in a speed-screen ?


decrepit
WA, 12765 posts
25 Jan 2023 6:27PM
Thumbs Up

Seeing it at the end of a run when I'm stopped would be best. I don't need to know sat numbers at that time.. So STAT1 screen is a great option!

remery
WA, 3709 posts
25 Jan 2023 8:53PM
Thumbs Up

Agreed!

Stretchy
WA, 1036 posts
25 Jan 2023 10:10PM
Thumbs Up

+1

Alhop
WA, 46 posts
26 Jan 2023 12:29PM
Thumbs Up

A suggestion...Could be cool to be able to add/update PBs in the config file then have some options to show them on various screens for comparisons.


Rolz
QLD, 169 posts
26 Jan 2023 7:35PM
Thumbs Up

one thing I noticed today, when gps is off the sleep screen shows the Nautical Mile as NM, but when it's on and cycling screens it still says Mile... Also out of interest, there is no way to convert battery sleep screen details from 4.2 (full charge) to 3.2 (empty) to a percentage?

Freezer
111 posts
26 Jan 2023 9:13PM
Thumbs Up

Select to expand quote
Rolz said..
one thing I noticed today, when gps is off the sleep screen shows the Nautical Mile as NM, but when it's on and cycling screens it still says Mile... Also out of interest, there is no way to convert battery sleep screen details from 4.2 (full charge) to 3.2 (empty) to a percentage?


Yes, many people are unaware of the voltages, but most seem to understand percentage.

The battery icon with percentage will be more helpfull indeed. Like on the stat6 screen there is a battery indicator.
In the sleep-screen the line "display.println(RTC_voltage_bat,2)" needs to be replaced by call to "Bat_level_Simon" that will show a small battery indicator rather than the large one on the default sleep screen. Perhaps it could even indicate "Recharge" when below a certain value...

sailquik
VIC, 6165 posts
27 Jan 2023 10:33AM
Thumbs Up

It is my understanding that with Lithium batteries, voltage is not a good indicator of percentage of charge left. Do the chipsets have a way to measure power use and change in?

remery
WA, 3709 posts
27 Jan 2023 8:41AM
Thumbs Up

The response seems quite variable, I have one that charges to 4.35 and another that discharged to 2.4, both outside the range other people have been working with.

rp6conrad
364 posts
27 Jan 2023 8:22PM
Thumbs Up

A new update SW5.72 is on github with next changes :
.txt files configurable ON/OFF over webserver, if name_MAC_counter, .txt file is necessary for keeping track counter !!!
When Wifi, NTP time is set, if needed, directory "Archive" is created
Added link "Archive files" in header : to move files to the Archive dir when older then archive_days
Added link "Archive list" in header : to list all the files on the SD, dir "Archive" included
Delete file link : no call to confirmation page anymore.
Link to overview Board / Sail logo updated
STAT1 screen Sat -> last 2s, 3m/s for new value needed
STAT6 screen Mile -> NM
Sleep screen bat voltage -> bat percent, 4.2=100%, 3.4=0%
The Archive helps to minimize loading times of the file listing, as older files will not be listed anymore. However, they are still accessible with "Archive list".
If your voltages from the lipo are out of range, you can adjust the reading in the configuration with cal_bat. A full loaded Lipo should give 4.20 Volt. Adjust the default 1.75->1.65...1.85 until the reading is good.
If the voltage reading drops below 3.1V, the ESP will go to standby. If the voltage drops further to 2.4V, the internal protection of the Lipo will cut of and the ESP will switch off completely.
If the voltage exceeds +4.25 V (not the reading, just the measuring of the protection chip in the lipo), the protection chip will cut off, and the lipo will not charged higher.
I never tested this protection of the lipo, but I believe this is pretty robuust....
Freezer proposed some nice logos for the project :



Greetings, Jan.

remery
WA, 3709 posts
28 Jan 2023 4:12PM
Thumbs Up

I updated to 5.72 very easily thank you.

The battery charge was at 61% so I put it on charge for a few hours to see 100%. Started it up and battery voltage was 4.27 so I reckon that's all good. The cal_bat on this device is set to 1.7, 1.65 is not permitted.

I only tested by walking (fast!) and could see 2l and 2sec on the stat screen. They were similar speeds so wasn't sure which was which. I'm assuming 2l is 2last and 2sec is fastest for the session?

2sec on the standby screen seems to be the last one rather than the best for the session. I reckon best for the session would be good to show on standby screen.

Every day it just gets better!

segler
WA, 1656 posts
29 Jan 2023 12:46AM
Thumbs Up

Gosh, Sailquik, the entire LiPo and Li-ion charging industry uses voltages to determine percent of charge. There are lots of references out there that show a quite linear curve of voltage vs %. Millions of "smart" chargers for RC (planes, boats, cars, all of it) charge and discharge Li based batteries to keep them in top shape, all based on voltage to determine percent of charge. Since Li batteries degrade if stored fully charged, these chargers all allow you to discharge to something like 50% to 70% for storage. Heck, even "smart" batteries have onboard circuitry to achieve this as well. DJI drone batteries have this.

On the other hand, lead acid batteries do not display this. You have to use current and time to determine percent of charge. The battery monitor for the house batteries in my Sprinter RV uses current and time.

BigBoss
66 posts
29 Jan 2023 5:45AM
Thumbs Up

Jan.
I loaded the 38400 firmware for the m10. The shutdownscreen show 9600b. I think the screen text is not changed to 38400..






Subscribe
Reply

Forums > Windsurfing   Gps and Speed talk


"Another DIY GPS logger approach" started by rp6conrad