Giter VIP home page Giter VIP logo

arduinofft's Introduction

Arduino MusicVisualizer

A Neopixel Arduino-Based Music Visualizer

A brief Introduction

MusicVisualizer takes as input music, specifically its sine wave, and processes it giving as output the amplitude of the various frequencies.

Hardware

  • Arduino Nano
  • WS2812B RGB LEDS (x300) laid down as a serpentine vector (zig-zag).

Data from music is fetched connecting one of the leads of the 3.5mm jack to an analogPin set to INPUT. This way the Arduino keeps reading the different voltage levels, which are the values of the sine wave. Then an FFT is performed and the output is pushed to the matrix.

External Libraries

<FastLED.h>

Easy to use library to work with neopixel leds (and similar chipsets, in my case WS2812B).

<LedMatrix.h>

This library works in conjunction with FastLED.h. It builds the array used by FastLED.h and draws the graphics.

<fix_fft.h>

This library is used to perform a Fast Fourier Transform, which transposes the sine wave from the time domain to the frequency domain. It is given as input an array containing the values read from analogRead(). The output of the FFT is a sequence of complex numbers. To graph the power spectral density of the audio, which is what most people want from the FFT, you only need to use the first N/2 values of the output array.

arduinofft's People

Contributors

marcouderzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.