Arduino RGB LED Music Visualizer

Visit for instructions. Arduino RGB led music visualizer with beat tracking algorithm. Original code. All processing is done on the Arduino. Simple RGB LED used.

I just put together a new blog that features electronics projects, news, and product information. Check it out here, and feel free to contact me if you are interested in having your project featured!

Music used under creative commons license, found at Song title: “Beautiful Straight Lines”

Duration : 0:3:30





13 responses to “Arduino RGB LED Music Visualizer”

  1. IRoyalCSI Avatar

    could you? please …
    could you? please release the source code?

  2. BoschChr Avatar

    Ha nice tread! ๐Ÿ™‚ I …
    Ha nice tread! ๐Ÿ™‚ I made something similar but with analog filters. At first i used a chip i programmed but it has a CPU so it has a sample rate so it misses a lot of nice pulse effects while fading that occurs in the analog region. Also like here made an 3.5mm jack? input for noise reduction.

  3. majordecibel Avatar

    I will probably …
    I will probably publish the full code soon, but who knows. It is fairly simple and all arduino? based.

  4. blinkylightlove Avatar

    Ok, so since your …
    Ok, so since your blog encouraged video responses (or, at least that’s how i took it ๐Ÿ™‚ ) I tried to add a video response, but it wigged out on me, so that may or may not work. At any rate, I’m working on a wearable visualizer,? so I’m very interested in programs that are only arduino based and computationally inexpensive… so, if you decide to publish some of your code, that would be awesome! But, inspiring stuff either way!

  5. majordecibel Avatar

    Thank you and good …
    Thank you and good luck! I have since designed and had a few? PCBs fabricated. I also used some more vibrant Cree LEDs. I think fs was approx 10k with antialiasing filter cutoff of 1.5kHz (oversampled). Decay coef was probably 0.05 to 0.2 or so. Code isnt perfect yet and demos better with more dynamic music. Haven’t touched the project in a while or updated.

  6. electrohamLincoln Avatar

    love the project …
    love the project man, im working on something similar myself (though I focus on bass beat detection). i have a two part question: what is your sampling rate and what is the decay coefficient in your moving average filter? Im wondering how this digital time constant compares to the analog filters in my project.? Also, you’ve inspired me, im gonna add a similar display mode in my project (except it’ll changes color when a beat is detected). Let me know if you want to collaborate in the future

  7. majordecibel Avatar

    Thank you ๐Ÿ™‚ I have …
    Thank you ๐Ÿ™‚ I have included some information that would allow someone to control an RGB LED, along with how to read line level audio, and some general information on the algorithm already (just basic stuff), but I’m not yet sure if I will release the full source code just yet. ?

  8. neigan Avatar

    Cool project, will …
    Cool project, will you be releasing? full sourcecode aswell?

  9. petelite Avatar

    Nooo I? hate FFT! …
    Nooo I? hate FFT! But I see how it would be useful here xD

    This should get me going, thanks!

    I was working with a switched-capacitor filter, which I got working, but I’m not sure how I can get multiple different clock signals out of the Arduino while it’s doing other stuff as well…

  10. majordecibel Avatar

    This is pretty …
    This is pretty simple – it’s basically doing a forward moving average on the absolute value of the ADC samples, and mapping that to intensity. Colour switches when the instantaneous absolute value of the ADC exceeds the moving average by some amount. That gives you some hints to how I’m doing it ๐Ÿ™‚ If you want to distinguish between different frequency components, the easiest way would be to filter? the input signal. To go further you could use a low pass anti-aliasing filter and FFT.

  11. petelite Avatar

    Cool! I want mine …
    Cool! I want mine to be this good… does this distinguish between different frequency components of the audio signal?

    The DC offset is brilliant, I was going to? run the signal through a diode to cancel the negative component, but the offset is a much better way. I’ll add this to mine…

  12. majordecibel Avatar

    Thanks. I plan to …
    Thanks. I plan to include a clearer schematic along with a parts list, full code, and a few more videos. You can find basic code and schematics for connecting/ controlling an? RGB LED and reading in line level audio from a 3.5mm jack provided you have some familiarity with the Arduino. Cheers.

  13. manutube8080 Avatar

    I just saw your …
    I just saw your blog and I want to? say that it is a well written project. Congrats. Yet you may also include a schematic of your final hardware because the pictures although there is really a big zoom on it, they aren’t very clear. Might also submit more videos

Leave a Reply