Vibration Sensor

来自Microduino Wikipedia
1304410487@qq.com讨论 | 贡献2015年6月19日 (五) 06:57的版本 (Created page with "{| style="width: 800px;" |- | ==Purpose== This tutorial will show you how to use Microduino mCookie vibration sensor. ==Equipment== *'''Microduino-CoreUSB''' *'''Micr...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

Purpose

This tutorial will show you how to use Microduino mCookie vibration sensor.

Equipment


  • Other Hardware Equipment
    • USB cable One

Program

Debugging

Step 1: Insert Microduino vibration sensor to D6 pin of Microduino-Sensorhub and Microduino buzzer toD8 pin.


Step 2: Connect your PC with USB cable, download the code and burn it to Microduino-CoreUSB.


Step 3: If the vibration sensor keeps still after programming, then the buzzer should keep silent.


Step 4: Shake the sensor and the buzzer will make sound accordingly.


Result

You can use vibration sensor to detect vibration and watch the intensity via a buzzer.

Video