1. Product Overview
The DY-HV20T/HV8F is a smart voice playback module designed for various applications, including integration with Arduino projects. It features integrated IO trigger, UART protocol control, and One_line single-bus protocol control, offering 7 operating modes configurable via a DIP switch. The module includes a 20W Class D audio amplifier capable of driving 4-8Ω speakers (10W-20W output). It supports MP3 and WAV audio decoding and can utilize a Micro SD card (up to 32GB) for storing music files, which can be downloaded directly via a micro USB connector.

2. Product Characteristics
- Supports MP3 and WAV audio decoding.
- Compatible with sampling rates (KHz): 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48.
- Features 24-bit DAC output with a dynamic range of 90dB and SNR of 85dB.
- Wide supply voltage range: DC 6V to 35V.
- Supports Micro SD cards up to a maximum of 32GB.
- Audio output: Maximum 20W when driving a 4Ω speaker, maximum 10W when driving an 8Ω speaker.
- UART control protocol allows playback of up to 65535 music tracks, with controls for Play, Pause, music selection, and Volume +/-. Communication baud rate is 9600bps.
- IO triggering supports playback of up to 255 music tracks.
- One_line control protocol enables Play, Pause, music selection, and Volume +/-.
- Easy switching between 7 operating modes using a DIP switch.
- Equipped with ESD protection for 8 IOs.
3. Setup and Connections
3.1. Pin Definitions
| PIN | Description |
|---|---|
| Power (6~35VDC) | 6~35VDC power supply input |
| TXD/IO0 | IO0 in IO triggering mode; TX in UART control mode (connect to RX of MCU) |
| RXD/IO1 | IO1 in IO triggering mode; RX in UART control mode (connect to TX of MCU) |
| IO2 | IO2 in IO triggering mode |
| IO3 | IO3 in IO triggering mode |
| One_line/IO4 | IO4 in IO triggering mode; RX in One_line mode |
| IO5 | IO5 in IO triggering mode |
| IO6 | IO6 in IO triggering mode |
| IO7 | IO7 in IO triggering mode |
| BUSY | Outputs low level (0V) while playing music; outputs high level (3.3V) when music ends. |
| GND | Reference Ground |
| Speaker | Connect 4Ω/20W or 8Ω/10W speaker (recommended) |
3.2. IO Electrical Characteristics
| IO Input Characteristics | ||||
|---|---|---|---|---|
| Symbol | Parameters | MIN | MAX | UNIT |
| VIL | LOW LEVEL INPUT | 0 | 0.8 | V |
| VIH | HIGH LEVEL INPUT | 2.7 | 3.3 | V |
| IO Output Characteristics | ||||
|---|---|---|---|---|
| Symbol | Parameters | MIN | MAX | UNIT |
| VoL | LOW LEVEL OUTPUT | 0 | 0.33 | V |
| VoH | HIGH LEVEL OUTPUT | 2.7 | 3.3 | V |
3.3. DIP Switch Configuration
The DIP switch (labeled CON1, CON2, CON3) on the module allows selection of 7 different operating modes. '0' represents a low level, and '1' represents a high level.
| Control Mode | DIP Switch Setting | I/O Function (IO7 to IO0) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CON3 | CON2 | CON1 | IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | |
| I/O Combination mode 0 | 0 | 0 | 0 | I/O Combination trigger at falling edge, restoring to high level. Plays 2^8-1 (255) music tracks. | |||||||
| I/O Combination mode 1 | 0 | 0 | 1 | I/O Combination trigger while IOs keeping low level. Plays 2^8-1 (255) music tracks. | |||||||
| I/O Stand-alone mode 0 | 0 | 1 | 0 | 8th music | 7th music | 6th music | 5th music | 4th music | 3rd music | 2nd music | 1st music |
| I/O Stand-alone mode 1 | 0 | 1 | 1 | 8th music | 7th music | 6th music | 5th music | 4th music | 3rd music | 2nd music | 1st music |
| UART Control Mode | 1 | 0 | 0 | RXD, TXD for UART communication | |||||||
| One_Line Mode | 1 | 0 | 1 | RXD for One_line communication | |||||||
| Standard MP3 Mode | 1 | 1 | 0 | RPT | EQ | P/P/MODE | PREV/V- | NEXT/V+ | Not used for direct music selection | ||
Notes:
In "I/O Combination mode 0", IO0~IO7 restore to high level after outputting the corresponding level, simulating a single button press. Playback continues until the current music finishes. In "I/O Combination mode 1", IO0~IO7 maintain the corresponding level, and playback stops immediately if the IOs return to their original high level.
The difference between "I/O stand-alone mode 0" and "I/O stand-alone mode 1" follows the same logic as the combination modes.
3.4. Wiring Diagrams


3.5. Module Dimensions

4. Operation Modes
4.1. I/O Combination Mode 0
In this mode, the MCU's I/O outputs a corresponding level to trigger a specified music track. The I/O then releases to a high level, similar to a momentary button press. Playback continues until the current music track is completed. If a new track is re-triggered during playback, the module will switch to the new track. Continuous triggering will result in circular playback. The BUSY pin remains low during playback.
4.2. I/O Combination Mode 1
Here, the MCU's I/O outputs a corresponding level to trigger a specified music track and maintains this triggering state. Playback will continue circularly as long as the trigger is active. Releasing the I/O to its original high level will immediately stop playback. The BUSY pin remains low during playback.
Music Control for Combination Modes
Music files must be named using five digits (e.g., 00001.mp3 to 00255.mp3).
| IO State (1=High, 0=Low) | Music Playing | |||||||
|---|---|---|---|---|---|---|---|---|
| IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 00001.mp3 |
| 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 00002.mp3 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00255.mp3 |
4.3. I/O Stand-alone Mode 0
In this mode, each of the IO0~IO7 pins controls a single music track. Triggering occurs on a falling edge, and the IO restores to its original high level. Playback stops after the triggered music is completed. Retriggering during playback will switch to the new track. Continuous triggering results in circular playback. The BUSY pin remains low during playback.
4.4. I/O Stand-alone Mode 1
Similar to Mode 0, each IO pin controls one music track. Triggering is by a low level, and playback continues circularly as long as the low level is maintained. Releasing the I/O to its original high level will immediately stop playback. The BUSY pin remains low during playback.
Music Control for Stand-alone Modes
Music files must be named using five digits (e.g., 00001.mp3 to 00008.mp3).
| IO State (1=High, 0=Low) | Music Playing | |||||||
|---|---|---|---|---|---|---|---|---|
| IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 00001.mp3 |
| 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 00002.mp3 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 00008.mp3 |
4.5. UART Control Mode
4.5.1. Communication Format
Full duplex serial communication with a baud rate of 9600bps, 8 data bits, 1 stop bit, and no parity check (N).
Format: Start-CMD Type-data length(n)-data1-data n-CRC(SM)
- Start: Fixed value AA (HEX).
- CMD Type: Used to distinguish command types.
- Data Length: Number of bytes in the data field. If length is one, it's only CMD.
- Data: Command-specific data.
- CRC (SM): Sum of all data from the start code to the end data (before CRC), selecting the low 8 bits.
- Data Format: High 8 bits sent first, followed by low 8 bits.
4.5.2. Communication Protocol Definitions
- Playing State: 00 (Stop), 01 (Play), 02 (Pause). Module is in stop state on power-up.
- Devices: USB (00), SD (01), FLASH (02), NO_DEVICE (FF). Module is in stop state when switching devices.
- Volume: 31 steps (0-30). Default is 30 on power-up.
- Playing Modes: Default is single stop mode on power-up.
- Full cycle (00): Play all music in sequence.
- Single cycle (01): Play the current music always.
- Single stop (02): Stop playing after playing the current music once.
- Random broadcast (03): Play music randomly in device.
- Repeat folder (04): Play all music in current folder in sequence.
- Random broadcast in folder (05): Play music randomly in current folder.
- Order play in folder (06): Play music in current folder in sequence, stop when complete.
- Order play (07): Play music in device in sequence, stop when complete.
- EQ: Default is NORMAL (00) on power-up.
- NORMAL (00), POP (01), ROCK (02), JAZZ (03), CLASSIC (04).
- Combination Play: Combined by file name. Files stored in 'ZH' folder, named as two bytes (e.g., 01.mp3, 02.mp3) or two letters.
4.5.3. Definition of CMD (Commands)
Control CMD
| CMD | CODE | RESPONSE |
|---|---|---|
| Play | AA 02 00 AC | No return |
| Pause | AA 03 00 AD | No return |
| Stop | AA 04 00 AE | No return |
| Previous music | AA 05 00 AF | No return |
| Next music | AA 06 00 B0 | No return |
| Volume+ | AA 14 00 BE | No return |
| Volume- | AA 15 00 BF | No return |
| Previous folder directory | AA 0E 00 B8 | No return |
| Next folder directory | AA 0F 00 B9 | No return |
| End playing | AA 10 00 BA | No return |
Setting CMD
| CMD | CODE | RESPONSE |
|---|---|---|
| Volume setting | AA 13 01 VOL SM | No return |
| Cycle mode setting | AA 18 01 Mode SM | No return |
| Cycle times setting | AA 19 02 High Byte Low Byte SM (Times) | No return |
| EQ setting | AA 1A 01 EQ SM | No return |
| Select specified music | AA 07 02 High Byte Low Byte SM (Music NO.) | No return |
| Select device and path | AA 08 Length Device Path SM | No return |
| Switch to selected device | AA 0B 01 Device SM | No return |
| Select specified file to interlude | AA 16 03 Device High Byte Low Byte SM (Music NO.) | No return |
| Select specified path to interlude | AA 17 Length Device Path SM | No return |
| Select file but do not play | AA 1F 02 High Byte Low Byte SM (Music NO.) | No return |
Check CMD
| CMD | CODE | RESPONSE |
|---|---|---|
| Check Play State | AA 01 00 AB | AA 01 01 State SM |
| Check Device Online | AA 09 00 B3 | AA 09 01 Device SM |
| Check Current Playing Device | AA 0A 00 B4 | AA 0A 01 Device SM |
| Check Number Of all Music | AA 0C 00 B6 | AA 0C 02 High Byte Low Byte SM (Music NO.) |
| Check Current Music | AA 0D 00 B7 | AA 0D 02 High Byte Low Byte SM (Music NO.) |
| Check the first Music in Folder | AA 11 00 BB | AA 11 02 High Byte Low Byte SM (Music NO.) |
| Check Number of Music In Folder | AA 12 00 BC | AA 12 02 High Byte Low Byte SM (Music NO.) |
For detailed development data and a UART Tuning Tool, please refer to the "UART mode user's guide".
4.6. One_line Mode
This mode uses a single line for control. Commands are sent with the low bit first, with a start flag of at least 3ms. For example, to set the volume to 21 steps, send "0x02" "0x01" "0x0C".
CMD Format for One_line Mode
| CMD (HEX) | Function | Instruction |
|---|---|---|
| 00-09 | NO.0 - NO.9 | Send the number first, followed by the function CMD. |
| 0A | Clear digital | Clear digital sent. |
| 0B | Select and enter | Setting function with digital. |
| 0C | Volume Setting | |
| 0D | EQ Setting | |
| 0E | Set cycle mode | |
| 0F | Set channel | |
| 10 | Select music to inter-cut | |
| 11 | Play | |
| 12 | Pause | |
| 13 | Stop | |
| 14 | Previous music | |
| 15 | Next music | |
| 16 | Previous directory | |
| 17 | Next directory | |
| 18 | SD card selected | |
| 19 | U Disk selected | |
| 1A | FLASH selected | |
| 1B | System sleep | |
| 1C | End playing |
Note: "Select music" and "Inter-cut" commands are based on the music file name. For example, to select "123.mp3", send data "0x01" "0x02" "0x03" "0x0B" in sequence.
For detailed development data of One_Line mode, please refer to the "One_Line mode user's guide".
5. Specifications
| Feature | Specification |
|---|---|
| Model Number | DY-HV20T/HV8F |
| Brand Name | CFsunbird |
| Type | Logic ICs (Voice Playback Module) |
| Supply Voltage | DC 6V ~ 35V (12V/24V typical) |
| Dissipation Power | 10W - 0W (Operating range) |
| Audio Decoding | MP3, WAV |
| Sampling Rate Support | 8/11.025/12/16/22.05/24/32/44.1/48 KHz |
| DAC Output | 24bit, Dynamic Range 90dB, SNR 85dB |
| Storage Support | Micro SD card, maximum 32GB |
| Speaker Output | Max 20W (4Ω speaker), Max 10W (8Ω speaker) |
| UART Baud Rate | 9600bps |
| IO Triggering Capacity | 255 music tracks |
| ESD Protection | 8 IOs |
| Module Dimensions | 50mm x 50mm |
| Package Weight | 0.02 kg |
| Origin | Mainland China |
6. Maintenance
To ensure the longevity and optimal performance of your DY-HV20T/HV8F module, follow these maintenance guidelines:
- Keep Dry: Avoid exposing the module to moisture or liquids, as this can cause short circuits and damage.
- Clean Gently: If cleaning is necessary, use a soft, dry cloth. Do not use harsh chemicals or abrasive materials.
- Avoid Extreme Temperatures: Operate and store the module within its specified temperature range. Extreme heat or cold can affect its electronic components.
- Handle with Care: Electronic components are sensitive. Avoid dropping the module or subjecting it to strong impacts.
- Power Off Before Connecting/Disconnecting: Always ensure the power supply is disconnected before making or changing any wiring connections to prevent damage to the module or connected devices.
7. Troubleshooting
- No Sound Output:
- Verify power supply (6-35VDC) is correctly connected and within range.
- Check speaker connections for correct polarity and impedance (4Ω/20W or 8Ω/10W recommended).
- Ensure the 3.5mm audio output is not simultaneously used if the speaker output is expected.
- Confirm audio files are correctly named (e.g., 00001.mp3) and stored on a properly formatted Micro SD card.
- Module Not Responding to IO Triggers:
- Check DIP switch settings to ensure the correct I/O Combination or Stand-alone mode is selected.
- Verify that the IO pins are correctly wired and providing the expected low/high levels or falling edges as per the selected mode.
- Ensure the music files correspond to the triggered IOs as per the naming convention.
- UART Communication Issues:
- Confirm baud rate is set to 9600bps.
- Check TX/RX connections between the module and MCU (TXD to RX of MCU, RXD to TX of MCU).
- Verify the communication protocol (Start-CMD Type-data length-data-CRC) is correctly implemented.
- Refer to the "UART mode user's guide" for detailed protocol specifications.
- Music Not Playing Cyclically:
- In UART mode, ensure "Single cycle (01)" or "Full cycle (00)" is selected in the playing modes.
- In I/O modes, continuous triggering or specific mode behaviors (e.g., Combination Mode 0 with continuous trigger) can enable circular playback.
- Difficulty with File Naming/Management:
- Ensure all audio files are MP3 or WAV format.
- For IO triggering, files must be named with five digits (e.g., 00001.mp3 to 00255.mp3 or 00001.mp3 to 00008.mp3 depending on mode).
- For UART combination play, files should be in a 'ZH' folder and named as two bytes (e.g., 01.mp3).
8. User Tips
- Arduino Integration: This module is highly compatible with Arduino and similar microcontrollers. Utilize the UART control mode for advanced control over a large number of tracks and playback settings, or the IO triggering modes for simpler, direct control of fewer tracks.
- File Naming is Key: Pay close attention to the required file naming conventions (e.g., 00001.mp3) for IO triggering modes to ensure correct track selection.
- Explore Control Modes: The 7 operating modes offer flexibility. Experiment with the DIP switch settings to find the mode that best suits your project's control requirements.
- Sound Quality: Users have noted good sound quality, comparable to other popular audio modules for microcontrollers.
- Power-Up Playback: To play a sound immediately on power-up (e.g., a car greeting), consider using an external circuit to momentarily trigger an IO pin to a low state upon power application, or program your MCU to send the appropriate UART command after initialization.
9. Warranty and Support
This product is covered by standard manufacturer warranties against defects in materials and workmanship. For technical support, detailed user guides (such as the "UART mode user's guide" and "One_Line mode user's guide"), or warranty claims, please contact the seller or manufacturer directly. Keep your purchase receipt as proof of purchase.