ESP32 sleep - other periferals also sleep

LeiaOrgana
Posts: 2
Joined: Wed Dec 20, 2023 1:59 pm

ESP32 sleep - other periferals also sleep

Postby LeiaOrgana » Fri Dec 22, 2023 3:59 pm

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

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 sleep - other periferals also sleep

Postby lbernstone » Sat Dec 23, 2023 5:41 pm

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.

Who is online

Users browsing this forum: No registered users and 50 guests