当前位置:网站首页>Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
2022-07-01 15:53:00 【Visual intelligence】
PWM Drive buzzer to produce melody
Buzzer or buzzer is an audio signal device , It can be mechanical 、 Electromechanical or piezoelectric ( Piezoelectric for short ). Its main function is to convert the signal from audio to sound . Generally, it is powered by DC voltage , For timer 、 a burglar alarm 、 The printer 、 a burglar alarm 、 Computer, etc. . According to different designs , It can produce different sounds , Like an alarm clock 、 music 、 Bells and sirens .
Buzzer is divided into active buzzer and passive buzzer . This example uses a passive buzzer , As shown in the figure above .
1、 Buzzer configuration
Development environment construction 、 System clock configuration 、 Debugging configuration and serial port configuration , Please refer to :
- STM32F1 And STM32CubeIDE Quick start - Development environment construction
- STM32F1 And STM32CubeIDE Quick start -GPIO Overview and lighting LED
- STM32F1 And STM32CubeIDE Quick start -USART/UART Serial port communication
This instance passes the PWM Function driven buzzer . By designation PWM Output time length and adjustment PWM output frequency , Generate different sounds ( melody ). The configuration is as follows :
边栏推荐
- 摩根大通期货开户安全吗?摩根大通期货公司开户方法是什么?
- Photoshop插件-HDR(二)-脚本开发-PS插件
- Description | Huawei cloud store "commodity recommendation list"
- vim 从嫌弃到依赖(22)——自动补全
- Lean Six Sigma project counseling: centralized counseling and point-to-point counseling
- 表格存储中tablestore 目前支持mysql哪些函数呢?
- Survey of intrusion detection systems:techniques, datasets and challenges
- Create employee data in SAP s/4hana by importing CSV
- Zero copy technology of MySQL
- Thinkphp内核工单系统源码商业开源版 多用户+多客服+短信+邮件通知
猜你喜欢
TensorFlow團隊:我們沒被拋弃
Crypto Daily:孙宇晨在MC12上倡议用数字化技术解决全球问题
[STM32 learning] w25qxx automatic judgment capacity detection based on STM32 USB storage device
【IDM】IDM下载器安装
Raytheon technology rushes to the Beijing stock exchange and plans to raise 540million yuan
【目标跟踪】|STARK
HR interview: the most common interview questions and technical answers
Tanabata confession introduction: teach you to use your own profession to say love words, the success rate is 100%, I can only help you here ~ (programmer Series)
重回榜首的大众,ID依然乏力
Introduction to RT thread env tool (learning notes)
随机推荐
TensorFlow團隊:我們沒被拋弃
[Cloudera][ImpalaJDBCDriver](500164)Error initialized or created transport for authentication
ThinkPHP进阶
嵌入式开发:5个修订控制最佳实践
Short Wei Lai grizzly, to "touch China" in the concept of stocks for a living?
6.2 normalization 6.2.6 BC normal form (BCNF) 6.2.9 normalization summary
二叉树的前序,中序,后续(非递归版本)
[target tracking] | template update time context information (updatenet) "learning the model update for Siamese trackers"
精益六西格玛项目辅导咨询:集中辅导和点对点辅导两种方式
硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件
Zhang Chi Consulting: lead lithium battery into six sigma consulting to reduce battery capacity attenuation
#夏日挑战赛# HarmonyOS canvas实现时钟
【STM32学习】 基于STM32 USB存储设备的w25qxx自动判断容量检测
MySQL高级篇4
2022 Moonriver全球黑客松优胜项目名单
如何写出好代码 - 防御式编程指南
The latest NLP game practice summary!
Trace the source of drugs and tamp the safety dike
Description | Huawei cloud store "commodity recommendation list"
Reading notes of top performance version 2 (V) -- file system monitoring