Forums > Windsurfing   Gps and Speed talk

Another DIY GPS logger approach

Reply
Created by rp6conrad > 9 months ago, 2 May 2021
PacoRaapNL
121 posts
Monday , 27 Jan 2025 3:40AM
Thumbs Up

Select to expand quote
Alhop said..

PacoRaapNL said..
Drawn different... same outcome.



Should pad 38 be 19 like the other schematic ?


You are correct, should be GIOP19.

Paco

Freezer
108 posts
Monday , 27 Jan 2025 8:09AM
Thumbs Up

Select to expand quote
Alhop said..

Freezer said..









Alhop said..






I used easyeda. It's free and pretty easy to use. There is then a link to JLCPCB who makes the PCB and adds all the parts. Plenty of good tutorials on YouTube. Takes about 5 days to get it.

the other chip is a voltage regulator for charging.

happy to share but not sure it works yet so will try it out at some point.






Thanks for the great tip Alhop. I have been playing around with the website from JLCPCB and must admit a lot of good things are available there. The Gerber-output is easily read from Fusion360. The Bill-Of-Materials and the Placement file required for assembly requirea bit of tinkering as the standard format was not recognized.

Keeping everything as much as possible standard keeps the cost low. I just ordered 30 pieces of 12.5x8.9mm PCB only without the components. Payment with PayPall would cost US$7,52, inlcuding shipment and tax to Europe. Not bad at all! The components however are pretty small (SOT23-6, SOD323 and R0805), but still doable with tiny soldering iron.

I found that the minimum size for assembly is 10x10mm. So I adjusted the footprint to match it exactly and redid all the placement and wiring. Fixing the packages in the library was a bit of a pain in the *s, but fixed after all (including the 3D views of the packages). I was able to find all part numbers at JLCPCB-componentsearch. At placement I only needed to fix the pin1 of the SOT23-6 by rotating it 180deg and then it looked OK. Obviously having all the components assembled on the PCB is more expensive but 30 assembled PCBs US$36,91 without shipment is not too bad. Thinking about how long it would take me to solder these tiny components it will be worthwhile. I will wait with this order until I have the 1st batch without assembled components (I have the parts already in house), so might take 1-2wks ( I choose the cheapest shipment option).

Yet another tickmark on the DYI journey with the ESP-GPS. It was ~30 years ago when I designed a PCB on Ultiboard on a 486DX PC :)

This PCB should disconnect the ESP from the battery after shutting down preserving battery life. According the spec-sheet it should be 0,005uA (www.ti.com/lit/ds/symlink/tps27081a.pdf). It is using just a single pole switch (could use the current reed switch everybody is using), connection to battery and using an extra GPIO pin on the ESP as it needs to get a second trigger to shut-down (disconnecting the batter would simply skip saving the file), Jan made and extra addition in the firmware for this.











So do I just connect SW_IN to pin 39 and SW_OUT to ground and the existing Reed switch in that location will make it all work ?

Also where can I get the ESPGPS logo from. Want to add it to my board too.

first board with GPS SD REED and charging seems to work ok. Onto next iteration now. Going to try SD NAND FLASH instead of the card. No idea what I'm doing but Google is my friend and it's all working so far.

cheers
Al






Alhop
WA, 39 posts
Monday , 27 Jan 2025 9:34AM
Thumbs Up

Select to expand quote
PacoRaapNL said..
Drawn different... same outcome.



Ok - think I understand how this works now. When using this I assume you no longer need to connect the Reed to pin 39 ?

PacoRaapNL
121 posts
Monday , 27 Jan 2025 2:52PM
Thumbs Up

Select to expand quote
Alhop said..


PacoRaapNL said..
Drawn different... same outcome.




Ok - think I understand how this works now. When using this I assume you no longer need to connect the Reed to pin 39 ?



Correct, depending on tthe firmware version.Jan made some BETA firmware for this high side switch setup which is not available yet in the webpage.
When GPS unit is OFF.When reed or button is pressed GPIO21 puts the ON/OFF high on pin 5.
When reed or button is pressed a puls goes to the GPS to switch screens as usual.
When reed or button is pressed for longer as 3 seconds the GPS saves the log file and after a while the GPIO21 pin goes low.
Now GPS unit is OFF and the battery is electrically disconnected but only a few micro amps are still flowing (instead of miliamps) which is equal to the self discharge of the lipo.

Makes this sense?

Paco

cckiteau
NSW, 16 posts
Tuesday , 28 Jan 2025 12:36PM
Thumbs Up

Select to expand quote
PacoRaapNL said..

Alhop said..



PacoRaapNL said..
Drawn different... same outcome.





Ok - think I understand how this works now. When using this I assume you no longer need to connect the Reed to pin 39 ?




Correct, depending on tthe firmware version.Jan made some BETA firmware for this high side switch setup which is not available yet in the webpage.
When GPS unit is OFF.When reed or button is pressed GPIO21 puts the ON/OFF high on pin 5.
When reed or button is pressed a puls goes to the GPS to switch screens as usual.
When reed or button is pressed for longer as 3 seconds the GPS saves the log file and after a while the GPIO21 pin goes low.
Now GPS unit is OFF and the battery is electrically disconnected but only a few micro amps are still flowing (instead of miliamps) which is equal to the self discharge of the lipo.

Makes this sense?

Paco


I have been shutting off power to my units for a while now with similar circuit using mosfets.
I modified/compiled a version of code to use GPIO22 as the power control pin.

Will the standard code moving forward have GPIO21 configured as power control or just BETA builds?
This GPIO function would be great as I could change pins and hopefully be able to use stock builds.

Does the BETA version of code with GPIO21 control still have a brief sleep before displaying session stats after shutdown initiated?
I had to use an RC circuit to sustain power through this brief sleep/wake as GPIO pins cycle during the sleep/wake up.

Glad to see others going down the same path as me and would be great if the stock code got this function.

Thanks to those who shared their power control development, happy to provide info on my setup if anyone interested but others have already shared pretty similar designs.


Colin

rp6conrad
347 posts
Tuesday , 28 Jan 2025 5:49PM
Thumbs Up

Select to expand quote
cckiteau said..
Will the standard code moving forward have GPIO21 configured as power control or just BETA builds?
This GPIO function would be great as I could change pins and hopefully be able to use stock builds.
Colin

Yes, power control on GPIO21 will be included in next builds. Power will be cut down after the sleep-screen is ready.
Greetings, Jan.

cckiteau
NSW, 16 posts
Tuesday , 28 Jan 2025 8:56PM
Thumbs Up

Select to expand quote
rp6conrad said..

cckiteau said..
Will the standard code moving forward have GPIO21 configured as power control or just BETA builds?
This GPIO function would be great as I could change pins and hopefully be able to use stock builds.
Colin


Yes, power control on GPIO21 will be included in next builds. Power will be cut down after the sleep-screen is ready.
Greetings, Jan.


Thanks,
Looking forward to the new build.

Colin

PacoRaapNL
121 posts
Tuesday , 28 Jan 2025 10:05PM
Thumbs Up

Select to expand quote
cckiteau said..

PacoRaapNL said..


Alhop said..




PacoRaapNL said..
Drawn different... same outcome.






Ok - think I understand how this works now. When using this I assume you no longer need to connect the Reed to pin 39 ?





Correct, depending on tthe firmware version.Jan made some BETA firmware for this high side switch setup which is not available yet in the webpage.
When GPS unit is OFF.When reed or button is pressed GPIO21 puts the ON/OFF high on pin 5.
When reed or button is pressed a puls goes to the GPS to switch screens as usual.
When reed or button is pressed for longer as 3 seconds the GPS saves the log file and after a while the GPIO21 pin goes low.
Now GPS unit is OFF and the battery is electrically disconnected but only a few micro amps are still flowing (instead of miliamps) which is equal to the self discharge of the lipo.

Makes this sense?

Paco



I have been shutting off power to my units for a while now with similar circuit using mosfets.
I modified/compiled a version of code to use GPIO22 as the power control pin.

Will the standard code moving forward have GPIO21 configured as power control or just BETA builds?
This GPIO function would be great as I could change pins and hopefully be able to use stock builds.

Does the BETA version of code with GPIO21 control still have a brief sleep before displaying session stats after shutdown initiated?
I had to use an RC circuit to sustain power through this brief sleep/wake as GPIO pins cycle during the sleep/wake up.

Glad to see others going down the same path as me and would be great if the stock code got this function.

Thanks to those who shared their power control development, happy to provide info on my setup if anyone interested but others have already shared pretty similar designs.


Colin


Hello Colin, sharing knowledge in what kind of form is always nice.

Sometimes one thing leads to another.

Paco



Subscribe
Reply

Forums > Windsurfing   Gps and Speed talk


"Another DIY GPS logger approach" started by rp6conrad