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 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 explains in further detail 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).
This demonstration opens up the possibility for a wealth of audio projects because 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 (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.
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!