Giter Club home page Giter Club logo

Comments (16)

Rita858 avatar Rita858 commented on July 28, 2024 3

Hi,everybody.
How to get hibernate?
Is there any example?

from arduino-esp32.

me-no-dev avatar me-no-dev commented on July 28, 2024

soon :) there is some API exposed but not to switch the sleep mode yet

from arduino-esp32.

GiraffeGiraffe avatar GiraffeGiraffe commented on July 28, 2024

Any timeline for this?

from arduino-esp32.

torntrousers avatar torntrousers commented on July 28, 2024

Using the system call esp_deep_sleep(5000000); seems to work with the latest code and sleeps for that many microseconds.

from arduino-esp32.

igrr avatar igrr commented on July 28, 2024

Also some other wake modes are now implemented (in the ESP-IDF): http://esp-idf.readthedocs.io/en/latest/api/deep_sleep.html

from arduino-esp32.

torntrousers avatar torntrousers commented on July 28, 2024

Is it possible to use those from an Arduino sketch somehow?

from arduino-esp32.

igrr avatar igrr commented on July 28, 2024

You can #include "esp_deep_sleep.h" and call these functions. This does require latest ESP-IDF, with Arduino core added as a component.

from arduino-esp32.

GiraffeGiraffe avatar GiraffeGiraffe commented on July 28, 2024

Now it works: esp_deep_sleep(5000000); Power current is 11uA.

Any way to get hibernation mode deep sleep (2.5uA) ?

from arduino-esp32.

igrr avatar igrr commented on July 28, 2024

Possibly by powering down RTC fast memory. I haven't done current measurements myself yet, so can not say what the resulting current will be.
Also there might be something related to clock selection — right now we are running from 150kHz RC oscillator. I need to check with hardware folks whether running from 32kHz crystal will reduce current (it probably should).

from arduino-esp32.

GiraffeGiraffe avatar GiraffeGiraffe commented on July 28, 2024

Thanks, I will try this.

from arduino-esp32.

GiraffeGiraffe avatar GiraffeGiraffe commented on July 28, 2024

How do I get #include esp_deep_sleep.h with arduino?
I don't know how to call esp_deep_sleep_pd_config from arduino?
Can anybody help me?

from arduino-esp32.

Ashok07 avatar Ashok07 commented on July 28, 2024

esp_deep_sleep(15000000); is work for me
but the problem is, when ever the system is wake up it starts running from main(setup), but i just want to run loop only. which means i just want to run my code from where i left in sleep mode;
pls help me to solve this.

from arduino-esp32.

mdenuit avatar mdenuit commented on July 28, 2024

I don't know if static or global variables are kept in memory after a wake-up, but you could still store data in flash such as variables you want to save and maybe a function pointer to the resume fonction to be executed just after the deep sleep.

from arduino-esp32.

moujix avatar moujix commented on July 28, 2024

hy
someone help me to make esp sleep for many hour or wake up in specific hour
have you any example with arduino

from arduino-esp32.

AndreKR avatar AndreKR commented on July 28, 2024

@moujix https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino#L26

from arduino-esp32.

martinius96 avatar martinius96 commented on July 28, 2024

Nothing new about hibernation in Arduino core?

from arduino-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.