Skip to content

JBAU92/firmware_solar_fix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11,357 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Meshtastic nRF52 Solar Recovery Fix ☀️🔋

This repository contains modified versions of the Meshtastic firmware specifically optimized for solar repeater nodes based on the nRF52840 architecture.

🚀 The Problem: The Solar "Deep Coma"

Many users of RAK4631 or XIAO nRF52 nodes suffer from the same issue: after several cloudy days, the node depletes its battery and enters a sleep state from which it never wakes up, even when the sun comes out again and the battery recharges. This forces physical trips to manually reset the device.

🛠️ Implemented Solution

I have audited and modified the power management flow to fix this behavior:

  1. Smart FSM Management: The "Critical Battery" threshold has been redefined to 3.4V.
  2. The node now enters deep sleep in a controlled manner before the voltage drops to levels that cause regulator instability.
  3. Hardware Resurrection (LPCOMP): The low-power comparator of the nRF52 chip has been enabled and configured.
  4. The hardware monitors the voltage and triggers an automatic reset (Wake-up) when it detects that the solar charge has raised the battery to safe levels (~3.7V).

📂 Downloads and Hardware

You can find the .uf2 binaries ready to flash in the Releases section:

  • RAK4631: Optimized for WisBlock.
  • XIAO nRF52840: Standard version and I2C version.
  • Pro Micro DIY: For custom implementations.

☕ Support

This fix is the result of several hours analyzing schematics and the Meshtastic source code to improve the resilience of our networks. If this work has saved you a trip to the roof to reset a node:

👉 Buy me a coffee

For technical consulting on professional Mesh network deployments or low-power audits, you can contact me privately.

Meshtastic Logo

Meshtastic Firmware

GitHub release downloads CI CLA assistant Fiscal Contributors Vercel

meshtastic%2Ffirmware | Trendshift

Overview

This repository contains the official device firmware for Meshtastic, an open-source LoRa mesh networking project designed for long-range, low-power communication without relying on internet or cellular infrastructure. The firmware supports various hardware platforms, including ESP32, nRF52, RP2040/RP2350, and Linux-based devices.

Meshtastic enables text messaging, location sharing, and telemetry over a decentralized mesh network, making it ideal for outdoor adventures, emergency preparedness, and remote operations.

Get Started

Join our community and help improve Meshtastic! 🚀

Stats

Alt

About

The official firmware for Meshtastic, an open-source, off-grid mesh communication system.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 67.6%
  • C 30.3%
  • Python 1.3%
  • Shell 0.3%
  • Batchfile 0.3%
  • Dockerfile 0.1%
  • Other 0.1%