Beyond the Zzz's: ESP32's External Wake-Up in Deep Sleep Explored

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2024
  • 🤩 Check out this Free Arduino Course 👇
    bit.ly/get_Arduino_skills
    **Get the code, transcript, challenges, etc for this lesson on our website**
    bit.ly/3PcVTiy
    Getting Started with Deep Sleep: • Getting started with E...
    Wake up with ext1: • The ESP32 Wake-Up Call...
    Want to learn more? Check out our courses!
    bit.ly/3Z7qKBY
    _/\\\\\\\\\\\\\_____\\\\\\\\\\\\\\\_____/\\\\\\\\\___
    \/\\\/////////\\\_\___\\\///////////_______/\\\\\\\\\\\\\_
    \/\\\_______\/\\\__\/\\\____________/\\\/////////\\\
    \/\\\\\\\\\\\\\/___\/\\\\\\\\\\\_____\/\\\_______\/\\\
    \/\\\/////////_______\/\\\///////________\/\\\\\\\\\\\\\\\
    \/\\\_____________\/\\\______________\/\\\/////////\\\
    \/\\\_____________\/\\\______________\/\\\_______\/\\\
    \/\\\_____________\/\\\\\\\\\\\\\\\____\/\\\_______\/\\\
    \///_______________\///////////////_________\///________\///_
    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
    01:12 ext0
    02:16 Pinout
    04:21 The Code
    05:38 ext0

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

  • @mansurbhamani3905
    @mansurbhamani3905 8 หลายเดือนก่อน +2

    It will be very useful where one has to send notifications on alerts while one is using paid data service while it keeps polling the net (kaching teller box every second) even though the alert event has not happened. It is a great idea to get esp32 to snorrrrrrr while the mice are at play.

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

    Is there a way to use a long press on the push button to put the esp32 to sleep and vice versa? Let’s say… keep the push button pressed for a second to wake up the esp32. Thanks

  • @u1kim
    @u1kim 8 หลายเดือนก่อน +2

    Hi, is there any way to use the deep sleep and wake up functions within the void loop? I've known about deep sleep and wakeup but it's no use for most of my sketches that use void loop to perform various tasks. Thanks.

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

      Yes - I don't think there is any reason you can't do that. Just keep in mind, when the sleep function is called, the loop will stop, and when you're program starts again, it will be from the top of setup.

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

      @@programmingelectronics Thank you for your reply. So putting the unit into deep sleep is not hard at practically any part of the sketch, but it seems that waking it up by input seems impossible except for a hard reset. Specifically, I was trying to use a touch sensor to accomplish my objective without any success. If you can shed any light on this, I would be grateful.

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

    Your videos are super helpful but I just have one problem. So I have a project that uses esp-now to communicate. One acts as the transmitter and is basically just a button that when it is pressed, it sends a message to remotely turn on some peripherals connected to the receiver. My question is, is there a way to use ext0 but instead of a button that is connected to the receiver, the transmitter will send a value to tell the receiver whether to wake up or sleep?

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

    Thanks! So, if you lose all of your variables and such, then deep sleep isn't equivalent to putting your computer to sleep, it's more like a reset switch, correct?

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

      That's exactly right Keith! From a functional perspective, it is very much light pressing the reset switch.

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

      But RTC memory is not disabled in deep sleep so its not exactly reset button. Youcan store data there