• 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

Running ESP32 data logging temperature to micro SD

Q&A Forum › Category: ESP32 › Running ESP32 data logging temperature to micro SD
0 Vote Up Vote Down
Peter Rowe asked 6 years ago

I wired it up as shown in the course material. The code compiles and uploads just fine. I push the EN button and it starts running. It gets the time and temperature and logs them to the SD just fine. When it comes out of deep sleep, it sits printing dots to the serial monitor saying it can’t connect to the WIFI. Pushing EN again connects just fine.

There are some posts on ESP32 forums that suggest it could be an EMI problem that some of the pins are sensitive to false signals.

I’m stuck.

Thank you,

Pete Rowe

Question Tags: Radiopete
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Peter.
It seems that your ESP32 is having issues trying to reconnect after deep sleep.
I’ve read that this can help:

“Try adding a call to .disconnect() before putting the ESP32 to sleep, and calling .reconnect() after it wakes up.”
https://forums.adafruit.com/viewtopic.php?f=24&p=731631
 
What ESP32 are you using?
 

Regards,
Sara

0 Vote Up Vote Down
Peter Rowe answered 6 years ago

Thank you so much, Sara. that solved the problem. WiFy.disconnect/reconnect (); was the key. I’m learning so much through your great courses and appreciate your quick response!
I using a DOIT ESP32 dev kit V1.
So far, I’ve had to press the EN button to run a program. Is there a way to set it to run on power on?
 
Thanks,
Pete

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

I’m glad that solved the problem. I though that was an issue only with the huzzah32, but it seems that it happens with other boards too. I have no idea why??! My boards work fine (DOIT ESP32 dev Kit V1).

As for the other question: did you have to press the BOOT button to upload code?

On the boards that I need to press the BOOT button, the code doesn’t run automatically, I need to press the EN button so the code starts running.

For the boards that don’t need to press the BOOT button to upload code, the code runs straight away once uploaded.

So, I think that if you follow what is described here, it will resolve your issue: https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/

Regards,

Sara

0 Vote Up Vote Down
Peter Rowe answered 6 years ago

Thank you Sara. I have the 10 uF cap installed from EN to GND and so it always uploads just fine without pushing the boot button. In reading the link you sent I found that pulling the EN pin up to 3.3 volts fixed the autorun problem. I used 3.3k and now it autoruns just fine.
 
Now I can move on to learn great stuff!
 
Peter

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

Hi Peter.
I’m glad it’s fixed.
I’ll close this question.
If you have more doubts, you just need to post a new question in our forum.
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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.