查看“Microduino-BUZZER”的源代码
←
Microduino-BUZZER
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language|Microduino-Buzzer }} {| style="width: 800px;" |- | [[File: Microduino-BUZZER.jpg|400px|thumb|right| Microduino-Buzzer]] Microduino-Buzzer is passive just like a magnetic speaker. It needs voltage with different frequency and thus can make sound accordingly. The sound becomes louder when the frequency gets higher. ==Feature== *Controllable sound frequency (eg: You can achieve the effect of piano spectrum with it. ) *Small size and beautiful ==Specification== *Operation voltage—3.3V~5V; *1.27mm pitch and 4Pin interface; [[File: Microduino-Buzzer_rule1.jpg|600px|thumb|center]] ==Document== *Schematic:'''[[File: Microduino_ Buzzer.Zip]]''' ==Development== It can be used to make various kinds of sound through the buzzer. ==Application== *Hardware Needed: [[Microduino-Core]], [[Microduino-USBTTL]], [[Microduino-Sensorhub]], several dupont lines and USB cable; *Software: **Make sure you did build Microduino development envrionment or you need to refer to: [[Microduino Getting start]] *Program <source lang="cpp"> #define buzzer_pin 6 void setup() { pinMode(buzzer_pin,OUTPUT); } void loop() { for(int i=200;i<=800;i++) //Increase the frequency from 200HZ to 800HZ circularly. { tone(buzzer_pin,i); //Output frequency in the port. delay(5); //The frequency lasts for 5ms. } delay(1000); //The highest frequency lasts for 1s. for(int i=800;i>=200;i--) { tone(buzzer_pin,i); delay(10); //The frequency lasts 10ms. } } </source> *Stack all the modules and then connect the interface on the back of BUZZER to the D6 digital port of Sensorhub. *Open IDE, copy the program to IDE, choose the right board, compile and download. *You can hear the alarm after download. ==Purchase== ==History== ==Image== *Front [[file: Microduino-Buzzer-F.JPG|thumb|600px|center|Microduino-Cube-Station Front]] *Back [[file: Microduino-Buzzer -b.JPG|thumb|600px|center|Microduino-Cube-Station Back]] |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Microduino-BUZZER
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息