• 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

GPIO 16 Always Triggering Low

Q&A Forum › Category: ESP32 › GPIO 16 Always Triggering Low
0 Vote Up Vote Down
Paul Leslie asked 5 years ago

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?

Question Tags: ESP32-Cam
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

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

0 Vote Up Vote Down
Paul Leslie answered 5 years ago

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.

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

Ok Paul.
So, I’ll mark this issue as resolved.
Meanwhile, 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

  • [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.