• 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

Unit 2 Deep Sleep – Timer Wake Up : DeepSleep-Mode of the ESP32 (TimerWakeUp) only the first 4 letters of the Serial.println()-function will be printed => Boot

Q&A Forum › Category: ESP32 › Unit 2 Deep Sleep – Timer Wake Up : DeepSleep-Mode of the ESP32 (TimerWakeUp) only the first 4 letters of the Serial.println()-function will be printed => Boot
0 Vote Up Vote Down
Hervé Caujolle asked 7 years ago

Hello,
I met the same problem like this website : https://github.com/espressif/arduino-esp32/issues/1651
When I run the example code for the DeepSleep-Mode of the ESP32 (TimerWakeUp) only the first 4 letters of the Serial.println()-function will be printed => Boot.
It would seem serial is not synchronous, so it continues sending after the function returns and you puting to deep sleep stops the serial where it is.

Do you have, please, a solution to display the sentences normally => “Boot number: 25” for example and not “Boot” ?
Best regards, Hervé
Note : I use “DOIT ESP32 DEVKIT V1” model (with 30 pinouts)

4 Answers
0 Vote Up Vote Down
Hervé Caujolle answered 7 years ago

I follow the instructions of “Module 3 Unit 2” in this blog. => add delay(1000); at the line 87

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Hervé, I’m sorry for taking so long to get back to you, but I was on holidays and unfortunately I had very low bandwidth to properly answer questions.

Yes, I’ve updated the code a few weeks ago to add delays to all the deep sleep examples to avoid that problem: https://github.com/RuiSantosdotme/ESP32-Course/tree/master/code/DeepSleep

I’m glad you were able to find the solution.

Regards,
Rui

0 Vote Up Vote Down
bart.valom answered 6 years ago

I had the same problem and found this thread only after I solved it myself (using the same approach, adding a delay(1000) statement just before the esp_deep_sleep_start(); statement.
Can someone elaborate what is happening here?
Regards,
Bart

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello Bart,
The code in the course should be updated with this change in the latest version. Basically, if you don’t have the delay, the ESP32 doesn’t have time to print any message in the Serial monitor because it goes into deep sleep mode too quickly (and serial messages are slower to be displayed).
Regards,
Rui

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.