Page 1 of 1

ESP32 sleep - other periferals also sleep

Posted: Fri Dec 22, 2023 3:59 pm
by LeiaOrgana
Hi, thanks for membership

I have an ESP32 WROOM that goes to sleep whit a timer, that works well:

Code: Select all

// ENABLE SLEEP TIMER AND GO TO SLEEP
  esp_sleep_enable_timer_wakeup(sleepTimeSec * 1000000);       // Convert seconds to microseconds
  esp_deep_sleep_start();
Q:
My question is do ESP32 deep_sleep also make LoRa Ai-Thinker SX1276 Ra-01H sleep?
If not, how can I make it go to sleep?


My config/pins I use for Ra-01H (this can not be changed, PCB is finised)

Code: Select all

#define SCK  5
#define MISO 19
#define MOSI 27
#define SS   18
#define RST  14
#define DIO0 26

Re: ESP32 sleep - other periferals also sleep

Posted: Sat Dec 23, 2023 5:41 pm
by lbernstone
In most cases, when the device goes to sleep, that rst pin will be floating, which is typically off.
The best way to keep it off is to put a 50K pull-down resistor on the rst pin.
You can do it through software by setting the pin low just before you go into sleep. If for some reason that doesn't stay low during sleep, you can force it to stay low by calling gpio_deep_sleep_hold_en.