I am running the take picture and send through SMTP example in the ESP32-CAM manual. I added code to read ssid, password and recipients from SD card to the sketch. I am doing a digitalRead on GPIO 16 for low condition. Manual says GPIO 16 has pull-up resistor. The problem is the digitalRead() == low is always triggering even with nothing connect to GPIO 16. I am not using uart so why would GPIO 16 always trigger for low condition?
Hi Paul.
You are right that GPIO16 is connected to a pull-up resistor.
What about if you try to read the other condition digitalRead() == HIGH? What do you get?
Regards,
Sara
Hello Sara,
I decided to go a different route with my project. Instead of triggering GPIO 16 to take photo I decided to communicate with Arduino over UART to execute the action. Thanks for your response. If I find the need for GPIO 16 in the future I will try your test.