s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
888 stars 209 forks source link

how to add a buzzer in the circuit and make it enable on sensing the motion #384

Closed Sanket2005 closed 6 months ago

Sanket2005 commented 6 months ago

I want to add a buzzer to the connection so that it must start ringing when detected a motion and must stop after a while. So where should i connect it in the circuit and how can i make it work ?? and also thanks for the project code it is working perfectly

s60sc commented 6 months ago

As a starting point, in mjpeg2sd.cpp added buzzerSound()called from processFrame()

Sanket2005 commented 6 months ago

but which pin should i connect the buzzer to and which location in the circuit. Also i cannot find buzzerSound() call in the processFrame()