Forked from https://github.com/microchip-pic-avr-examples/avr128db48-low-bom-mic-interface-using-opamp
Added ADC measurements to detect peaks, in addition to timing, to use it as an advanced clap detector
- AN3631 - Low-BOM Microphone Interface Using the Analog Signal Conditioning (OPAMP) Peripheral
- AVR128DB48 Curiosity Nano User Guide
- AVR128DB48 Device Page
- Microchip Studio
- AVR128DB48 Curiosity Nano
- Electret microphone
- One 2.2kΩ resistor
- One 1µF capacitor
- Connect the hardware together as seen in the schematic of the application note
- Clone the example to get the source code
- Open the .atsln file with Atmel Studio
- Edit the code inside the while loop to do what you want
- Start clapping! :)