Тёмный

Getting started with ESP32 Deep Sleep 

Programming Electronics Academy
Подписаться 229 тыс.
Просмотров 9 тыс.
50% 1

🤩 FREE Arduino Crash 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 RU-vid 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

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@jackmanjls
@jackmanjls 5 месяцев назад
Excellent presentation. To the point and very usable info. Thanks for taking the time to explain.
@programmingelectronics
@programmingelectronics 5 месяцев назад
Thanks for watching!
@scienceoftheuniverse9155
@scienceoftheuniverse9155 11 месяцев назад
Really appreciate your great effort.
@programmingelectronics
@programmingelectronics 11 месяцев назад
Thanks a ton for watching!
@tb303wpf1
@tb303wpf1 11 месяцев назад
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.
@kwissiekwissie
@kwissiekwissie 11 месяцев назад
WOW!!!! thats REALLY easy!!! well explained!!!! thanks!!!
@programmingelectronics
@programmingelectronics 11 месяцев назад
I agree - it was way easier than I'd thought it be! Thanks so much for watching!
@mt-qc2qh
@mt-qc2qh 11 месяцев назад
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 11 месяцев назад
Very cool! Thanks for sharing your setup!
@jeffschroeder4805
@jeffschroeder4805 4 месяца назад
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).
@andyh8239
@andyh8239 11 месяцев назад
I feel like you are coding my life. Wake up, go to work, prepare to sleep, sleep, repeat.
@programmingelectronics
@programmingelectronics 11 месяцев назад
lol! That's how it feels for me too :)
@accountforyoutube2280
@accountforyoutube2280 3 месяца назад
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?
@EasyOne
@EasyOne 6 месяцев назад
Very well explained
@programmingelectronics
@programmingelectronics 6 месяцев назад
Thank you!
@nkbdl
@nkbdl 3 месяца назад
Thanks, all the video is about is the 2 lines. But without these 2 lines I was pretty lost... lol
@pasutatuptim
@pasutatuptim 11 месяцев назад
thank you
@programmingelectronics
@programmingelectronics 11 месяцев назад
Thanks for watching!
@md0md1
@md0md1 9 месяцев назад
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 11 месяцев назад
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 11 месяцев назад
Thanks for adding this Jean-François!
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 5 месяцев назад
great video but a current graph would have been super helpful in boots
@programmingelectronics
@programmingelectronics 5 месяцев назад
Agreed!
@iniciativa3
@iniciativa3 6 месяцев назад
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?
@j.d.parkman7574
@j.d.parkman7574 11 месяцев назад
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 11 месяцев назад
Awesome - I'll see what we can do!
@billybbob18
@billybbob18 9 месяцев назад
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 9 месяцев назад
@@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.....?
@danimahardikasuroso9497
@danimahardikasuroso9497 11 месяцев назад
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 11 месяцев назад
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!
@psykopat81
@psykopat81 9 месяцев назад
hi, does esp32 cam automatically connect to wifi after waking up?
@ddjazz
@ddjazz 11 месяцев назад
you can also enter 5e6 for 5 second sleep as a shortcut
@programmingelectronics
@programmingelectronics 11 месяцев назад
Awesome! Thanks for adding that!
@WadeChannal
@WadeChannal 10 месяцев назад
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.
@DIYRobotGirl
@DIYRobotGirl 11 месяцев назад
I would like to see this with voice command being the wake interrupt like an Alexa Echo
@serenadenphoto
@serenadenphoto 11 месяцев назад
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 11 месяцев назад
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.
@Dragonmastur24
@Dragonmastur24 4 месяца назад
bruce lee's reaction time is a second?
@sobhanmovassagh6792
@sobhanmovassagh6792 11 месяцев назад
tnx What is your ide?
@programmingelectronics
@programmingelectronics 11 месяцев назад
I use either Arduino IDE 1 or 2
Далее
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Это iPhone 16
00:52
Просмотров 522 тыс.
Linus Torvalds: Speaks on Hype and the Future of AI
9:02
ESPNOW mix with #ESP32 and #ESP8266
25:37
Просмотров 37 тыс.
The Clever Way to Count Tanks - Numberphile
16:45
Просмотров 669 тыс.
ESP32 Battery Life Tips
17:40
Просмотров 3,5 тыс.