Difference between revisions of "Sound Sensor"

From LinkSprite Playgound
Jump to: navigation, search
(Introduction)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:Sound sensor.jpg]]
+
==Introduction==
 +
The Sound sensor module is a simple microphone. Based on the power amplifier LM386 and the electret microphone, it can be used to detect the sound strength of the environment. The value of output can be adjusted by a potentiometer.
  
 +
[[File:A61NG WITHOUT PACKAGED FRONT.jpg | 640px]]
 +
 +
[[File:A61NG WITHOUT PACKAGED BACK.jpg | 640px]]
 +
 +
== Features ==
 +
 +
Dimensions: 42.1×24.2×10.6mm
 +
 +
Net weight: 4.5g
 +
 +
== Dimension ==
 +
 +
[[File:sound sensor dimension.jpg]]
  
 
== Schematics ==
 
== Schematics ==
 
*[https://s3.amazonaws.com/linksprite/LinkerKit/sound+sensor.pdf Schematics]
 
*[https://s3.amazonaws.com/linksprite/LinkerKit/sound+sensor.pdf Schematics]
 +
 +
==Application Ideas==
 +
 +
<syntaxhighlight lang="c">
 +
const int ledPin =  12;      // the number of the LED pin
 +
const int thresholdvalue=400;//The threshold to turn the led on
 +
void setup() {
 +
    pinMode(ledPin, OUTPUT);
 +
}
 +
 +
void loop() {
 +
  int sensorValue = analogRead(A0);//use A0 to read the electrical signal
 +
  if(sensorValue>thresholdvalue)
 +
  digitalWrite(ledPin,HIGH);//if the value read from A0 is larger than 400,then light the LED
 +
  delay(20);
 +
  digitalWrite(ledPin,LOW);
 +
}
 +
</syntaxhighlight>
 +
 +
[[File:Sound link.jpg]]
 +
 +
==How to buy==
 +
Here to buy Sound Sensor on [http://store.linksprite.com/sound-sensor-module-of-linker-kit-for-pcduino-arduino/ store]

Latest revision as of 07:50, 20 April 2016

Introduction

The Sound sensor module is a simple microphone. Based on the power amplifier LM386 and the electret microphone, it can be used to detect the sound strength of the environment. The value of output can be adjusted by a potentiometer.

A61NG WITHOUT PACKAGED FRONT.jpg

A61NG WITHOUT PACKAGED BACK.jpg

Features

Dimensions: 42.1×24.2×10.6mm

Net weight: 4.5g

Dimension

Sound sensor dimension.jpg

Schematics

Application Ideas

<syntaxhighlight lang="c"> const int ledPin = 12; // the number of the LED pin const int thresholdvalue=400;//The threshold to turn the led on void setup() {

    pinMode(ledPin, OUTPUT); 

}

void loop() {

 int sensorValue = analogRead(A0);//use A0 to read the electrical signal
 if(sensorValue>thresholdvalue)
 digitalWrite(ledPin,HIGH);//if the value read from A0 is larger than 400,then light the LED
 delay(20);
 digitalWrite(ledPin,LOW);

} </syntaxhighlight>

Sound link.jpg

How to buy

Here to buy Sound Sensor on store