Getting started with ESP32 Deep Sleep

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 40

  • @accountforyoutube2280
    @accountforyoutube2280 5 місяців тому

    Thank you so much for an amazing video! Im making a remote DIY system that is controlled through an app, so my esp32 is supposed to listen to the requests through wifi all the time. However as long as I understood deep sleep sets esp32 to "vegetable" like state for some time, which is not really useful in my case considering the fact that microcontroller can be full time connected to the power.
    Would you recommend to use a frequent deep sleep mode every 5 -10 minutes or maybe there are some esp32 alternatives that can run in wifi modes much longer?

  • @chrysalide_electronic
    @chrysalide_electronic Рік тому +2

    Hi,
    I thing i didn't see very commonly is the trickle charging 60-65%, that's optimum for life time of Lithium batteries for long term.
    Regards
    Jean-François

  • @RajveerSingh-vf7pr
    @RajveerSingh-vf7pr 7 місяців тому +1

    great video but a current graph would have been super helpful in boots

  • @danimahardikasuroso9497
    @danimahardikasuroso9497 Рік тому +2

    Hi can you demonstrate wake up by interrupt so whenever the esp32 recv data from esp now it will wake up and then go to sleep again?

    • @programmingelectronics
      @programmingelectronics  Рік тому

      This is a neat idea! I'll have to check this out.
      A potential issue I see is that the ESP32 uses it's RF antenna when engaged in ESPNOW, which is powered down in deep sleep. I'll have to do a little research and find out...Thanks for the recommendation!

  • @nkbdl
    @nkbdl 5 місяців тому +1

    Thanks, all the video is about is the 2 lines. But without these 2 lines I was pretty lost... lol

  • @iniciativa3
    @iniciativa3 8 місяців тому

    I tried this 1 year ago... I tried to let him sleep for many hours, days or weeks but the internal timer went crazy, I wanted him to wake up to bring data from a database and show it on an epaper display and that's why I couldn't, In short periods of time it worked correctly but when left for 24 or 48 hours it went crazy, it restarted every so often, do you know if this has already been corrected?

  • @psykopat81
    @psykopat81 11 місяців тому

    hi, does esp32 cam automatically connect to wifi after waking up?

  • @serenadenphoto
    @serenadenphoto Рік тому +1

    I tried this sketch on an Arduino Nano ESP32. It just killed the USB connection.
    Error message:
    dfu-util: No DFU capable USB device available
    Failed uploading: uploading error: exit status 74

    • @programmingelectronics
      @programmingelectronics  Рік тому

      If you double click the reset button, you'll get the port to show up again.
      You'll probably have to select the board and port again - then you should be able to upload a different sketch fine.
      Just as an FYI, this appears to be an issue with these Arduino Nano ESP32s as far as I can tell, nothing specifically about deep sleep.

  • @mt-qc2qh
    @mt-qc2qh Рік тому +1

    Another winning explanation! I try to avoid any esp32 that has an external serial chip or that uses a 1117 power regulator. These just suck quiescent power from the battery when sleeping. The XIAO esp32C3 and the later esp32c3 dev boards using native usb have served me well. I package them with a 900ma Lipofe cr123 rechargeable and throw a little 5v solar module to keep them charged. I've been running several sensors with this combination, placed in a window, for 2 years now without the need for any other maintenance. To further use the power budget effectively I do use the ESPNOW communication you introduced in your other videos.

  • @jackmanjls
    @jackmanjls 7 місяців тому +1

    Excellent presentation. To the point and very usable info. Thanks for taking the time to explain.

  • @Dragonmastur24
    @Dragonmastur24 6 місяців тому

    bruce lee's reaction time is a second?

  • @andyh8239
    @andyh8239 Рік тому +1

    I feel like you are coding my life.
    Wake up, go to work, prepare to sleep, sleep, repeat.

  • @md0md1
    @md0md1 11 місяців тому

    Thanks man that was a really straightforward video and it worked perfectly, now my esp32 consumes less energy when is not required to do much.
    I have a SD18650 battery and i'd like to calculate how much time it will take until the battery runs out of energy. Logically, deep sleep mode helped me to consume less, but i want to know how much. Sadly, im not very advanced with electric calculations and formulas... could you please help me?

  • @j.d.parkman7574
    @j.d.parkman7574 Рік тому +1

    I've been playing with a Vroom and Wrover this summer and neither reach double digit mA power let alone micro. Needless to say I am interested in disconnecting from peripherals and such. I thought that was just part of the deal but when the power indicating LED is on all the time it apparently is not, LOL! So if you have upcoming content in this regard count me in!

    • @programmingelectronics
      @programmingelectronics  Рік тому +1

      Awesome - I'll see what we can do!

    • @billybbob18
      @billybbob18 11 місяців тому +1

      I like to cut the LEDs with diagonal side cutters for lower power projects. Bypass the linear voltage regulator. Run the ESP32 with a boost or buck converter and switch power of the converter with a cheap microcontroller (I use an AtTiny) and a mosfet. This way, the battery powers the cheap micro and the cheap micro switches power for the boost converter to power the ESP32. I'm sure there are cheaper ways to accomplish this but this is what I do as a hobbyist. I don't use the sleep mode of the ESP32 very often. My method only draws 280 NANOAMPS or 0.00028mA when sleeping. This is far less that the natural discharge of any battery when it's not connected to anything.

    • @j.d.parkman7574
      @j.d.parkman7574 11 місяців тому

      @@billybbob18 Thanks for the reply and info. The best part is I understand about 98 percent of your advice, LOL! That means this is something I can try to work with. It will be helpful to others as well. Good job. Can I hit thumbs up/Like more than once.....?

  • @jeffschroeder4805
    @jeffschroeder4805 6 місяців тому

    Thank you, can't wait to use deep sleep. I have a battery powered LORA transmitter at my mailbox to alert me when the door is opened. As it will only be activated (reed switch on the mailbox door) a couple of times a day, it can stay in deep sleep almost all the time (will have to cycle it to avoid that maximum deep sleep time).

  • @kwissiekwissie
    @kwissiekwissie Рік тому +1

    WOW!!!! thats REALLY easy!!! well explained!!!! thanks!!!

    • @programmingelectronics
      @programmingelectronics  Рік тому

      I agree - it was way easier than I'd thought it be! Thanks so much for watching!

  • @WadeChannal
    @WadeChannal Рік тому

    Dont really understand why everyone saying that loop is not working while using deep sleep. I tried to prepare for sleep and run sleep mode in loop and it worked with other commands before running deep sleep.

  • @ddjazz
    @ddjazz Рік тому +1

    you can also enter 5e6 for 5 second sleep as a shortcut

  • @tb303wpf1
    @tb303wpf1 Рік тому

    Hunt for Red October is one of my favorite movies of all time. Sean Connery was awesome as usual. He was like a walking catch phrase in that movie.

  • @scienceoftheuniverse9155
    @scienceoftheuniverse9155 Рік тому +1

    Really appreciate your great effort.

  • @DIYRobotGirl
    @DIYRobotGirl Рік тому

    I would like to see this with voice command being the wake interrupt like an Alexa Echo

  • @sobhanmovassagh6792
    @sobhanmovassagh6792 Рік тому +1

    tnx What is your ide?

  • @EasyOne
    @EasyOne 8 місяців тому

    Very well explained

  • @pasutatuptim
    @pasutatuptim Рік тому +1

    thank you