Support GPS properly on Heltec Wireless Tracker v1.x#1351
Open
weebl2000 wants to merge 1 commit intomeshcore-dev:devfrom
Open
Support GPS properly on Heltec Wireless Tracker v1.x#1351weebl2000 wants to merge 1 commit intomeshcore-dev:devfrom
weebl2000 wants to merge 1 commit intomeshcore-dev:devfrom
Conversation
2b0a97c to
cec7988
Compare
cec7988 to
3161017
Compare
6f37505 to
5fa8f03
Compare
Contributor
Author
5fa8f03 to
f247c82
Compare
Thanks for testing! |
Pin mapping verified against HTIT-Tracker V0.5 schematic: - GPIO35 (GPS_EN): N-ch MOSFET drives P-ch high-side switch, active HIGH - GPIO36 (GPS_RST): hardware reset, active LOW - GPIO33/34: UART TX/RX Delegates power management to MicroNMEALocationProvider begin()/stop() which independently controls GPS power via GPS_EN and shares VEXT with the display through RefCountedDigitalPin.
f247c82 to
2e1090b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Update 27 February 2026
After running for nearly two months this seems battled tested, also received feedback from multiple users GPS keeps working and GPS is properly disabled and not causing phantom drain.
Summary
Power usage is high On HTWT even with GPS disabled, it's not being disabled properly.
Adds proper GPS support to the Heltec Wireless Tracker v1.x (HTIT-Tracker V0.5 schematic).
&rtc_clock,GPS_RESET,GPS_EN, and&board.periph_powertoMicroNMEALocationProviderMicroNMEALocationProvider::begin()/stop()which useRefCountedDigitalPinto safely share VEXT with the displaygetLocationProvider()override so firmware can access the GPS providerENV_INCLUDE_GPS=1andGPS_BAUD_RATE=115200in the build configPin mapping (verified against V0.5 schematic)
GPS power control
Unlike earlier assumptions, the v1 hardware does have independent GPS power control via GPIO35. The
stop()path de-asserts GPS_EN to cut GPS power independently of the display, then releases VEXT. This avoids wasting ~25-30mA on an idle GPS chip while the display is active.Note
Passes
&rtc_clockto the location provider, enabling GPS-to-RTC time sync. Complementary with #1364 and #1350 in the GPS chain.Build firmware: Build from this branch