查看“Lesson 46--Microduino Piano Touch”的源代码
←
Lesson 46--Microduino Piano Touch
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| style="width: 800px;" |- | ==Objective== In this tutorial, we’ll first explain how to measure capacitance with Microduino and then simulate finger switch and electronic piano just like how we do with Makey, Makey. ==Equipment== *'''[[Microduino-Core]]''' *'''[[Microduino-USBTTL]]''' *Other hardware equipment **USB cable One **Buzzer One **Loudspeaker One **Breadboard jumpers Several **LED One **1KΩ resistor One ==How to measure capacitance== Here is the basic idea of the experiment: First, set one digital port to low level and open Microduino interior pull-up resistor and begin to count time needed by reaching high level. The specific time is related to ground capacitance value of the port. The bigger the capacitance is, the longer the time gets. In terms of hardware, you only need to connect a wire to one port and then touh the other side with your finger, which will cuase capacitance change and Microduino can measure the change therefore. If wanting to add flexibility, you can put a tinfoil on the other side of the wire and cover a piece of insulation paper in order to avoid strong static electricity shock on the chip from your hand. ==Schematic== [[File:capacityMeatureSchematics1.png|600px|center|thumb]] [[File:capacityMeatureSchematics2.png|600px|center|thumb]] ==Program== Touch switch: [https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/capacityMeature capacityMeature] Touch piano: [https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/chumomusic chumomusic] =Debugging== 1. Build circuit environment according to schematic, just like this: [[File:fingerLED.png|600px|center|thumb]] 2. Download code and run. When fingers touch the contactor, the LED goes on. [[File:fingerLEDON.png|600px|center|thumb]] 3. Build circuit environment according to schematic, as follows: [[File:fingerPiano.png|600px|center|thumb]] 4. Download code and run. When fingers touches contactors from left to right, the pitch rises in order. ==Result== In this experiment, you can achieve finger touch LED and electronic piano. Below is the video link showing TWO TIGERS. ==Video== http://v.youku.com/v_show/id_XODA4MTkwMDY4.html |}
返回至
Lesson 46--Microduino Piano Touch
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
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
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息