“Sound Detection Sensor”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
第7行: 第7行:
 
==Equipment==
 
==Equipment==
 
*'''[[Microduino-CoreUSB]]'''
 
*'''[[Microduino-CoreUSB]]'''
 +
*'''[[Microduino-Buzzer]]'''
 
*'''[[Microduino-MIC]]'''
 
*'''[[Microduino-MIC]]'''
 
*'''[[Microduino-Sensorhub]]'''
 
*'''[[Microduino-Sensorhub]]'''

2015年9月6日 (日) 05:34的版本

Purpose

This tutorial will show you how to use Microduino Microphone sound sensor.

Equipment


  • Other hardware equipment
    • 1x USB cable


Program

Program: [MicroduinoMIC]

Function Description: tone(buzzer_pin,value) //Output frequency in the specified port.

Debugging

Step 1: Plug Microduino microphone to the A2 pin of Microduino-Sensorhub and Microduino buzzer to D6.


Step 2:

Connect the Microduino-CoreUSB to your PC with the USB cable and upload the code.


Step 3: Speak towards the microphone:


Step 4: You’ll hear the same sound from the buzzer.

Result

You will hear the sound analog value through microphone.

Video