¸¶ÀÌÅ©·ÎÆù ¾Æ³¯·Î±× »ç¿îµå¼¾¼­ / SparkFun Electret Microphone Breakout / OPA344 ¸ðµâ
ÆǸŰ¡°Ý : 17,980¿ø (ºÎ°¡¼¼ Æ÷ÇÔ)
»óÇ°ÄÚµå : [3213]ZAS-PTW-SP-12758
¹è¼ÛÀÏ : ´çÀϹ߼Û
Á¦Á¶»ç : Sparkfun
ºê·£µå : SparkFun [ºê·£µå¸ô ¹Ù·Î°¡±â]
³²Àº¼ö·® : 3°³
±¸¸Å¼ö·® :
°³
ÃÑ ±Ý¾× :
Ãß°¡&´ë·®±¸¸Å ¿äû 053-588-4080

  • »óÇ°»ó¼¼
  • °ü·Ã»óÇ°
  • ¹è¼Û/±³È¯/¹ÝÇ° ¾È³»
  • »óÇ°¸®ºä

º» Á¦Ç°Àº ÀÛÀº »çÀÌÁîÀÇ ¸¶ÀÌÅ©·ÎÆù ¾Æ³¯·Î±× »ç¿îµå ¼¾¼­ÀÔ´Ï´Ù. ¸ñ¼Ò¸®³ª ¹Ú¼ö¼Ò¸®, ³ëÅ©¼Ò¸® µîÀÇ ¼Ò¸®¸¦ 

ÁõÆøÇÏ¿© 2.7~5.5VÀÇ ¾Æ³¯·Î±× ½ÅÈ£·Î º¯È¯½ÃÄÑÁÖ¸ç, ¾ÆµÎÀ̳ë¿Í °°Àº ¸¶ÀÌÅ©·Î ÄÁÆ®·Ñ·¯º¸µå¸¦ ÅëÇØ ½ÅÈ£¸¦

ÀԷ¹ÞÀ» ¼ö ÀÖ½À´Ï´Ù.



Ư¡ (Features) :

  • ÀÔ·Â Àü¾Ð 3.3V ~ 5.5V

  • 100Hz ~ 10kHz ÀνÄ

  • 2.7~5.5V ¾Æ³¯·Î±× ½ÅÈ£·Î º¯È¯

  • OPA344 ¾ÚÇÁ »ç¿ë



Âü°íÀÚ·á (noted items) :

  • ¸ÞÄ«¼Ö·ç¼Ç Ä¿¹Â´ÏƼ Mechasolution Blog´Â ¿©·¯°¡Áö Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.






const int sampleWindow = 250; // Sample window width in mS (250 mS = 4Hz)
unsigned int knock;
int ledPin = 9;

void setup() 
{
   Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
}

void loop() 
{
 unsigned long start= millis();  // Start of sample window
 unsigned int peakToPeak = 0;   // peak-to-peak level

 unsigned int signalMax = 0;
 unsigned int signalMin = 1024;

 // collect data for 250 miliseconds
 while (millis() - start < sampleWindow)
 {
   knock = analogRead(0);
      if (knock < 1024)  //This is the max of the 10-bit ADC so this loop will include all readings
      {
         if (knock > signalMax)
         {
           signalMax = knock;  // save just the max levels
         }
      else if (knock < signalMin)
        {
         signalMin = knock;  // save just the min levels
         }
     }
 }
 peakToPeak = signalMax - signalMin;  // max - min = peak-peak amplitude
 double volts = (peakToPeak * 3.3) / 1024;  // convert to volts


Serial.println(volts);
 if (volts >=1.0)
 {
  //turn on LED
  digitalWrite(ledPin, HIGH);
   delay(500);
  Serial.println("Knock Knock");
 }
 else
 {
 //turn LED off
 digitalWrite(ledPin, LOW);
 }             
}
¸ÞÄ«¸®¿öÁî






°ßÀû¿äû
±¸¸Å´ëÇà
Äü/¹æ¹®¼ö·É
ÈĺҰáÁ¦
±â¼ú¹®ÀÇ