Цветомузыка на Arduino и MSGEQ7

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Цветомузыка на основе MSGEQ7 и Arduino, макетная плата со светодиодами и фильтром на микросхеме MSGEQ7, микрофонный усилитель.
    Группа Astrix

Комментарии • 10

  • @NyajeSVR
    @NyajeSVR 7 лет назад

    а вы схему фильтров на микросхеме MSGEQ7 не скинете?

  • @Vlad-mz5og
    @Vlad-mz5og 8 лет назад

    а какие ты используешь конденсаторы и резисторы

  • @panda-978
    @panda-978 8 лет назад +1

    Что за песня

  • @AlexBerril
    @AlexBerril 8 лет назад

    Можно скетч?

  • @drekhaker91
    @drekhaker91 8 лет назад

    Скетч так и не нашел(((

    • @user-eg3ft4hi8j
      @user-eg3ft4hi8j 5 лет назад +1

      Плохо искал

    • @user-eg3ft4hi8j
      @user-eg3ft4hi8j 5 лет назад

      int strobePin = 7; // Strobe Pin on the MSGEQ7
      int resetPin = 8; // Reset Pin on the MSGEQ7
      int outPin = A5; // Output Pin on the MSGEQ7
      int level[7]; // An array to hold the values from the 7 frequency bands

      void setup() {

      Serial.begin (9600);

      // Define our pin modes
      pinMode (strobePin, OUTPUT);
      pinMode (resetPin, OUTPUT);
      pinMode (outPin, INPUT);

      // Create an initial state for our pins
      digitalWrite (resetPin, LOW);
      digitalWrite (strobePin, LOW);
      delay (1);

      // Reset the MSGEQ7 as per the datasheet timing diagram
      digitalWrite (resetPin, HIGH);
      delay (1);
      digitalWrite (resetPin, LOW);
      digitalWrite (strobePin, HIGH);
      delay (1);


      }


      void loop() {

      // Cycle through each frequency band by pulsing the strobe.
      for (int i = 0; i < 7; i++) {
      digitalWrite (strobePin, LOW);
      delayMicroseconds (100); // Delay necessary due to timing diagram
      level[i] = analogRead (outPin);
      digitalWrite (strobePin, HIGH);
      delayMicroseconds (100); // Delay necessary due to timing diagram
      }

      for (int i = 0; i < 7; i++) {
      Serial.print (level[i]);
      Serial.print (" ");
      }

      Serial.println ();

      }

    • @aleksandrovcharenko5040
      @aleksandrovcharenko5040 8 месяцев назад

      А куда подключать светодиоды. Это, наверное, не весь скетч?