Getting started with ESP32 Deep Sleep

  Переглядів 7,996

Programming Electronics Academy

Programming Electronics Academy

День тому

🤩 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 UKposts 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
@scienceoftheuniverse9155
@scienceoftheuniverse9155 8 місяців тому
Really appreciate your great effort.
@programmingelectronics
@programmingelectronics 8 місяців тому
Thanks a ton for watching!
@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).
@nkbdl
@nkbdl 25 днів тому
Thanks, all the video is about is the 2 lines. But without these 2 lines I was pretty lost... lol
@kwissiekwissie
@kwissiekwissie 8 місяців тому
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 місяці тому
Excellent presentation. To the point and very usable info. Thanks for taking the time to explain.
@programmingelectronics
@programmingelectronics 2 місяці тому
Thanks for watching!
@mt-qc2qh
@mt-qc2qh 8 місяців тому
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.
@programmingelectronics
@programmingelectronics 8 місяців тому
Very cool! Thanks for sharing your setup!
@andyh8239
@andyh8239 8 місяців тому
I feel like you are coding my life. Wake up, go to work, prepare to sleep, sleep, repeat.
@programmingelectronics
@programmingelectronics 8 місяців тому
lol! That's how it feels for me too :)
@pasutatuptim
@pasutatuptim 8 місяців тому
thank you
@programmingelectronics
@programmingelectronics 8 місяців тому
Thanks for watching!
@EasyOne
@EasyOne 3 місяці тому
Very well explained
@programmingelectronics
@programmingelectronics 3 місяці тому
Thank you!
@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?
@Maaaurinho
@Maaaurinho 6 місяців тому
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?
@ChrysalideEngineering
@ChrysalideEngineering 8 місяців тому
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
@programmingelectronics
@programmingelectronics 8 місяців тому
Thanks for adding this Jean-François!
@j.d.parkman7574
@j.d.parkman7574 8 місяців тому
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 8 місяців тому
Awesome - I'll see what we can do!
@billybbob18
@billybbob18 6 місяців тому
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
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 2 місяці тому
great video but a current graph would have been super helpful in boots
@programmingelectronics
@programmingelectronics 2 місяці тому
Agreed!
@ddjazz
@ddjazz 8 місяців тому
you can also enter 5e6 for 5 second sleep as a shortcut
@programmingelectronics
@programmingelectronics 8 місяців тому
Awesome! Thanks for adding that!
@danimahardikasuroso9497
@danimahardikasuroso9497 8 місяців тому
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 8 місяців тому
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!
@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.
@psykopat81
@psykopat81 6 місяців тому
hi, does esp32 cam automatically connect to wifi after waking up?
@iniciativa3
@iniciativa3 3 місяці тому
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 8 місяців тому
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 8 місяців тому
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 8 місяців тому
tnx What is your ide?
@programmingelectronics
@programmingelectronics 8 місяців тому
I use either Arduino IDE 1 or 2
@Dragonmastur24
@Dragonmastur24 Місяць тому
bruce lee's reaction time is a second?
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Переглядів 25 млн
0% Respect Moments 😥
00:27
LE FOOT EN VIDÉO
Переглядів 35 млн
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Переглядів 25 млн