Ameba Arduino: [RTL8722CSM] [RTL8722DM] [RTL8722DM MINI] Audio Codec - Input FFT

Materials

  • AmebaD [RTL8722DM / RTL8722CSM / RTL8722DM MINI] x 1
  • Analog microphone x 1 (e.g., Adafruit 1063 / 1064)

Example

Introduction
This example shows how to use the FFT class to calculate the fast Fourier transform of the audio signal recorded by the microphone.

Procedure
Connect the microphone to the RTL8722 board following the diagram.

RTL8722DM / RTL8722CSM:

1

RTL8722DM MINI:

As RTL8722DM MINI have a built in microphone on the board, there is no need for any external microphone.

Next, Open the example, “Files” -> “Examples” -> “AmebaAudioCodec” -> “InputFFT”.

1

Upload the code and press the reset button on Ameba once the upload is finished.
Open the serial monitor and change the baud rate to 2000000. A stream of FFT results of audio samples will be displayed. Try playing music or use a smartphone app to generate a sine wave into the microphone, and you should be able to see the FFT output change.

1

Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
Please confirm that QQ communication software is installed