Skip to content

Commit

Permalink
Update tbeam sleep example
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Nov 19, 2024
1 parent 031f52c commit c9abb2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions examples/TBeamFactory/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ void disablePeripherals()
PMU->disablePowerOutput(XPOWERS_DCDC5);
PMU->disablePowerOutput(XPOWERS_ALDO1);
#else
PMU->disableSystemVoltageMeasure();
PMU->disableVbusVoltageMeasure();
PMU->disableBattVoltageMeasure();

// LoRa VDD
PMU->disablePowerOutput(XPOWERS_ALDO2);
//GNSS VDD
Expand Down
1 change: 1 addition & 0 deletions examples/TBeamFactory/README.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# DATE: 20241119

# GPIO_WAKEUP_SLEEP_CUR

Expand Down
8 changes: 4 additions & 4 deletions examples/TBeamFactory/TBeamFactory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ void handleEvent(AceButton *button, uint8_t eventType, uint8_t buttonState)

// esp_sleep_enable_ext0_wakeup(GPIO_NUM_0, 0);

// TBeam-v1.2 ext1 sleep ~607uA ,
// TBeam-v1.2 ext1 sleep ~540uA ,
// See sleep_current.jpg
esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);


// GPIO WAKE UP + TIMER WAKE UP ~500uA
esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
esp_sleep_enable_timer_wakeup(30 * 1000 * 1000);
// GPIO WAKE UP + TIMER WAKE UP ~530uA
// esp_sleep_enable_ext1_wakeup(_BV(BUTTON_PIN), ESP_EXT1_WAKEUP_ALL_LOW);
// esp_sleep_enable_timer_wakeup(30 * 1000 * 1000);

esp_deep_sleep_start();

Expand Down
Binary file modified examples/TBeamFactory/images/GPIO_WAKEUP_SLEEP_CUR.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c9abb2f

Please sign in to comment.