Code Monkey home page Code Monkey logo

justcallmekoko / arduino-fastled-music-visualizer Goto Github PK

View Code? Open in Web Editor NEW
190.0 15.0 40.0 34.95 MB

An Arduino based music visualizer using the FastLED library and a strip of individually addressable LEDs

C++ 100.00%
music-visualizer arduino-uno sparkfun-spectrum-shield fastled-library bass shield strip music individually-addressable-leds led material gnd pin hacking embedded rainbow color-scheme color-palette spectrum-analyzer ws2812b

arduino-fastled-music-visualizer's Introduction

Arduino FastLED Music Visualizer


Instagram - YouTube - Website

Like my content? Show your support by subscribing to my channel and following my page.

Catch my live stream on Twitch where I play games, have just chatting sessions to talk tech, and just generally be an ordinary person who can't figure out how to make proper life decisions.

Stream Schedule:
Mon: 1800 - 2000 EST
Wed: 1800 - 2000 EST
Sun: 1200 - 1400 EST

Table Of Constituents

Intro

An Arduino based music visualizer using the FastLED library and a strip of individually addressable LEDs.
Imagine this scenario. Does this not make you want to create your own music visualizer?

> crawled inside of the neighbor's dog
> dog walks inside of neighbor house
> broke into neighbor house by being inside of dog
> it is night now
> brown cow
> creep upstairs to find their mushroom farm
> go into bed room
> nothing
> turn to leave
> emergency yogurt falls out of pocket onto hardwood floor of bedroom
> yogurt everywhere
> wife gets up
> slips on yogurt
> impaled by mattress and is dead
> yogurt murder
> heinous Crims
> power dump on dad's face so he doesn't feel as bad about his dead yogurt wife
> poop yogurt and leave
> poo and yogurt all over
> in the air
> zero gravity and poop

I can't find a guide worth a shit on YouTube or Github. I saw many videos showing a demo of a DIY music visualizer using these exact lights and an arduino. People seem to love to brag about how awesome their shit is but they won't show you how to make it. I have created this repo for anyone who faces the same challenge I did. I hope you find this useful and beneficial to your daily intake of fiber.

Setup

So this is how to setup the most "dank" music visualizer ever.
There will be two ways to set this puppy up. I prefer the second way, but that costs money. There is a full video tutorial here

Materials

Standalone Arduino UNO Setup

Code

  1. Open this code in your Arduino editor
  2. Line 13, adjust NUM_LEDS to the number of LEDs you plan to use
  3. Upload to your Arduino UNO

Pins

  • 5v - Connect to Vcc on LED strip
  • GND - Connect to GND on LED strip
  • A0 - Connect to the other end of the 3.5mm jack connected to your music source
    • A0 must be pulled down with a resistor (shown in the picture below)
  • 6 - Connect to DATA on LED strip alt text

Arduino UNO with Sparkfun Spectrum Shield Setup

For this version of the music visualizer, you will need the Sparkfun Spectrum Shield
I prefer this version because it allows you to split the audio signal into 7 seperate channels (bass, mids, treb). This is important for anyone who wants their music visualizer to respond only to bass like mine.

Code

  1. Open this code in your Arduino IDE
  2. Line 15, adjust NUM_LEDS to the number of LEDs you plan to use
  3. Install the FastLED library under "Manage Libraries"
  4. Upload to your Arduino UNO

Pins

  • 5v - Connect to Vcc on LED strip
  • GND - Connect to GND on LED strip
  • 6 - Connect to DATA on LED strip

arduino-fastled-music-visualizer's People

Contributors

justcallmekoko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-fastled-music-visualizer's Issues

How are with MSGE7 without the sparkfun shield?

Hi, I have some MSGEQ7'S but no sparkfun shield. could you please elaborate as to how to wire it up without it?

int strobe = 4;
int reset = 5;
int audio1 = A0;
int audio2 = A1;
int left[7];
int right[7];
int band;
int audio_input = 0;
int freq = 0

what does int freq, int band, and int left and right refer to?

thanks

Does this need a a power supply?

Hello Mr Grims,

I am trying to implement your music visualizer with the spectrum shield. However I don't think my lights are responsive to the beats of the music. Also most of the led lights do not light up consistently. Does this mean there isn't enough power for the leds?

New Feature Suggestion ๐Ÿ˜€ Online Simulator for the Music Visualiser

Hi There

We are working on an Arduino simulator based on AVR8js. it is free and is in the draft stage now. We are happy to see your project on Music Visualiser. We found it very helpful.

We can have a simulation page for your project which you can link so that the users can expect what they can get from your library. users will also be able to tinker with your project online, see the output, and proceed. This will be a very good helpful resource for the users too.

here are the example simulation pages for other libraries:
https://wokwi.com/arduino/libraries

I hope you find it useful and interesting for your library users.

Please let us know your feedback.

Right now, we have a preview of hope the library simulation will look below:

GIF FastLED

Best Regards

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.