Introduction
MIC sensor is a microphone-based sound sensor for ambient sound detection. It acts like a microphone, which is capable of detecting sound intensity and converting sound energy into analog electrical signal. These sensors are more commonly seen in recoder, sound-controlled lighting system, etc.
It works well with maincontrollers like Arduino, micro:bit, etc., and also supports graphical programming platforms such as MakeCode, and Mind+.
Specification
- Operating Voltage: 3V-5V
- Operating Current: TBD
- Interface: PH2.0-3P
- Dimension: 26×39mm/1.02×1.54"
- Signal Type: analog
Pinout
Label | Name | Description |
---|---|---|
1 | GND | Negative |
2 | VCC | Positive |
3 | SIGNAL | Analog Signal line |
Usage Description
There is a black sound picking device on the sound sensor. When we clap or speak loudly in front of the sensor, it feels the vibration of sound so as to generate electric signal.
The louder the sound, the stronger the output signal
Principle
The sensor converts the vibration caused by sound in the black sound picker into electrical output. It has a capacitive electret microphone which is sensitive to sound. Sound waves cause the thin film of the electret to vibrate and then the capacitance changes, thus producing the corresponding changed voltage, which later will be coverted to a voltage of 0 to 5V and collected by the data acquisition unit after being processed by A/D converter.
Application
(1) Light and Sound Interactive Cake
Description: Make a birthday cake. When playing the birthday song and the sound sensor detects the sound, and the colorful LED strip lights up.
Components:
BOS0009 Sound Sensor | BOS0019 Colorful LED Strip(Fixed color) | BOS0035 Mainboard-3IO |
MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Non-programming | Programming |
---|---|
(2) Smart Streetlight
Description: At night, when people walk under the streetlight, the sound sensor detects the sound and the LED lights up for a while and then turns off.
Components:
BOS0009 Sound Sensor | BOS0004 Ambient Light Sensor | BOS0017 LED Module |
BOS0029 Logic "Not" Module | BOS0027 Logic "And" Module | BOS0031 Duration Module(0 to 6 second) |
BOS0035 Mainboard-3IO | MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Non-programming | Programming |
---|---|
(3) Noise Detector (Programming)
Description: Make a noise detector. At night, when the noise from business street exceeds 60(adjustable), the buzzer buzzes and the LED turns on for 3 seconds to warn the relevant people.
Components:
BOS0009 Sound Sensor | BOS0004 Ambient Light Sensor | BOS0017 LED Module |
BOS0020 Buzzer Module | MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Connection Diagram:
Flowchart:
Mind+ Program:
MackCode Program:
Video Demo
Turn to the Boson Kit Page