• sales

    +86-0755-88291180

DA7212 Audio Board (A) User Guide

Features

  • Do not plug or unplug any device interfaces other than the audio interface while powered on
  • Uses the DA7212 professional stereo codec chip, controlled via I2C interface and transmitting audio via I2S
  • Onboard standard 3.5mm headphone jack for playing music with external headphones
  • Onboard AUX input interface for easy connection to other devices
  • Onboard speaker screw terminal and a PH2.0 dual‑channel speaker connector, offering multiple interface types for a wider range of usage scenarios
  • Onboard dual microphones for recording without additional external devices
  • Onboard programmable button and indicators for custom functions
  • Supports sampling frequency up to 96KHz
  • Supports up to 24-bit resolution audio data

Dimensions



AUDIO

This section describes how to use GPIO to drive audio functions on the Raspberry Pi, laying the foundation for subsequent project development.

AUDIO Operations

Check Audio Devices

DANGER

The module must be connected before powering on to be properly recognized.

  • Check currently recognized audio playback devices
    aplay -l

Audio Playback

  • Play the audio file test.wav (using the corresponding device; here the recognized audio device is hardware sound card number 2). Ensure the test.wav file exists in the current directory.
    aplay -D plughw:2 test.wav
  • The speaker or headphones will then play the audio

alsamixer Audio Configuration

  • Open the alsamixer audio configuration tool
    sudo alsamixer
  • If the sound card is not set as the default, press F6 to select the sound card device. Configure Audio Devices with alsamixer
  • Use the left/right arrow keys to select functions and the up/down arrow keys to adjust the corresponding volume.

Play MP3

  • aplay only supports WAV audio. In practice, MP3 format audio is more common. Install the mpg123 playback tool.
    sudo apt-get install mpg123
  • Play the music.mp3 audio file. Ensure the music.mp3 file exists in the current directory.
    sudo mpg123 music.mp3

Graphical Configuration

  • Install the graphical audio control tool smplayer
    sudo apt-get install smplayer
  • Right-click in the interface and select IOaudIODAC as the default.

    Smplayer audio configuration Smplayer audio configuration



Resources

1. Hardware Resources








TAG: Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N Magnetic Encoder Servo Motor 120KG.CM 24V 360° RS485 High Precision And Large Torque Raspberry Pi 5 PCM5122 I2S Audio Card DAC Also For PI4 /PI3 /Zero Series Template: Pico-get-start Industrial ESP32 S3 Development Board 1.75 inch AMOLED Display TouchScreen SD slot 6-axis sensor Xiaozhi AI Deepseek Serial UART Bus Servo ST3020 TTL 25KG.CM Magnetic-Encoder High precision and Large torque DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 1.85 inch Round LCD N16R8 Allwinner Raspberry Pi Pico 2 RP2350 ETH CH9120 TCP/UDP Ethernet Network For Arduino CSI Camera 5inch Raspberry Pi Touch Display 2 5-inch Official Original 720x1280 LCD DSI/MIPI Screen Jetson Nano Cooler Spotpear DeepSeek XiaoZhi AI Chat Robot ESP32-S3 1.54 inch LCD N16R8 MUMA Development Board Display Screen Wifi Weather Station TimeClock ESP32-C6 AI Voice Chat Robot For Xiaozhi 1.8 inch AMOLED Development Board 1.8inch TouchScreen Deepseek Wireless AW CB375N 2.4G/5GHz Dual Band WiFi5 Wireless module RTL8822CE CG Bluetooth 5.0 Raspberry Pi 10.1 inch DSI MIPI LCD TouchScreen Display 10.1inch 720x1280 For Luckfox Lyra RK3506/ESP32-P4/Luckfox Omni3576 Raspberry Pi 5 User Guide JLINK OB