Getting started with ESP32 Deep Sleep

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 42

  • @jackmanjls
    @jackmanjls 10 месяцев назад +1

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

  • @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.

  • @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.

  • @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!

  • @jeffschroeder4805
    @jeffschroeder4805 9 месяцев назад

    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).

  • @RajveerSingh-vf7pr
    @RajveerSingh-vf7pr 10 месяцев назад +1

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

  • @nkbdl
    @nkbdl 8 месяцев назад +1

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

  • @chrysalide_electronics
    @chrysalide_electronics Год назад +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

  • @andyh8239
    @andyh8239 Год назад +1

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

  • @accountforyoutube2280
    @accountforyoutube2280 8 месяцев назад

    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?

  • @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 Год назад +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 Год назад

      @@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.....?

  • @EasyOne
    @EasyOne 11 месяцев назад

    Very well explained

  • @ddjazz
    @ddjazz Год назад +1

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

  • @md0md1
    @md0md1 Год назад

    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?

  • @pasutatuptim
    @pasutatuptim Год назад +1

    thank you

  • @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!

  • @DIYRobotGirl
    @DIYRobotGirl Год назад

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

  • @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.

  • @iniciativa3
    @iniciativa3 11 месяцев назад

    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?

  • @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.

  • @jozefsoucik3115
    @jozefsoucik3115 11 дней назад

    just insignificant note: conversion is from seconds to microseconds....not reversed

  • @psykopat81
    @psykopat81 Год назад

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

  • @Dragonmastur24
    @Dragonmastur24 9 месяцев назад

    bruce lee's reaction time is a second?

  • @sobhanmovassagh6792
    @sobhanmovassagh6792 Год назад +1

    tnx What is your ide?