Ameba Arduino: [RTL8722CSM] [RTL8722DM] [RTL8722DM MINI] Audio Codec–Basic Input Output

Materials

  • AmebaD [RTL8722DM / RTL8722CSM / RTL8722DM MINI] x 1
  • Potentiometer x 1
  • Analog microphone x 1 (e.g., Adafruit 1063 / 1064)
  • 3.5mm TRS/TRRS breakout x 1 (e.g., Adafruit 2791 / Sparkfun 11570)

Example

Procedure

Connect the potentiometer, microphone and 3.5mm connector to the RTL8722 board following the diagram.

RTL8722DM / RTL8722CSM Wiring Diagram:

1

RTL8722DM MINI Wiring Diagram:

1

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

1

Upload the code and press the reset button on Ameba once the upload is finished.

Connect a pair of wired headphones to the 3.5mm audio jack, blow at the microphone, and you should hear the sounds picked-up by the microphone replayed in the headphones. Adjust the potentiometer and the output volume will change as well. Note: if you are using a microphone with an amplifier included, such as Adafruit 1063, the amplifier can lead to the microphone picking up more noise.

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