I am trying to build a device that detects coughing in dogs, and records how frequently they are coughing in a given time. The device must be able to distinguish coughing from environmental sounds, as well as other sounds dogs make such as panting or barking. The desired result is that the dog wears the device for a few days, then the vet can plug the device into their computer, and a graph appears displaying the amount of coughs detected over time.
I am unfamiliar with coding arduinos, and I am looking for any help or advice. I plan on using an Arduino Pro Mini and a Adafruit Electret Microphone Amplifier with adjustable gain.
I was initially looking into using MATLAB, but since the Arduino has an internal clock, I believe that might be over complicating things. Is there a code that can record data when a certain frequency is detected?