Difference between revisions of "Sensor-MIC"

From Microduino Wiki
Jump to: navigation, search
(Program)
Line 54: Line 54:
 
===Hardware Setup===
 
===Hardware Setup===
 
*Stack all modules together, and then insert Sound sensor to the A0 slot of [[Microduino-Sensorhub]]  with cable.  
 
*Stack all modules together, and then insert Sound sensor to the A0 slot of [[Microduino-Sensorhub]]  with cable.  
You can refer to : [[Microduino-Sensorhub]]
+
You can refer to: [[Microduino-Sensorhub]]
 
[[file:Microduino-sensorhub_Analog.PNG|thumb|400px|center]]
 
[[file:Microduino-sensorhub_Analog.PNG|thumb|400px|center]]
 
You can refer to: [[mCookie-Hub]]
 
You can refer to: [[mCookie-Hub]]
 
[[file:mCookie-sensorhub_Analog.PNG|thumb|400px|center]]
 
[[file:mCookie-sensorhub_Analog.PNG|thumb|400px|center]]
*Connect the core , Sensorhub, and Sound, and connect them to the computer with USB cable.  
+
*Connect the core, Sensorhub, and Sound, and connect them to the computer with USB cable.  
 
*Select the right board card and COM port, and download directly after compiling. You can refer to [[AVR Core: Getting Started]]
 
*Select the right board card and COM port, and download directly after compiling. You can refer to [[AVR Core: Getting Started]]
 
[[file:upload.JPG|thumb|800px|center]]
 
[[file:upload.JPG|thumb|800px|center]]

Revision as of 09:57, 28 September 2016

Language: English  • 中文
Microduino-Sound

Microduino-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

Specification

  • Electric specification
    • Working voltage: 3.3V~5V
    • Input device
  • Technical parameters
    • Measurement voltage: 0~5V(the measurement frequency range is 100Hz~4000Hz);
    • Measurement sound intensity: 45~120dB;
    • Accuracy: ±1%
  • Size
    • Size of the sensor: 5mm*5mm
    • Size of the board: 20mm*20mm
  • 1.27mm-spacing 4Pin interface
  • Connection
    • Output: 0~5V analog signal
    • Instruction of pins: GND, VCC, signal output, NC(null), this signal is analog signal, so you need to use analog interface (A0~A7)to detect it. The corresponding pins are A6, A2, and A0 which can be connected to Sensor-hub.
MCookie-sensorhub rule.JPG

Document

Development

Preparation

Program

  • Open the program "AnalogInput" in the library.
MCookie-AnalogInput.JPG
  • Int sensorPin = A0; Define the input pin is the analog pin A0.
  • SensorValue = analogRead(sensorPin); To read the value of the pin.

Hardware Setup

  • Stack all modules together, and then insert Sound sensor to the A0 slot of Microduino-Sensorhub with cable.

You can refer to: Microduino-Sensorhub

Microduino-sensorhub Analog.PNG

You can refer to: mCookie-Hub

MCookie-sensorhub Analog.PNG
  • Connect the core, Sensorhub, and Sound, and connect them to the computer with USB cable.
  • Select the right board card and COM port, and download directly after compiling. You can refer to AVR Core: Getting Started
Upload.JPG
  • 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

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