• 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

ESP32 CAM project module 2 unit 4 – code freezing

Q&A Forum › Category: ESP32 › ESP32 CAM project module 2 unit 4 – code freezing
0 Vote Up Vote Down
Claudio asked 4 years ago

Hi there,
Trying to get the ESP32 CAM project module 2 unit 4 working.
the code stop working after pressing and holding the push button too long (App. 3-4 sec)
Any idea?

6 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

What output do you get on the serial monitor?
Which pin did you connect to the pushbutton?
Which board are you using?

0 Vote Up Vote Down
Claudio answered 4 years ago
  1. I get the following reading as expected. but it also stop working “Button Pressed
    Picture file name: /picture3.jpg
    Saved file to path: /picture3.jpg”
  2. GPIO 16
  3. ESP32-CAM Al-Thinker
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

I have this book as well as the same board so will give it a try and see what I get.

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

Hi Claudio.
Does it stop working with short and long presses or just long presses?
Regards,
Sara

0 Vote Up Vote Down
Claudio answered 4 years ago

Hi Sara,
Thanks for your interest. I think I had a problem with the pullup resistor. I first removed the resistor and change line 50 in the code to : pinMode(buttonPin, INPUT_PULLUP);
then it worked.
Thanks

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

Great!
I’m glad it is solved now.
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

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.