Getting started with ESP32 Deep Sleep

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2024
  • 🤩 Check out this Free Arduino Course 👇
    bit.ly/get_Arduino_skills
    Want to learn more? Check out our courses!
    bit.ly/3qFRrAH
    Check out the article on our website:
    bit.ly/3KHq9Rt
    ESP32 Core install TH-cam Video:
    • ESP32 install Arduino ...
    _/\\\\\\\\\\\\\_____\\\\\\\\\\\\\\\_____/\\\\\\\\\___
    \/\\\/////////\\\_\___\\\///////////_______/\\\\\\\\\\\\\_
    \/\\\_______\/\\\__\/\\\____________/\\\/////////\\\
    \/\\\\\\\\\\\\\/___\/\\\\\\\\\\\_____\/\\\_______\/\\\
    \/\\\/////////_______\/\\\///////________\/\\\\\\\\\\\\\\\
    \/\\\_____________\/\\\______________\/\\\/////////\\\
    \/\\\_____________\/\\\______________\/\\\_______\/\\\
    \/\\\_____________\/\\\\\\\\\\\\\\\____\/\\\_______\/\\\
    \///_______________\///////////////_________\///________\///_
    We designed this circuit board for beginners!
    Kit-On-A-Shield: amzn.to/3lfWClU
    FOLLOW US ELSEWHERE
    ---------------------------------------------------
    Facebook: / programmingelectronics...
    Twitter: / progelecacademy
    Website: www.programmingelectronics.com/
    **About Us:**
    This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
    **We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**
    00:00 Introduction
    00:33 ESP32 Data Sheet
    02:22 Code Flow
    05:15 The Sketch
    07:43 real world application
    12:34 Let's check our work

ความคิดเห็น • 40

  • @tb303wpf1
    @tb303wpf1 8 หลายเดือนก่อน

    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.

  • @jeffschroeder4805
    @jeffschroeder4805 หลายเดือนก่อน

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

  • @scienceoftheuniverse9155
    @scienceoftheuniverse9155 9 หลายเดือนก่อน +1

    Really appreciate your great effort.

  • @nkbdl
    @nkbdl หลายเดือนก่อน +1

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

  • @kwissiekwissie
    @kwissiekwissie 8 หลายเดือนก่อน +1

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

    • @programmingelectronics
      @programmingelectronics  8 หลายเดือนก่อน

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

  • @jackmanjls
    @jackmanjls 2 หลายเดือนก่อน +1

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

  • @Maaaurinho
    @Maaaurinho 7 หลายเดือนก่อน

    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?

  • @mt-qc2qh
    @mt-qc2qh 9 หลายเดือนก่อน +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.

  • @andyh8239
    @andyh8239 9 หลายเดือนก่อน +1

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

  • @accountforyoutube2280
    @accountforyoutube2280 22 วันที่ผ่านมา

    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?

  • @pasutatuptim
    @pasutatuptim 9 หลายเดือนก่อน +1

    thank you

  • @EasyOne
    @EasyOne 3 หลายเดือนก่อน

    Very well explained

  • @ChrysalideEngineering
    @ChrysalideEngineering 9 หลายเดือนก่อน +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

  • @WadeChannal
    @WadeChannal 7 หลายเดือนก่อน

    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.

  • @danimahardikasuroso9497
    @danimahardikasuroso9497 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน

      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!

  • @j.d.parkman7574
    @j.d.parkman7574 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน +1

      Awesome - I'll see what we can do!

    • @billybbob18
      @billybbob18 6 หลายเดือนก่อน +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 6 หลายเดือนก่อน

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

  • @DIYRobotGirl
    @DIYRobotGirl 8 หลายเดือนก่อน

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

  • @psykopat81
    @psykopat81 6 หลายเดือนก่อน

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

  • @ddjazz
    @ddjazz 9 หลายเดือนก่อน +1

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

  • @iniciativa3
    @iniciativa3 4 หลายเดือนก่อน

    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?

  • @RajveerSingh-vf7pr
    @RajveerSingh-vf7pr 3 หลายเดือนก่อน +1

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

  • @serenadenphoto
    @serenadenphoto 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน

      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.

  • @sobhanmovassagh6792
    @sobhanmovassagh6792 9 หลายเดือนก่อน +1

    tnx What is your ide?

  • @Dragonmastur24
    @Dragonmastur24 หลายเดือนก่อน

    bruce lee's reaction time is a second?