Skip to content

Conversation

@Confituurke
Copy link

This PR adds GPS support for the SenseCap Solar variant using the L76KB GPS module.

Changes

  • Enable GPS support via ENV_INCLUDE_GPS flag
  • Add GPS pin definitions (TX, RX, EN, STANDBY) to platformio.ini
  • Integrate MicroNMEA library for GPS NMEA sentence parsing
  • Use EnvironmentSensorManager to support both GPS and BME280 sensors
  • Configure GPS baudrate to 9600
  • Initialize GPS enable pin in variant.cpp
  • GPS can be enabled/disabled via device settings

Hardware

  • GPS Module: L76KB
  • GPS Pins:
    • TX: Pin 7 (Serial1 RX)
    • RX: Pin 6 (Serial1 TX)
    • EN: Pin 18 (GPS enable/power control)
    • STANDBY: Pin 0 (not used)

Testing

  • GPS functionality tested and working
  • BME280 sensor continues to work alongside GPS
  • GPS can be toggled on/off via device settings

This enables location tracking capabilities for the SenseCap Solar board while maintaining compatibility with existing sensor functionality.

- Enable GPS support (L76KB module) via ENV_INCLUDE_GPS
- Add GPS pin definitions (TX, RX, EN, STANDBY) to platformio.ini
- Use EnvironmentSensorManager to support both GPS and BME280 sensors
- Add MicroNMEA library dependency for GPS parsing
- Configure GPS baudrate to 9600
- Initialize GPS enable pin in variant.cpp
- GPS can be enabled/disabled via device settings
@Habbie
Copy link

Habbie commented Jan 12, 2026

My SenseCap P1 Pro is now running a build of this PR. GPS works, giving me location and time. I do not have a BME280 I think (at least, I did not add one myself - I get a temperature reading but not humidity).

Thank you!

@Confituurke
Copy link
Author

My SenseCap P1 Pro is now running a build of this PR. GPS works, giving me location and time. I do not have a BME280 I think (at least, I did not add one myself - I get a temperature reading but not humidity).

Thank you!

Thank you for testing! Much appreciated.

To the repo maintainers, if any changes are needed, let me know.

@radiobuisje-cmyk
Copy link

I've also installed it, and I'm getting a proper lock on satellites, time, and position. Turning it off with GPS on/off also works.

Now I just need to find someone who can fix the PWR on/off button :)

@Habbie
Copy link

Habbie commented Jan 15, 2026

I wonder (and I can't compare to before - this GPS patched build is the first thing I installed after unpacking my sensecap) if getting location + time at some frequency (don't know how often this happens) is drawing too much power for the panel+battery to keep up in this winter weather.

@Habbie
Copy link

Habbie commented Jan 16, 2026

Based on the discussion in #1353 I will likely remove the GPS from my SenseCap. Of course this PR is still useful - some people may have a different power setup, or want the GPS because their SenseCap is on a boat or something.

In a build with this PR, if GPS is not turned on, does the GPS still draw power?

@Habbie
Copy link

Habbie commented Jan 16, 2026

In a build with this PR, if GPS is not turned on, does the GPS still draw power?

I guess

EN: Pin 18 (GPS enable/power control)

answers that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants