About Here

This web blog is established for collecting useful information about building prototype with arduino or other applications. This page shuld help a designer with very basical technical cognition to build a working model or a prototyp for his design concept. We find prototyp or working model an excellent tool to test concept and understand it's usage in real condition (not only fantasy in mind). It's ofter very hard to realize every functions of a design concept. However it's our goal here to make this task easier.

What should be always keeped in mind is that we are not engineers and it's not our goal to design a perfect electron programme control. We are designers who are more willing to understand the users through prototype testing.

This web-site is still under construction and more information shall be collected. :)

Oct 5, 2011

Sound Detector

Sound Detector
(NPN Transistor in sketch)
Connection
=== Arduino Code Sample ===
int DecPin = A5; // analog Input of Sound
int Val1;  // an initial value
int Val2;  // comparing value
int ValS = 5; // Sensibility
void setup() {
  Serial.begin(9600);
}
void loop() {
  Val1 = analogRead (DecPin);
  if (abs(analogRead(DecPin) - Val1) >ValS) { // if the read value changes
    Serial.println (analogRead (DecPin));   // print the value
    delay(50);
  }
}

====
Reference
Cheap Sound Sensor for AVR
http://tinkerlog.com/2007/05/20/cheap-sound-sensor-for-avr/

No comments:

Post a Comment