• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP8266 Sleep/Wake MicroPython working example code, see below

Q&A Forum › ESP8266 Sleep/Wake MicroPython working example code, see below
0 Vote Up Vote Down
Gary asked 3 years ago

Hi Sara, et all,
Any suggestions for ESP8266 Sleep/Wake MicroPython code?
Thanks,
Gary

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
The ESP8266 can be awakened from deep sleep using external wake-up and timer wake up.
Check this tutorial: https://randomnerdtutorials.com/micropython-esp8266-deep-sleep-wake-up-sources/
Regards,
Sara

0 Vote Up Vote Down
Gary answered 3 years ago

Thanks Sara,
That works.
I did do a topic surch, but did’t the article you kindly referenced.
Thanks
Gary
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Henry Cheng answered 3 years ago

Hi Sara,
I have the same issue when loading the deepsleep code and name as boot.py into the ESP8266 while connecting the RST pin to GPIO16.
It kept reboot from the deepsleep loop without accepting any else command such as STOP or Ctrl+D at Thonny.  
The only way to resolve it is to disconnect the jumb wire from RST to GPIO16 and reflash the board with new bin file.
Regards,
Henry

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Can you better describe your issue?
You need to take into account that when the ESP goes into deep sleep mode, it won’t respond to Python commands because it is sleeping. So, it might be tricky to get a connection to the IDE when using that type of deep sleep.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.