jameszah / ESP32-CAM-Video-Recorder

Video Recorder for ESP32-CAM with http server for config and ftp (or http) server to download video
GNU General Public License v3.0
456 stars 102 forks source link

PIR Pin not working #72

Open mlegnari opened 2 years ago

mlegnari commented 2 years ago

Hi! I downloaded the latest vA1 code, modified the data to access my wifi network, ok. But when I play the 3.3V signal from the PIR on pin 13 it doesn't respond. I already checked the variable PIR ENABLED = 1 by the browser, but without success. I'm using the ESP32-CAM module and I even attached the rx tx module to debug, but nothing appears. I've tried with and without a 10k resistor on pin 13. I noticed by measuring by the oscilloscope that there is a voltage on pin 13 of 2 volts even with the PIR wire disconnected. So I uploaded another code to test the interrupt and output of pin 13 because I thought it was damaged, but it worked normally with another code, both the digital readout and the digital output

DJprasenjit commented 2 years ago

uncomment this line on settings.h on line 4

define include_pir_and_touch

use 15k register between pir data out and gpio13 it will work smoth