Skip to content

Commit

Permalink
Merge branch 'main' into feat-sensor-config
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs authored Apr 17, 2024
2 parents 3315e43 + e829ef7 commit 823d3e1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
1 change: 1 addition & 0 deletions BresserWeatherSensorLW.ino
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
// 20240414 Added separation between LoRaWAN and application layer
// Fixed battLevel calculation
// 20240415 Added ESP32-S3 PowerFeather
// 20240416 Added enabling of 3.3V power supply for FeatherWing on ESP32-S3 PowerFeather
//
// ToDo:
// -
Expand Down
2 changes: 1 addition & 1 deletion BresserWeatherSensorLWCfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
#elif defined(LORAWAN_NODE)
// External Li-Ion Battery connected to solar charger
#define PIN_ADC_IN A3
#elif defined(FIREBEETLE_ESP32_COVER_LORA)
#elif defined(FIREBEETLE_ESP32_COVER_LORA) || defined(ARDUINO_heltec_wifi_32_lora_V3)
// On-board VB
#define PIN_ADC_IN A0
#elif defined(ARDUINO_M5STACK_Core2) || defined(ARDUINO_M5STACK_CORE2)
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This is a remake of [BresserWeatherSensorTTN](https://github.com/matthias-bs/Bre
* Read the excellent article [RadioLib LoRaWAN on TTN starter script](https://github.com/jgromes/RadioLib/blob/master/examples/LoRaWAN/LoRaWAN_Starter/notes.md)
* You currently need the latest version (HEAD) of [RadioLib](https://github.com/jgromes/RadioLib)
* Try and configure [BresserWeatherSensorReceiver](https://github.com/matthias-bs/BresserWeatherSensorReceiver) stand-alone before using it with BresserWeatherSensorLW
* LoRaWAN downlink commands (and responses) are not compatible with [BresserWeatherSensorTTN](https://github.com/matthias-bs/BresserWeatherSensorTTN)

## Features

Expand Down Expand Up @@ -65,8 +66,10 @@ This project is in early stage of development - stay tuned.
| --------- | ------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------- | ------------ | -------- |
| :hourglass: | [LILYGO®TTGO-LORA32 V1](https://github.com/Xinyuan-LilyGo/TTGO-LoRa-Series) | TTGO LoRa32-OLED /<br>TTGO LoRa32 V1 (No TFCard) | TTGO_LORA32_V1 | SX1276 (HPD13A) | - |
| :hourglass: | [LILYGO®TTGO-LORA32 V2](https://github.com/LilyGO/TTGO-LORA32) | TTGO LoRa32-OLED /<br>TTGO LoRa32 V2 | TTGO_LoRa32_V2 | SX1276 (HPD13A) | For LMIC only: Wire DIO1 to GPIO33 |
| :white_check_mark: | [LILYGO®TTGO-LORA32 V2.1](https://www.lilygo.cc/products/lora3?variant=42272562282677) | TTGO LoRa32-OLED /<br>TTGO LoRa32 V2.1 (1.6.1) | TTGO_LoRa32_v21new | SX1276 (HPD13A) | - |
| :hourglass: | [Heltec Wireless Stick](https://heltec.org/project/wireless-stick/) | Heltec Wireless Stick | heltec_wireless_stick | SX1276 | - |
| :white_check_mark: | [LILYGO®TTGO-LORA32 V2.1](https://www.lilygo.cc/products/lora3?variant=42272562282677) | TTGO LoRa32-OLED /<br>TTGO LoRa32 V2.1 (1.6.1) | TTGO_LoRa32_v21new | SX1276 (HPD13A) | - |
| :hourglass: | [Heltec Wireless Stick](https://heltec.org/project/wireless-stick/) | Heltec Wireless Stick | heltec_wireless_stick | SX1276 | - |
| :hourglass: | [Heltec WiFi LoRa 32 V2](https://heltec.org/project/wifi-lora-32/) | Heltec WiFi LoRa 32(V2) | heltec_wifi_lora_32_V2 | SX1276 | - |
| :hourglass: | [Heltec WiFi LoRa 32 V3](https://heltec.org/project/wifi-lora-32-v3/) | Heltec WiFi LoRa 32(V3) | heltec_wifi_32_lora_V3 | SX1262 | - |
| :white_check_mark: | [LoRaWAN_Node](https://github.com/matthias-bs/LoRaWAN_Node) | FireBeetle-ESP32 | ESP32_DEV -> LORAWAN_NODE | SX1276 (RFM95W) | - |
| :white_check_mark: | [DFRobot FireBeetle ESP32 IoT Microcontroller](https://www.dfrobot.com/product-1590.html) with [FireBeetle Cover LoRa Radio 868MHz](https://www.dfrobot.com/product-1831.html) | FireBeetle-ESP32 | ESP32_DEV & FIREBEETLE_ESP32_COVER_LORA | SX1276 (LoRa1276) | Wiring on the cover: <br>D2 to RESET<br>D3 to DIO0<br>D4 to CS<br>D5 to DIO1 |
| :hourglass: | [Adafruit Feather ESP32S2 with Adafruit LoRa Radio FeatherWing](https://github.com/matthias-bs/BresserWeatherSensorReceiver#adafruit-feather-esp32s2-with-adafruit-lora-radio-featherwing) | Adafruit Feather ESP32-S2 | FEATHER_ESP32S2 | SX1276 (RFM95W) | **No Bluetooth available!**<br>Wiring on the Featherwing:<br>E to IRQ<br>D to CS<br>C to RST<br>A to DI01 |
Expand Down
2 changes: 2 additions & 0 deletions src/adc/adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ uint16_t getBatteryVoltage(void)
#if defined(ARDUINO_ARCH_RP2040)
// Not implemented - no default VBAT input circuit (connect external divider to A0)
return 0;
#elif defined(ARDUINO_heltec_wifi_32_lora_V3)
return 0;
#elif defined(ARDUINO_M5STACK_Core2) || defined(ARDUINO_M5STACK_CORE2)
uint16_t voltage = M5.Power.getBatteryVoltage();
log_d("Voltage = %dmV", voltage);
Expand Down

0 comments on commit 823d3e1

Please sign in to comment.