DY-HV8F Voice Playback Module
1. Description
The DY-HV8F is an intelligent voice module developed independently. It integrates I/O subsection triggering, UART serial port control, ONE_line single bus serial port control, Standard MP3 control mode, and configuration via switches on the module. It features an onboard 20W Class D amplifier circuit capable of directly driving one 8-ohm/10W or 4-ohm/20W speaker. The module supports MP3 and WAV decoding formats and has 64Mbit (8Mbyte) Flash memory. It can connect to a computer via USB cable to update audio files. The module includes a 3.5mm audio interface, a Micro USB download interface, and a button module.
2. Features
- Supports MP3 and WAV decoding formats.
- Supports sampling frequencies: 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48 KHz.
- 24-bit DAC output with a dynamic range of 90dB and SNR of 85dB.
- Supports 64Mbit (8Mbyte) Flash memory.
- Supports UART serial port control for voice broadcast functions, allowing control of playback, pause, next, previous, volume up/down, and other functions. It can manage up to 65535 songs with a baud rate of 9600 bit/s.
- Supports I/O trigger function: 8-bit I/O ports can trigger 8 musics, or 8 I/O combinations can trigger 255 songs.
- Supports One_line single bus serial port control for playback, pause, next, previous, volume up/down, and other functions.
- Supports 3 configuration I/O pins for mode selection, enabling 7 different work modes.
- Built-in 20W Class D amplifier circuit can directly drive an 8-ohm/10W or 4-ohm/20W speaker.
3. Parameters
- Product Name: DY-HV8F Voice Playback Module
- Product Number: DY-HV8F
- Working Voltage: DC 6V~35V
- Load: 8-ohm/10W or 4-ohm/20W speaker (speaker not included)
- Working Temperature Range: -20℃ to 85℃
- Working Humidity Range: 0% to 95% RH
- Size: 50*50*13mm
4. Package
- 1 x DY-HV8F Voice Playback Module
Pin Definition
The DY-HV8F module has various pins for different functions:
No. | Pin Name | Instruction |
---|---|---|
1 | GND | Work Voltage Positive Electrode |
2 | VCC | Work Voltage Negative Electrode |
3 | TXD/IO0 | IO trigger mode is input IO0; UART mode is TX. |
4 | RXD/IO1 | IO trigger mode is input IO1; UART mode is RX. |
5 | IO2 | IO trigger mode input IO2. |
6 | IO3 | IO trigger mode input IO3. |
7 | IO4/ONE_LINE | IO mode input IO4; One_Line mode data receiver pin. |
8 | IO5 | IO trigger mode input IO5. |
9 | IO6 | IO trigger mode input IO6. |
10 | IO7 | IO trigger mode input IO7. |
11 | BUSY | Output low level signal (0V) when playing and output high (3.3V) after playing. |
12 | GND | Ground |
The module also features:
- Input DC 6V~35V
- Adjust Volume control
- Amplifier IC
- Connection for 4~8 ohm, 10W~20W Speaker
- 3.5mm Audio Output
- MicroUSB Download Audio File interface
- 64Mbit Flash memory
- IO Mode Set switches (CON1, CON2, CON3)
Work Mode Configuration
The module supports various work modes configured via DIP switches (CON1, CON2, CON3) and I/O pins.
Control Mode | Configuration Pin | I/O Function | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CON3 | CON2 | CON1 | IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | |
I/O Integrated Mode 0 | 0 | 0 | 0 | Key combination play, can play 2^8-1 (255) Songs. | |||||||
I/O Integrated Mode 1 | 0 | 0 | 1 | Level combination play, can play 2^8-1 (255) Songs. | |||||||
I/O Independent Mode 0 | 0 | 1 | 0 | Song 8 | Song 7 | Song6 | Song5 | Song4 | Song3 | Song2 | Song1 |
I/O Independent Mode 1 | 0 | 1 | 1 | Song8 | Song7 | Song6 | Song5 | Song4 | Song3 | Song2 | Song1 |
UART Mode | 1 | 0 | 0 | TXD, RXD | |||||||
One-Line Mode | 1 | 0 | 0 | TXD | |||||||
Standard MP3 Mode | 1 | 0 | 1 | RPT, EQ, P/P/MODE, PREV/V-, NEXT/V+ |
Notes on Playback Modes:
- Key combination play: Returns to the original high level after the corresponding level from IO0-IO7 output, similar to a single key trigger.
- Level combination play: The trigger signal remains the same, similar to a self-locking switch.
- The difference between I/O Integrated/Independent Mode 0 and Mode 1: Mode 0 continues playing the current song to the end after the release level. Mode 1 stops playing immediately after the release level.
I/O Integrated Mode 0 (Key combination playing)
Songs must be named with 5 digits (e.g., 00001.mp3).
IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | Song | Instruction |
---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 00001.mp3 | Will stop playing current song to the end after I/O0-7 release input signal (return to high) at 'I/O Integrated Mode 0'. |
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 00002.mp3 | Will play new song when get new input signal during playing and stop after end of song. |
1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 00003.mp3 | Will play repeatedly if keep input. |
1 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 00004.mp3 | Busy pin will output valid signal (High) during playing. Music control as following: |
1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 00005.mp3 | |
1 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 00006.mp3 | |
1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 00007.mp3 | |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00255.mp3 |
I/O Integrated Mode 1 (Level combination playing)
IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | Song | Instruction |
---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 00001.mp3 | Will keep playing current song when get trigger signal. It will stop playing immediately after release level. Busy pin will output valid signal (High) during playing. |
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 00002.mp3 | |
1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 00003.mp3 | |
1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 00004.mp3 | |
1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 00005.mp3 | |
1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 00006.mp3 | |
1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 00007.mp3 | |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00255.mp3 |
I/O Independent Mode 0 (Key independent controlling)
IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | Song | Instruction |
---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 00001.mp3 | IO0-IO7 independently controls 8 songs. It will stop playing current song to the end after I/O0-7 release input signal (return to high). |
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 00002.mp3 | It will play new song when get new input signal during playing and stop after end of song. |
1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 00003.mp3 | It will play repeatedly if keep input. |
1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 00004.mp3 | Busy pin will output valid signal (High) during playing. |
1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 00005.mp3 | |
1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 00006.mp3 | |
1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 00007.mp3 | |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 00008.mp3 |
I/O Independent Mode 1 (Level independent controlling)
IO7 | IO6 | IO5 | IO4 | IO3 | IO2 | IO1 | IO0 | Song | Instruction |
---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 00001.mp3 | IO0-IO7 independently controls 8 songs. It will keep play repeatedly specify the triggered song. It will stop playing immediately after release level. Busy pin will output valid signal (High) during playing. |
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 00002.mp3 | |
1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 00003.mp3 | |
1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 00004.mp3 | |
1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 00005.mp3 | |
1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 00006.mp3 | |
1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 00007.mp3 | |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 00008.mp3 |
UART Communication
Communication Format
The module uses full-duplex serial port communication with the following parameters:
- Baud Rate: 9600
- Data Bits: 8
- Stop Bit: 1
- Check Bit: N (None)
Start Code | Command Type | Data Length (n) | Data 1 | Data n | Check Bit (SM) |
---|---|---|---|---|---|
Command Code: fixed to 0xAA. | |||||
Command Type: used to distinguish the type of command. | |||||
Data Length: the number of bytes of data in a command. | |||||
Data: Relevant data in command. If data length is 1, it means only CMD and no data bits. | |||||
Check Bit: Low 8 bits of the sum of all bytes. When the start code and data are added, take out the low 8 bits. | |||||
Data format: Sent data or command, high 8-bit data is in front, low 8-bit is in the back. |
Communication Protocol
Data definitions for return and identification:
- A. Playing State: 00 (stop), 01 (play), 02 (pause). The system is in the stop state on power on.
- B. Disk Character: USB:00, SD:01, FLASH:02, NO_DEVICE: FF. This indicates the state after the switch disk.
- C. Volume: 31 grades, 0-30. The default is 20.
- D. Play Mode:
- Cycle for all songs (00): Play all songs in sequence.
- Single cycle (01): Play the current song continuously.
- Single stop (02): Play the current song once and then stop.
- Random play (03): Randomly play songs.
- Directory loop (04): Play songs in the current folder in order, without subdirectories.
- Directory random (05): Randomly play songs in the current folder, without subdirectories.
- Directory order play(06): Play songs in the current folder in order and stop after playing. Does not include subdirectories.
- Sequential play (07): Play all songs in order and stop after playing.
- E. EQ Definition: The default EQ is NORMAL(00). Options include NORMAL(00), POP(01), ROCK(02), JAZZ(03), CLASSIC(04).
- F. Composition Play Definition: Combination play is combined by filename. Files must be stored under the "ZK" folder. Filenames can be changed to two bytes, recommended as numbers (e.g., 01.Mp3, 02.Mp3).
UART Communication Command
Control Command
Command | Command Code | Return |
---|---|---|
Play | AA 02 00 AC | None |
Pause | AA 03 00 AD | None |
Stop | AA 04 00 AE | None |
Previous | AA 05 00 AF | None |
Next | AA 06 00 B0 | None |
Volume + | AA 14 00 BE | None |
Volume - | AA 15 00 BF | None |
Previous file | AA 0E 00 B8 | None |
Next file | AA 0F 00 B9 | None |
Stop playing | AA 10 00 BA | None |
Query Command
Command | Command Code | Return |
---|---|---|
Query play status | AA 01 00 AB | AA 01 01, play status, SM |
Query current online drive | AA 09 00 B3 | AA 09 01, drive, SM |
Query current play drive | AA 0A 00 B4 | AA 0A 01, drive, SM |
Query Number of songs | AA 0C 00 B6 | AA 0C 02S.N.H S.N.L SM |
Query current song | AA 0D 00 B7 | AA 0D 02 S.N.H S.N.L SM |
Query folder directory song | AA 11 00 BB | AA 11 02 S.N.H S.N.L SM |
Query folder Number of songs | AA 12 00 BC | AA 12 02 S.N.H S.N.L SM |
Setting Command
Command | Command Code | Return | Remark |
---|---|---|---|
Set Volume | AA 13 01 VOL SM | None | VOL:0x00-0xFF |
Set Loop mode | AA 18 01 Loop-mode SM | None | Loop-mode:0x00-0x07 |
Set Cycle times | AA 19 02 H L SM | None | H:0x00-0xFF L:0x00-0xFF |
Set EQ | AA 1A 01 EQ SM | None | EQ:0x00-0x04 |
Specified Song | AA 07 02 S.N.H S.N.LSM | None | S.N.H:0x00-0xFF S.N.L:0x00-0xFF Length:0x00-0xFF |
Specified Path | AA 08 Length Drive Path SM | None | Drive:0x00-0xFF Path:0x00-0xFF |
Switch Specified Drive | AA 0B 01 Drive SM | None | Drive:0x00-0xFF |
Specified song to be interplay | AA 16 03 Drive S.N.H S.N.L SM | None | Drive:0x00-0xFF S.N.H:0x00-0xFF S.N.L:0x00-0xFF Length:0x00-0xFF |
Specified path to be interplay | AA 17 Length Drive Path SM | None | Drive:0x00-0xFF Path:0x00-0xFF |
Select but no play | AA 1F 02 S.N.H S.N.L SM | None | S.N.H:0x00-0xFF S.N.L:0x00-0xFF |
One_line Single Bus Mode
This mode uses a single bus serial port for communication. Commands are sent as hexadecimal values.
Command (HEX) | Function | Note | |
---|---|---|---|
0x00 | No. 0 | The numbers 0-9 have corresponding functions, such as selecting music, setting the volume, setting EQ, setting cycle mode, setting channel, setting the repertoire, and sending the digital at first and then send function command. | |
0x01 | No. 1 | ||
0x02 | No. 2 | ||
0x03 | No. 3 | ||
0x04 | No. 4 | ||
0x05 | No. 5 | ||
0x06 | No. 6 | ||
0x07 | No. 7 | ||
0x08 | No. 8 | ||
0x09 | No. 9 | ||
0x0A | Number reset | Sent the number of Cleared | |
0x0B | Confirm choosing song | Cooperate with Numbers to achieve. | |
0x0C | Volume setting | ||
0x0D | EQ setting | ||
0x0E | Loop mode setting | ||
0x0F | Channel setting | ||
0x10 | Interplay song setting | ||
0x11 | Play | Note: "selection" and "interplay" are played according to the track name, for example, the track is named "00123.Mp3", and the selected data is "0x01", "0x02" "0x03" "0x0B", and the selection is completed. | |
0x12 | Pause | ||
0x13 | Stop | ||
0x14 | Previous | ||
0x15 | Next directory | ||
0x16 | Next directory | ||
0x17 | SD card selection | PA1 |
DATA signal timing: >2ms >1200us >400us >1200us >400us High Level : Low Level = 1:3 Mean: 0 |
0x18 | SD card selection | DATA |
High Level : Low Level = 3:1 Mean: 1 |
0x19 | U disk selection | ||
0x1A | FLASH selection | ||
0x1B | System sleep | ||
0x1C | Stop Playing |
Module Dimensions
The module has dimensions of 50mm x 50mm x 13mm.
(Diagram showing the module with dimensions 50mm x 50mm x 13mm is described here)
Related Documents
![]() |
DY-HV20T 20W Amplifier Voice Playback Module User Guide Explore the DY-HV20T 20W Amplifier Voice Playback Module. This guide details its features, including MP3/WAV support, 20W Class D amplification, TF card/USB connectivity, and versatile UART, I/O, and One-line control modes for DIY electronics and audio projects. |
![]() |
DY-HL30F 30W Mono Voice Playback Module User Guide Detailed information on the DY-HL30F 30W Mono Voice Playback Module, including its features, parameters, interface descriptions, work modes, applications, and package contents. This module supports MP3 and WAV formats, offers 9 trigger inputs, and has a 30W Class D amplifier. |