Code Monkey home page Code Monkey logo

led-music-visualizer's Introduction

Create a realtime LED audio waveform based on the pitch and volume with Arduino

Watch the video

The entire process was filmed here: https://youtu.be/lU1GVVU9gLU

Requirements

How it works

Every 1 ms, the frequency(pitch) of the audio is read into the arduino, and the volume is read from the amplified audio signal. The pitch is then mapped to rgb colors, and the volume represents the brightness. The combination of these values give us unique rgb colors for a single LED. Since we have an array of LEDs we can shift all of them to the right before we update the first LED. This creates a "memory" effect to display a real time portion of the audio waveform.

Note

This code assumes you have a frequency to voltage converter, which operates between 1 - 3 volts during regular music frequencies (roughly 100 - 600hz). Take note to define the correct data pins if you try to build and use this code for your own builds.

led-music-visualizer's People

Contributors

devoncrawford avatar

Watchers

James Cloos 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.