Vibration Sensor

来自Microduino Wikipedia
跳转至: 导航搜索

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