¿Àµð¿À ½ºÆåÆ®·³ ½¯µå (SparkFun Spectrum Shield)
ÆǸŰ¡°Ý : 38,000¿ø (ºÎ°¡¼¼ Æ÷ÇÔ)
»óÇ°ÄÚµå : [3378]ZAS-PTW-SP-13116
¹è¼ÛÀÏ : ´çÀϹ߼Û
Á¦Á¶»ç : Sparkfun
ºê·£µå : SparkFun [ºê·£µå¸ô ¹Ù·Î°¡±â]
³²Àº¼ö·® : 4°³
±¸¸Å¼ö·® :
°³
ÃÑ ±Ý¾× :
Ãß°¡&´ë·®±¸¸Å ¿äû 053-588-4080

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

¾ÆµÎÀÌ³ë ½ºÆåÆ®·³ ½¯µå´Â µÎ°³ÀÇ Ã¤³Î(Á¿ì) ¿Àµð¿À ÀÔ·ÂÀ» ä³Î´ç 7°³ ¹êµå·Î ³ª´­ ¼ö ÀÖ½À´Ï´Ù. Áï, »ç¿îµå ÀÔ·ÂÀ» ÅëÇؼ­ LED, ¸ðÅÍ, ÆßÇÁ, ¸±·¹ÀÌ µîÀ» Á¦¾îÇÒ ¼ö ÀÖ´Â ½Å±â¹æ±âÇÑ Á¦Ç°ÀÔ´Ï´Ù.


°°Àº Á¦Ç°Àº ¾Æ´ÏÁö¸¸ µ¿ÀÏÇÑ Ä¨À» ÀÌ¿ëÇÑ ¿¹Á¦¸¦ º¸½Ã¸é ´ë·« ¾î¶°ÇÑ Á¦Ç°ÀÎÁö ¾Ë ¼ö ÀÖÀ»°ÍÀÔ´Ï´Ù! ÀÏ´Ü ¿µ»óÇѹø º¸½ÃÁÒ~








¾ÆµÎÀ̳ë ÄÚµå

//Declare Spectrum Shield pin connections

#define STROBE 4

#define RESET 5

#define DC_One A0

#define DC_Two A1 



//Define LED connections on the Arduino/Shield

int LED[] = {7, 8, 9, 10, 11, 12, 13};


//Define spectrum variables

int freq_amp;

int Frequencies_One[7];

int Frequencies_Two[7]; 

int i;


/********************Setup Loop*************************/

void setup() {

  //Set LED pin configurations

  for(i=0; i<7; i++)

  {

    pinMode(LED[i], OUTPUT);

    digitalWrite(LED[i], LOW);

  }

  

  //Set spectrum Shield pin configurations

  pinMode(STROBE, OUTPUT);

  pinMode(RESET, OUTPUT);

  pinMode(DC_One, INPUT);

  pinMode(DC_Two, INPUT);  

  digitalWrite(STROBE, HIGH);

  digitalWrite(RESET, HIGH);

  

  //Initialize Spectrum Analyzers

  digitalWrite(STROBE, LOW);

  delay(1);

  digitalWrite(RESET, HIGH);

  delay(1);

  digitalWrite(STROBE, HIGH);

  delay(1);

  digitalWrite(STROBE, LOW);

  delay(1);

  digitalWrite(RESET, LOW);

}



/**************************Main Function Loop*****************************/

void loop() {

  

  Read_Frequencies();

  Graph_Frequencies();

  delay(50);

 

}



/*******************Pull frquencies from Spectrum Shield********************/

void Read_Frequencies(){

  //Read frequencies for each band

  for (freq_amp = 0; freq_amp<7; freq_amp++)

  {

    Frequencies_One[freq_amp] = analogRead(DC_One);

    Frequencies_Two[freq_amp] = analogRead(DC_Two); 

    digitalWrite(STROBE, HIGH);

    digitalWrite(STROBE, LOW);

  }

}


/*******************Light LEDs based on frequencies*****************************/

void Graph_Frequencies(){

   for( i= 0; i<7; i++)

   {

     if(Frequencies_Two[i] > Frequencies_One[i]){

        digitalWrite(LED[i], HIGH);

        delay(Frequencies_Two[i]);

        digitalWrite(LED[i], LOW);

     }

     else{

        digitalWrite(LED[i], HIGH);

        delay(Frequencies_One[i]);

        digitalWrite(LED[i], LOW);

     }

   }

}


Description: The Spectrum Shield enables your Arduino with the capability of splitting a stereo audio input into 7-bands per channel. You can then read the amplitude of each channel using the ADC on your Arduino allowing you to control everything from LEDs to motors, pumps to relays, or even fire, all with sound. With this shield you will be able to have almost any project be able to react to music or sound!

The Spectrum Shield features the MSGEQ7 graphic equalizer display filter. Two of these ICs allow you to split a stereo audio input into 7-bands (per channel) and read the amplitude of each using the ADC on your Arduino. The shield is populated with two 1/8" stereo jacks (like you would find on a pair of headphones). One serves as a stereo input and the other is a pass-through output which allows you to connect the Spectrum Shield in-line between your audio source and your stereo system without interruption. This revision of the Spectrum Shield has been updated to the Arduino R3 layout but still requires you to solder on your own headers (check the Recommended Products section below). This shield can be used to create sound visualizers, detect patterns in music or add sound activation to your microcontroller projects.

Note: This product is a collaboration with Ben Moyes of Bliptronics. A portion of each sales goes back to them for product support and continued development.

Documents:

¸ÞÄ«¸®¿öÁî






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