Repository navigation
Conversation
1st-generation board: RFM95W on SPI1 (SCK 10, MOSI 11, MISO 12, NSS 9), RESET 13, DIO0 14, DIO1 15, LED 24. Boots on the North American preset (910.525 MHz, SF7) instead of the EU default, which is off-band for a 915 MHz-only module. Battery (UPS) runtime: 50 MHz system clock, and a WFI light sleep woken by DIO0, USB or a timer alarm. A BOARD_LIGHT_SLEEP flag lets 'powersaving on' accept boards outside ESP32/nRF52. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why 50 MHz is safe, why the EU frequency must be unflagged (and that the unflag strings must match exactly), why std_init gets &SPI1 and NSS is not given to setCS, and what BOARD_LIGHT_SLEEP gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Adds a variant for the iLabs Challenger RP2040 LoRa (1st generation): RP2040 + HopeRF RFM95W (SX1276), Feather form factor, U.FL antenna, LiPo charger.
Pins
RFM95W on SPI1: SCK 10, MOSI 11, MISO 12, NSS 9, RESET 13, DIO0 14, DIO1 15. LED 24. I²C SDA 0 / SCL 1.
Source: arduino-pico
variants/challenger_2040_lora/pins_arduino.h, matching the iLabs datasheet. Uses the existing PlatformIO boardchallenger_2040_lorafrom the RP2040 platform MeshCore already uses.Environments
ilabs_challenger_2040_lora_repeater,_companion_radio_usb,_terminal_chat.Notes for review
-D SS=21: arduino-pico'schallenger_2040_lora/pins_arduino.hdoes not includegeneric/common.h, soSSis undefined and the WiFi library (pulled in by the companion) fails to compile. 21 isPIN_SPI0_SS.ChallengerBoard::sleep(), which uses WFI with interrupts masked around a DIO0 check (so a packet arriving just before WFI still wakes it) and a timer alarm for the periodic wake. One-line change inCommonCLI.cpp:powersaving onalso accepts boards that defineBOARD_LIGHT_SLEEP, instead of only ESP32/nRF52. I can split this into its own PR if preferred.getBattMilliVolts()returns 0.Tested (2 boards, firmware v1.18.0 based, 915 MHz)
traceround trips.powersaving on, running from battery only (USB unplugged): 6/6 traces from the companion answered immediately, so DIO0 wakes the core.dev.🤖 Generated with Claude Code