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)
What output do you get on the serial monitor?
Which pin did you connect to the pushbutton?
Which board are you using?
- 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”
- GPIO 16
- ESP32-CAM Al-Thinker
I have this book as well as the same board so will give it a try and see what I get.
Does it stop working with short and long presses or just long presses?
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.