当前位置:网站首页>Arduino dy-sv17f automatic voice broadcast
Arduino dy-sv17f automatic voice broadcast
2022-07-03 01:19:00 【Youxin Electronics】
Arduino DY-SV17F Automatic voice broadcast
Voice Announcements DY-SV17F
DY-SV17F brief introduction
DY-SV17F It is an intelligent voice module , Integrate IO Segment trigger ,UART Serial port control ,ONE_line Single bus serial port control , standard MP3 etc. 7 Working mode ; On board 5W D Class amplifier , Can drive directly 4Ω,3~5W horn ; Support MP3,WAV Decoding format , On board 32Mbit(4MByte)flash Storage , It can be done by USB Connect the data cable to the computer and update the audio file .
This time it will be IO Segment trigger to realize automatic voice broadcast
Operating mode description
- IO Portfolio model 0:
MCU control I/O Combination trigger ( Low level active ) Release after the specified track (IO0-IO7 Restore high level ), Stop after playing the current track ; Trigger again in the middle of playing , Play a new track , The playback ends and stops ; If it keeps triggering ( Do not release level ), Loop Playback . - IO Portfolio model 1:
MCU control IO Combination trigger ( Low level active ) Specified track , Play the specified track repeatedly , Level release (IO0-IO7
Restore high level ) Stop playing . Release level during playback , Stop playing immediately . - IO Independent mode 0:
IO0-IO7 Independent control 8 Track , IO Trigger ( Low level active ) Release after the specified track (IO0-IO7 Restore high level ), Stop after playing the current track ; Trigger again in the middle of playing , Play a new track , The playback ends and stops ; If it keeps triggering ( Do not release level ), Loop Playback . - IO Independent mode 1:
IO0-IO7 Independent control 8 Track ,IO Trigger ( Low level active ) Specified track , Play the specified track repeatedly ,
Level release (IO0-IO7 Restore high level ) Stop playing . Release level during playback , Stop playing immediately . - UART Serial mode :
adopt UART Serial transmission
Start code - Instruction type - Data length (n)- data 1- data n- And inspection (SM)
To realize the voice broadcast of the module 、 Last song 、 Next song and other functions . - One_line Single bus serial port mode :
Through a specific timing , Send to the module 0 Code or 1 The combination of codes realizes the voice broadcasting of the module 、 Last song 、 Next song and other functions .
Below by Arduino control DY-SV17F Of “IO Independent mode 0” an 
IO Independent mode 0
Circuit configuration 
The pull-up resistance in the above figure cannot be omitted .
connection
Set up the peripheral circuit as required
| Arduino UNO | DY-SV17F |
|---|---|
| D9 | IO0 |
| D8 | IO1 |
| D7 | IO2 |
| D6 | IO3 |
| D5 | IO4 |
| D4 | IO5 |
| D3 | IO6 |
| D2 | IO7 |
| 5V | 5V |
| GND | GND |

Pull it out first Arduino UNO On 5V The line of the interface And then use USB Data cable handle DY-SV17F Connect the module to the computer ,
Turn on my computer , I will find that my computer has an additional name “U disc ” Drive letter of , The space size is less than 4M, This is where we put the audio files , So pay attention to the size of the audio file . Import the audio file that needs to be broadcast , Note that the naming format is “0000X.mp3” among X by 1-8 The number of 
drive
Start the experiment when everything is ready
By changing Arduino UNO Of IO Port level to drive DY-SV17F Broadcast the pre stored audio file 
According to the manual ,IO Independent mode requires DY-SV17F Of 8 and IO The mouth is raised by default , Then by pulling down one IO Select the level of the port to play the IO Audio file corresponding to port .
Then we can create a function specifically for DY-SV17F Of 8 individual IO Mouth pull up
void INIT()
{
digitalWrite(IO0,HIGH);
digitalWrite(IO1,HIGH);
digitalWrite(IO2,HIGH);
digitalWrite(IO3,HIGH);
digitalWrite(IO4,HIGH);
digitalWrite(IO5,HIGH);
digitalWrite(IO6,HIGH);
digitalWrite(IO7,HIGH);
}
Every time you play an audio, you need to call this initialization function to raise all IO mouth , send DY-SV17F Restore default state
Now let's test the playback effect
The main function
void loop() {
// put your main code here, to run repeatedly:
Play(1);
delay(1000);
Play(2);
delay(1000);
Play(3);
delay(1000);
}
Above is play DY-SV17F In storage 1-3 Audio files , Playback interval of each file 1 Second ,
If you need to play other audio files, just change
Play(X);
“X” It refers to the number of audio files that need to be played .
Let's see the effect 
DY-SV17F Audio test
边栏推荐
- 2022.2.14 resumption
- Reading and writing speed of Reza rz/g2l arm development board storage and network measurement
- 链表内指定区间反转
- RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
- 鏈錶內指定區間反轉
- 【FPGA教程案例6】基于vivado核的双口RAM设计与实现
- Swiftui component Encyclopedia: using scenekit and swiftui to build interactive 3D pie charts (tutorial with source code)
- What is needed to develop a domestic arm intelligent edge computing gateway
- dotConnect for PostgreSQL数据提供程序
- 【无标题】
猜你喜欢

MySQL基础用法02

RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
![1696C. Fishingprince plays with array [thinking questions + intermediate state + optimized storage]](/img/bf/ab6838e34a3074130eac0a9992e77c.png)
1696C. Fishingprince plays with array [thinking questions + intermediate state + optimized storage]
![[shutter] image component (configure local GIF image resources | load placeholder with local resources)](/img/73/19e2e0fc5ea6f05e34584ba40a452d.jpg)
[shutter] image component (configure local GIF image resources | load placeholder with local resources)

Daily topic: movement of haystack

JS inheritance and prototype chain

Draw love with go+ to express love to her beloved

leetcode 2097 — 合法重新排列数对
![[Androd] Gradle 使用技巧之模块依赖替换](/img/5f/968db696932f155a8c4a45f67135ac.png)
[Androd] Gradle 使用技巧之模块依赖替换
![leetcode:871. Minimum refueling times [Pat has done before + maximum stacking + greed]](/img/2c/8ec3926243fac8db9ed45d8053f3af.png)
leetcode:871. Minimum refueling times [Pat has done before + maximum stacking + greed]
随机推荐
MySQL basic usage 02
leetcode:871. Minimum refueling times [Pat has done before + maximum stacking + greed]
Basic use of sringcloud & use of component Nacos
Merge K sorted linked lists
Kivy教程大全之如何在 Kivy 中创建下拉列表
Esp32 simple speed message test of ros2 (limit frequency)
Create your first Kivy program Hello word (tutorial includes source code)
1038 Recover the Smallest Number
[Arduino experiment 17 L298N motor drive module]
Trois tâches principales: asynchrone, courrier et timing
[自我管理]时间、精力与习惯管理
Telephone network problems
机器学习术语
Excel removes the data after the decimal point and rounds the number
The latest analysis of tool fitter (technician) in 2022 and the test questions and analysis of tool fitter (technician)
MySQL --- 数据库查询 - 基本查询
MySQL basics 03 introduction to MySQL types
Infrared thermography temperature detection system based on arm rk3568
Meibeer company is called "Manhattan Project", and its product name is related to the atomic bomb, which has caused dissatisfaction among Japanese netizens
ThinkPHP+Redis实现简单抽奖
