Difference between revisions of "Sensor-MIC"

From Microduino Wiki
Jump to: navigation, search
(Document)
(Development)
Line 45: Line 45:
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Make sure that you have set up the development environment of Microduino, otherwise, please refer to: [[Microduino Getting started]]
+
*Download and unzip the program '''[[File:Sensor-MIC_Test.zip]]'''
*Core choose
+
 
**1.Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core directly.
+
===Programming===
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core, and you also need [[Microduino-USBTTL]] to download the program.
+
{{Upload
===Program===
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
*Open the program "AnalogInput" in the library.
+
|nameB=[[Microduino-USBTTL]]
[[file:mCookie-AnalogInput.JPG|thumb|800px|center]]
+
|boardName=Microduino/mCookie-Core(328p) and Atmega328P@16M,5V
*Int sensorPin = A0;  Define the input pin is the analog pin A0.  
+
|fileName=Sensor-MIC Test.ino
*SensorValue = analogRead(sensorPin);    To read the value of the pin.
+
}}
  
 
===Hardware Setup===
 
===Hardware Setup===
*Stack all modules together, and then insert Sound sensor to the A0 slot of [[Microduino-Sensorhub]] with cable.
+
*Referring to the following diagram, connect the Sensor-MIC to the analog interface A0/A1 of '''[[Microduino-Sensorhub]]'''
You can refer to: [[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_Analog.PNG|thumb|400px|center]]
+
[[file:Microduino-sLight_A1.JPG|thumb|400px|left]]
You can refer to: [[mCookie-Hub]]
+
<br style="clear: left"/>
[[file:mCookie-sensorhub_Analog.PNG|thumb|400px|center]]
+
 
*Connect the core, Sensorhub, and Sound, and connect them to the computer with USB cable.
+
===Result===
*Select the right board card and COM port, and download directly after compiling. You can refer to [[AVR Core: Getting Started]]
+
*After download, open the serial monitor.
[[file:upload.JPG|thumb|800px|center]]
+
*The value displayed in the serial monitor reflects the current sound intensity detected by the MIC sensor.
*After compiling, you can select the right port in Tools→Serial Port of Arduino IDE, and then download the program directly.  
 
*After download, you can open the serial monitor, and the displayed value indicates the current intensity of the sound detected by the sensor.  
 
  
 
==Application==
 
==Application==

Revision as of 03:20, 10 November 2016

Language: English  • 中文
Microduino-Sound

The product number of Sensor-MIC is: MSDT11

Sensor-MIC is sound detection sensor module.

Electret microphone is composed of sound electric conversion and impedance conversion. The key component of sound electric conversion is electret diaphragm, which is a slice of thin plastic film of which one side is steamed with a layer of metal film, and after the electret by high voltage field, the two sides respectively has opposite charges, the steamed gold face of the diaphragm is outward, and is connected with the metal case. In the electret microphone, there is a field effect tube to do pre amplifier, so a certain blas voltage is needed when the electret microphone is working normally, which is generally not greater than 10v.

Instruction of Sensor Pin

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-MIC sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Analog signal input
    • PIN4(IO2): NC


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.

Features

  • Capacitive sound detection component
  • Low power and high sensitivity
  • With small size which is easy to install

Specification

  • Voltage
    • Working voltage: 3.3V~5V
  • Size
    • Size of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin inerface connected to sensorhub
    • The CAD drawing of the sensor: File:Sensor CAD.zip
  • Technical parameters
    • Measuring voltage: 0~5V(measuring frequency range 100Hz~4000Hz)
    • Measuring sound intensity: 45~120dB
    • Accuracy: ±1%
  • Connection
    • This sensor can be connected to the following interfaces of core: A0~A7

Document

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Sensor-MIC Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following diagram, connect the Sensor-MIC to the analog interface A0/A1 of Microduino-Sensorhub


Microduino-sLight A1.JPG


Result

  • After download, open the serial monitor.
  • The value displayed in the serial monitor reflects the current sound intensity detected by the MIC sensor.

Application

It can be used to collect sound or detect the sound shaking.

Project

  • Sensor-MIC

Purchase

History

Gallery

  • Front
Microduino-Sound Front
  • Back
Microduino-Sound Back