Difference between revisions of "Open Source Voice Decibel Detector"

From Microduino Wiki
Jump to: navigation, search
(Bill of Material)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|
 
|
 
==Outline==
 
==Outline==
*Project:Microduino open source voice decibel detector
+
*Project: Microduino open source voice decibel detector
*Objective:Monitor noise, and it will give an alarm when the threshold is surpassed.
+
*Objective: Monitor noise, and it will give an alarm when the threshold is surpassed.
*Difficulty:Medium
+
*Difficulty: Medium
*Time-consuming:1 hour
+
*Time-consuming: 1 hour
*Maker:ray
+
*Maker: ray
  
 
*Introduction:
 
*Introduction:
Line 84: Line 84:
 
*Open Arduino IDE for Microduino environment(Reference to set up:'''[[AVR Core:Getting started]]''')
 
*Open Arduino IDE for Microduino environment(Reference to set up:'''[[AVR Core:Getting started]]''')
 
*Click '''[tool]''' bar, confirm '''board(Microduino-Core) processor(Atmega644pa@16M,5V)''' selected correctly, and select the corresponding '''port number(COMX)'''.
 
*Click '''[tool]''' bar, confirm '''board(Microduino-Core) processor(Atmega644pa@16M,5V)''' selected correctly, and select the corresponding '''port number(COMX)'''.
*Click '''[File]'''->'''[open]''', browse to the project program address, and click '''“DBDetector.ino”''' to open it.
+
*Click '''[File]'''->'''[open]''', browse to the project program address, and click '''"DBDetector.ino"''' to open it.
 
*After all these items are correct, click '''"→"''' button to download onto the development board.
 
*After all these items are correct, click '''"→"''' button to download onto the development board.
  
Line 157: Line 157:
 
**Make '''collision switch''' part in '''structure B1'''come out from the hollow-out part in '''structure B2''', as shown in then picture marked.
 
**Make '''collision switch''' part in '''structure B1'''come out from the hollow-out part in '''structure B2''', as shown in then picture marked.
 
|width="50%" valign="top" align="left"|
 
|width="50%" valign="top" align="left"|
[[File:DbstructModule2.png||600px|center]]
+
[[File:DbstructModuled2d.jpg||600px|center]]
 
|}
 
|}
  
Line 167: Line 167:
 
** Put structure B3 adjoining to structure B2.
 
** Put structure B3 adjoining to structure B2.
 
|width="50%" valign="top" align="left"|
 
|width="50%" valign="top" align="left"|
[[File:DbstructModule3.png||600px|center]]
+
[[File:DbstructModuled3d.jpg||600px|center]]
 
|}
 
|}
  
Line 175: Line 175:
 
** Put structure B4 adjoining to structure B3.
 
** Put structure B4 adjoining to structure B3.
 
|width="50%" valign="top" align="left"|
 
|width="50%" valign="top" align="left"|
[[File:DbstructModule4.png||600px|center]]
+
[[File:DbstructModuled4d.jpg||600px|center]]
 
|}
 
|}
  
Line 230: Line 230:
  
 
== FAQ==
 
== FAQ==
*Q:'''Can the triggered sound size and duration be changed?'''
+
*Q: '''Can the triggered sound size and duration be changed?'''
**A:Yes, you can change the variable value of voice and maxNoise in userDef.h.
+
**A: Yes, you can change the variable value of voice and maxNoise in userDef.h.
  
*Q:'''Can I close it when the alarm ring?'''
+
*Q: '''Can I close it when the alarm ring?'''
**A:Yes, pressing the switch can close it.
+
**A: Yes, pressing the switch can close it.
  
*Q:'''Why dose mine continually alarm, and turning off the switch has no reaction?'''
+
*Q: '''Why dose mine continually alarm, and turning off the switch has no reaction?'''
**A:Notice that if the pin of microphone MIC has been inserted into A0/A1, and not into D0/D1, where is confusing.
+
**A: Notice that if the pin of microphone MIC has been inserted into A0/A1, and not into D0/D1, where is confusing.

Latest revision as of 07:42, 13 September 2016

Language: English  • 中文

Outline

  • Project: Microduino open source voice decibel detector
  • Objective: Monitor noise, and it will give an alarm when the threshold is surpassed.
  • Difficulty: Medium
  • Time-consuming: 1 hour
  • Maker: ray
  • Introduction:
    • In this tutorial we will use Microduino product module to quickly set up a noise detector.
    • It can detect the constant noise and give an alarm with buzzer and LED lights.
    • The noise decibel value will be displayed on the OLED screen.
DBDetectorShow.png

Bill of Material

  • Microduino Equipment
Module Number Function
Microduino-Core 1 Core board
Microduino-USBTTL 1 Program download
Microduino-OLED 1 Show the current db value
Microduino-Duo-v 1 Reduce the overall height
Microduino-Sensorhub 1 Sensor linking
Microduino-Sound 1 Collect voice
Microduino-Crash 1 Switch
Microduino-Buzzer 1 Buzzer, alarm
Microduino-Color LED 1 Alarm and flash
  • Other Equipment
Module Number Function
Micro-USB cable 1 Program download, and power supply
Wooden casing suite 1 The appearance, and fixation
M2 screw 15 Structure fixation
M2 nut 15 Structure fixation
Screwdriver 1 Tool
double-sided taps 2 Structure fixation
DBDetectorAllThing.png

Principle of the Experiment

  • Collect voice in the environment through mCookie-Sensor MIC microphone sensor.
  • When the voice is constantly over db threshold, the LED will light and the buzzer will alarm.
  • You should press the collision to remove the alarm.
  • OLED screen real time displays the current environment sound db value.
噪theo.jpg

Program Download

Programming

  • Overlay Microduino-Core and Microduino-USBTTL together.
    • Connect Microduino-USBTTL with USB cable, and prepare to upload the program.
    • Note:Please upload programs before stacking all modules together.
  • Open Arduino IDE for Microduino environment(Reference to set up:AVR Core:Getting started
  • Click [tool] bar, confirm board(Microduino-Core) processor(Atmega644pa@16M,5V) selected correctly, and select the corresponding port number(COMX).
  • Click [File]->[open], browse to the project program address, and click "DBDetector.ino" to open it.
  • After all these items are correct, click "→" button to download onto the development board.

Noise Detector Assemble

  • Step1
    • Set them respectively in turn from left to right, namely structure B1,B2,B3,B4.
Dbstruct1V1.png


  • Step2
    • Fix OLED on structure B2 with screw and nut, as shown in the picture.
Dbstruct2V1.png


    • Fix collision switch on structure B1 in accordance with the direction as shown in the picture.
    • Note that it must be same with the direction on the picture, which is related to the overall placement of the collision switch.
Dbstruct3V1.png


Dbstruct4V1.png


Dbstruct5V1.png


DbstructModule1.png


  • Step3
    • Put structure B1 adjoining to structure B2.
    • Make collision switch part in structure B1come out from the hollow-out part in structure B2, as shown in then picture marked.
DbstructModuled2d.jpg


    • Put structure B3 adjoining to structure B2.
DbstructModuled3d.jpg
    • Put structure B4 adjoining to structure B3.
DbstructModuled4d.jpg


Dbstruct8.jpg


DbstructModule5.png


  • Step5
    • Cover structure A1 and structure A2 up and down and fix with cart slot of structure B5 . Now the noise monitor assembling complete.
DbstructModule6.png


    • Finally, insert USB cable into the power supply backplane of Microduino-Duo-v , then the noise tester can operate.
DbstructModule7.png

Operating Instruction

  • When noise reaches a certain degree, it will give an alarm.
  • The buzzer will ring, and the LED lamp will light.
  • OLED will show the highest decibels.
  • You can press the collision switch to turn off.

FAQ

  • Q: Can the triggered sound size and duration be changed?
    • A: Yes, you can change the variable value of voice and maxNoise in userDef.h.
  • Q: Can I close it when the alarm ring?
    • A: Yes, pressing the switch can close it.
  • Q: Why dose mine continually alarm, and turning off the switch has no reaction?
    • A: Notice that if the pin of microphone MIC has been inserted into A0/A1, and not into D0/D1, where is confusing.