Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 583 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 583 Bytes

motion detection audio scarer

There is a motion sensor. When it detects movement, it plays this sound.
The time spent on making this will undoubtedly give a high ROI, long-term.

Equipment

  • ESP32S3 DEVKIT C WROOM
  • ADA4871 mini PIR motion sensor
  • MAX98357 amplifier and speaker
  • an LED

.pcm audio file

This is written for unsigned 8-bit mono PCM @ 44100. The easist way is to use FFMPEG.

./ffmpeg -i audioFile.wav -f u8 -ar 44100 -ac 1 o.pcm