-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: Add Russell, an STM32WL balloon-optimized node #9079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+69
−0
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| ; Russell is a board designed to mount on an ER34615/IFR32700 cell and go Up! on a balloon | ||
| ; Hardware repository: https://github.com/Meshtastic-Malaysia/russell | ||
| ; - RAK3172 STM32WLE5CCU6 MCU + integrated SX1262 LoRa | ||
| ; - CDtop CD-PA1010D GPS | ||
| ; - Bosch Sensortec BME280 sensor | ||
| ; - Consonance CN3158 LiFePO4 solar charger | ||
| [env:russell] | ||
| extends = stm32_base | ||
| board = wiscore_rak3172 | ||
| board_level = extra | ||
| board_upload.maximum_size = 233472 ; reserve the last 28KB for filesystem | ||
| build_flags = | ||
| ${stm32_base.build_flags} | ||
| -Ivariants/stm32/russell | ||
| -DPRIVATE_HW | ||
| lib_deps = | ||
| ${stm32_base.lib_deps} | ||
| # renovate: datasource=custom.pio depName=Adafruit BME280 packageName=adafruit/library/Adafruit BME280 Library | ||
| adafruit/Adafruit BME280 Library@2.3.0 | ||
|
|
||
| upload_port = stlink |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // Pins from https://forum.rakwireless.com/t/rak3172-internal-schematic/4557/2 | ||
| // PB8, PC13 | ||
|
|
||
| static const RADIOLIB_PIN_TYPE rfswitch_pins[5] = {PB8, PC13, RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC}; | ||
|
|
||
| static const Module::RfSwitchMode_t rfswitch_table[4] = { | ||
| {STM32WLx::MODE_IDLE, {LOW, LOW}}, {STM32WLx::MODE_RX, {HIGH, LOW}}, {STM32WLx::MODE_TX_HP, {LOW, HIGH}}, END_OF_MODE_TABLE}; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #ifndef _VARIANT_RUSSELL_ | ||
| #define _VARIANT_RUSSELL_ | ||
|
|
||
| #define USE_STM32WLx | ||
|
|
||
| // I/O | ||
| #define LED_PIN PA0 // Red LED | ||
| #define LED_STATE_ON 1 | ||
| #define BUTTON_PIN PH3 // Shared with BOOT0 | ||
| #define BUTTON_NEED_PULLUP | ||
| // Charger IC charge/standby pins are open-drain with no hardware pull-up: | ||
| // Internal pull-up is needed on STM32 (TODO) | ||
| // #define EXT_CHRG_DETECT PA5 | ||
| // #define EXT_PWR_DETECT PA4 | ||
|
|
||
| // Bosch Sensortec BME280 | ||
| #define HAS_SENSOR 1 | ||
|
|
||
| // CDtop CD-PA1010D | ||
| #define ENABLE_HWSERIAL1 | ||
| #define PIN_SERIAL1_RX PB7 | ||
| #define PIN_SERIAL1_TX PB6 | ||
| #define HAS_GPS 1 | ||
| #define PIN_GPS_STANDBY PA15 | ||
| #define GPS_RX_PIN PB7 | ||
| #define GPS_TX_PIN PB6 | ||
|
|
||
| // LoRa | ||
| /* | ||
| * RAK3172 (-20–85°C) -> No TCXO | ||
| * RAK3172-T (-40–85°C) -> 3.0V TCXO | ||
| * https://github.com/RAKWireless/RAK-STM32-RUI/blob/e5a28be8fab1a492bd9223dd425ca33a8a297d90/variants/WisDuo_RAK3172-T_Board/radio_conf.h#L91 | ||
| */ | ||
| #define TCXO_OPTIONAL | ||
| #define SX126X_DIO3_TCXO_VOLTAGE 3.0 | ||
|
|
||
| // Required to avoid Serial1 conflicts due to board definition here: | ||
| // https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_RAK3172_MODULE.h | ||
| #define RAK3172 | ||
|
|
||
| #endif | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Stary2001 this may be worth implementing on RAK3172 as well