I’ve been working on a project that utilized a buzzer and a PIR motion sensor interfaced with the esp-32 AI Thinker board. I wish to use the available GPIO pins to detect motion and turn on the buzzer but both pins keep outputting a logic state 1.
Is there anything I can do to prevent this output. I’ve tested a simple digitalWrite sketch which I’ll add below:
As long as you do not have an sd card installed or the driver for it initialised then those gpio pins should be ok
although if gpio12 is high at startup it will prevent booting so prob. best using it as output
Are you sure the input pin is not being held high all the time?
BTW - I have a demo sketch for experimenting with the esp32cam module which may be of interest. It shows how to use an sd card in 1-bit mode which still allows you to use pins 12 and 13