<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to optimise DeepSleepmode for ESP32 LOra LilyGo board ?]]></title><description><![CDATA[<p dir="auto">Hello.<br />
I'm currently using the ESP32 Lora LilyGo board (ESP32-LILYGOT31.6.1) and I want to reduce the energy as much as possible.<br />
I'm trying to put the board into Hibernation (Deep Sleep mode) for 20mn before waking up the board for a transmission that is around 15s long.<br />
I'm able to do so, but it still consume around 6mA. Is there a way to reduce this energy usage ?</p>
<p dir="auto">Could you tell me what are the best settings for putting all the board (OLED, Lora; etc...) in deep sleep mode ? I couldn't fined any reference on Gibbus.</p>
<p dir="auto">Thanks.</p>
<p dir="auto">The code I'm using right now is :<br />
LoRa.sleep();</p>
<p dir="auto">SPI.end();</p>
<p dir="auto">pinMode(RADIO_CS_PIN, INPUT);<br />
pinMode(RADIO_RST_PIN, INPUT);<br />
pinMode(RADIO_DIO0_PIN, INPUT);<br />
pinMode(RADIO_CS_PIN, INPUT);<br />
pinMode(OLED_SDA, INPUT);<br />
pinMode(OLED_SCL, INPUT);<br />
pinMode(OLED_RST, INPUT);<br />
pinMode(RADIO_SCLK_PIN, INPUT);<br />
pinMode(RADIO_MISO_PIN, INPUT);<br />
pinMode(RADIO_MOSI_PIN, INPUT);<br />
pinMode(SDCARD_MOSI, INPUT);<br />
pinMode(SDCARD_MISO, INPUT);<br />
pinMode(SDCARD_SCLK, INPUT);<br />
pinMode(SDCARD_CS, INPUT);<br />
pinMode(BOARD_LED, INPUT);<br />
pinMode(ADC_PIN, INPUT);</p>
<p dir="auto">// Specifique au mode hibernation / C'est un paramétrage du DeepSleep pour désactiver la mémoire<br />
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH,   ESP_PD_OPTION_OFF);<br />
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);<br />
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF);<br />
esp_sleep_pd_config(ESP_PD_DOMAIN_XTAL,         ESP_PD_OPTION_OFF);</p>
<p dir="auto">// Passage en deep_sleep - Set up timer as the wake up source and set sleep duration<br />
esp_sleep_enable_timer_wakeup(duree_entre_envoi_secondes * uS_TO_S_FACTOR);<br />
Serial.flush();  // Wait for the transmission of outgoing serial data to complete.<br />
esp_deep_sleep_start();</p>
]]></description><link>https://www.community.lilygo.cc/topic/1014/how-to-optimise-deepsleepmode-for-esp32-lora-lilygo-board</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 23:27:01 GMT</lastBuildDate><atom:link href="https://www.community.lilygo.cc/topic/1014.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Jun 2024 14:51:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to optimise DeepSleepmode for ESP32 LOra LilyGo board ? on Tue, 11 Jun 2024 11:17:10 GMT]]></title><description><![CDATA[<p dir="auto">Great info also check <a href="https://uifcalculator.co.za/" rel="nofollow ugc">UIF Calculator</a>.......</p>
]]></description><link>https://www.community.lilygo.cc/post/1832</link><guid isPermaLink="true">https://www.community.lilygo.cc/post/1832</guid><dc:creator><![CDATA[steve3822]]></dc:creator><pubDate>Tue, 11 Jun 2024 11:17:10 GMT</pubDate></item></channel></rss>