CFsunbird DY-HV20T/HV8F

Rate this product if you’ve used it
Contents

DY-HV20T/HV8F Voice Playback Module User Manual

Model: DY-HV20T/HV8F | Brand: CFsunbird

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.

DY-HV20T/HV8F Voice Playback Module
Figure 1: DY-HV20T/HV8F Voice Playback Module

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

PINDescription
Power (6~35VDC)6~35VDC power supply input
TXD/IO0IO0 in IO triggering mode; TX in UART control mode (connect to RX of MCU)
RXD/IO1IO1 in IO triggering mode; RX in UART control mode (connect to TX of MCU)
IO2IO2 in IO triggering mode
IO3IO3 in IO triggering mode
One_line/IO4IO4 in IO triggering mode; RX in One_line mode
IO5IO5 in IO triggering mode
IO6IO6 in IO triggering mode
IO7IO7 in IO triggering mode
BUSYOutputs low level (0V) while playing music; outputs high level (3.3V) when music ends.
GNDReference Ground
SpeakerConnect 4Ω/20W or 8Ω/10W speaker (recommended)

3.2. IO Electrical Characteristics

IO Input Characteristics
SymbolParametersMINMAXUNIT
VILLOW LEVEL INPUT00.8V
VIHHIGH LEVEL INPUT2.73.3V
IO Output Characteristics
SymbolParametersMINMAXUNIT
VoLLOW LEVEL OUTPUT00.33V
VoHHIGH LEVEL OUTPUT2.73.3V

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 ModeDIP Switch SettingI/O Function (IO7 to IO0)
CON3CON2CON1IO7IO6IO5IO4IO3IO2IO1IO0
I/O Combination mode 0000I/O Combination trigger at falling edge, restoring to high level. Plays 2^8-1 (255) music tracks.
I/O Combination mode 1001I/O Combination trigger while IOs keeping low level. Plays 2^8-1 (255) music tracks.
I/O Stand-alone mode 00108th music7th music6th music5th music4th music3rd music2nd music1st music
I/O Stand-alone mode 10118th music7th music6th music5th music4th music3rd music2nd music1st music
UART Control Mode100RXD, TXD for UART communication
One_Line Mode101RXD for One_line communication
Standard MP3 Mode110RPTEQP/P/MODEPREV/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

DY-HV20T I/O Stand-alone Mode Wiring Diagram
Figure 2: I/O Stand-alone Mode Wiring Diagram. Shows power input (6-35VDC), speaker connections (20W@4Ω, 10W@8Ω), 3.5mm audio output, volume control, TF card slot, MicroUSB for file download, BUSY pin, GND, and IO pins (IO0-IO7) for triggering. DIP switches CON1, CON2, CON3 are set to 010 for I/O stand-alone mode.
DY-HV20T MP3 Mode Wiring Diagram
Figure 3: MP3 Mode Wiring Diagram. Illustrates connections for power (6-35VDC), speaker, 3.5mm audio output, volume control, TF card slot, MicroUSB, GND, and IO pins configured for MP3 mode functions (NEXT/V+, PREV/V-, P/P, EQ, RPT). DIP switches CON1, CON2, CON3 are set to 110 for Standard MP3 mode.

3.5. Module Dimensions

DY-HV20T Module Dimensions
Figure 4: DY-HV20T Module Dimensions. The module measures 50mm x 50mm. Key dimensions for connectors and mounting holes are also indicated.

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
IO7IO6IO5IO4IO3IO2IO1IO0
1111111000001.mp3
1111110100002.mp3
...........................
0000000000255.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
IO7IO6IO5IO4IO3IO2IO1IO0
1111111000001.mp3
1111110100002.mp3
...........................
0111111100008.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

CMDCODERESPONSE
PlayAA 02 00 ACNo return
PauseAA 03 00 ADNo return
StopAA 04 00 AENo return
Previous musicAA 05 00 AFNo return
Next musicAA 06 00 B0No return
Volume+AA 14 00 BENo return
Volume-AA 15 00 BFNo return
Previous folder directoryAA 0E 00 B8No return
Next folder directoryAA 0F 00 B9No return
End playingAA 10 00 BANo return

Setting CMD

CMDCODERESPONSE
Volume settingAA 13 01 VOL SMNo return
Cycle mode settingAA 18 01 Mode SMNo return
Cycle times settingAA 19 02 High Byte Low Byte SM (Times)No return
EQ settingAA 1A 01 EQ SMNo return
Select specified musicAA 07 02 High Byte Low Byte SM (Music NO.)No return
Select device and pathAA 08 Length Device Path SMNo return
Switch to selected deviceAA 0B 01 Device SMNo return
Select specified file to interludeAA 16 03 Device High Byte Low Byte SM (Music NO.)No return
Select specified path to interludeAA 17 Length Device Path SMNo return
Select file but do not playAA 1F 02 High Byte Low Byte SM (Music NO.)No return

Check CMD

CMDCODERESPONSE
Check Play StateAA 01 00 ABAA 01 01 State SM
Check Device OnlineAA 09 00 B3AA 09 01 Device SM
Check Current Playing DeviceAA 0A 00 B4AA 0A 01 Device SM
Check Number Of all MusicAA 0C 00 B6AA 0C 02 High Byte Low Byte SM (Music NO.)
Check Current MusicAA 0D 00 B7AA 0D 02 High Byte Low Byte SM (Music NO.)
Check the first Music in FolderAA 11 00 BBAA 11 02 High Byte Low Byte SM (Music NO.)
Check Number of Music In FolderAA 12 00 BCAA 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)FunctionInstruction
00-09NO.0 - NO.9Send the number first, followed by the function CMD.
0AClear digitalClear digital sent.
0BSelect and enterSetting function with digital.
0CVolume Setting
0DEQ Setting
0ESet cycle mode
0FSet channel
10Select music to inter-cut
11Play
12Pause
13Stop
14Previous music
15Next music
16Previous directory
17Next directory
18SD card selected
19U Disk selected
1AFLASH selected
1BSystem sleep
1CEnd 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

FeatureSpecification
Model NumberDY-HV20T/HV8F
Brand NameCFsunbird
TypeLogic ICs (Voice Playback Module)
Supply VoltageDC 6V ~ 35V (12V/24V typical)
Dissipation Power10W - 0W (Operating range)
Audio DecodingMP3, WAV
Sampling Rate Support8/11.025/12/16/22.05/24/32/44.1/48 KHz
DAC Output24bit, Dynamic Range 90dB, SNR 85dB
Storage SupportMicro SD card, maximum 32GB
Speaker OutputMax 20W (4Ω speaker), Max 10W (8Ω speaker)
UART Baud Rate9600bps
IO Triggering Capacity255 music tracks
ESD Protection8 IOs
Module Dimensions50mm x 50mm
Package Weight0.02 kg
OriginMainland 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.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Was this page helpful?