Capturing and Analyzing Live Audio

If you are familiar with the new WaveForms Asset Store, you may have seen the recent addition involving the Pmod MIC3 and WaveForms. This fully downloadable script streams live audio data from the Pmod MIC3 and displays it through the WaveForms oscilloscope function. It then presents the data as a waveform in the time domain and as a FFT.

The download also includes a script that performs a 1.25 second recording , providing higher-resolution data. The official Asset Store page goes into further detail on how exactly the script is accomplishing all of this:

“This script utilizes the pattern generator to produce the clock and chip select signals required for SPI communication with the MIC3. The MIC3 transmits 16-bits of data, of which the 12 least-significant are the audio data. Samples are taken by the logic analyzer every 500 milliseconds (or once, over a period of 1.25 seconds), which is pushed into an array that is displayed in the oscilloscope window as a reference channel. In the oscilloscope window, the data is displayed in the time domain and frequency domain.”

All you need for this project is a Pmod MIC3 (and preferably a breadboard for convenience).

Diagram of the setup.

This demonstration opens up the possibility for a wealth of audio projects, since you can capture the audio live and then analyze it with the powerful WaveForms software.  You can even use this project along with other hardware actuators or displays as well (like a DIY music visualizer using LED strips)!

Though the demonstration above is primarily focused on sending data from the microphone sensor to WaveForms, you can also send data to a microcontroller with WaveForms, which allows the freedom to attach additional hardware on the other side of the system. If you are interested in learning more about how to send data from WaveForms to Arduino, make sure to check out this write up from a question answered on the Forum.

Image of WaveForms workspace set up to pass data to an Arduino Uno. See write up link above for more details.

Make sure to let us know what you create, and if you have a cool audio project to share make sure to link it in the comments below!

Be the 1st to vote.

About Miranda Hansen

I enjoy creative writing, engineering, thinking, building, exploring and sharing with people. Huge aficionado of spending time thinking about things that “don’t matter.” I am very interested in unconstrained creativity. I love cross-discipline ideas and all of their integration into complete original systems. And I like things that do things.

View all posts by Miranda Hansen →

Leave a Reply

Your email address will not be published. Required fields are marked *