Sound Reactive WS2812 LEDs With Arduino and Sound Sensor

Introduction: Sound Reactive WS2812 LEDs With Arduino and Sound Sensor

Hello together,

i made a sound reactive chain of WS2812 lights with table tennis balls and i control it with a sound sensor and an arduino. This is a easy project which beginners can do.

Step 1: Circuit

I connected the WS2812 LEDs like in the picture. Dont forget that you cant supply too much LEDs with the arduino. Use a separate power supply therefore. I used a 470 Ohm resistor in series for the data line, and a 1000uF capacitor (at least 5V) in parallel with the supply.

I got the sound sensor here:

Sound sensor

But you can also get it anywhere else. You also can get the WS2811 LEDs and the other stuff at many shops.

Step 2: Programming

To control the LEDs you need the Adafruit library which you can get here:

https://github.com/adafruit/Adafruit_NeoPixel

Because the sound sensor only gave me a high or a low level signal, I take 100 analogValues from this sensor and count how often they are high. Through this relation I can control how many LEDs shall be turned on.

LED Contest 2017

Participated in the
LED Contest 2017

Be the First to Share

    Recommendations

    • Hand Tools Only Challenge

      Hand Tools Only Challenge
    • Modify It Speed Challenge

      Modify It Speed Challenge
    • Remix Contest

      Remix Contest

    8 Discussions

    1
    MatteoM65
    MatteoM65

    1 year ago

    Hi there, I have got this to work with my string of LEDs, but only for the first 25 out of a possible 96 LEDs. I have tested the string with different code and they all work. Is there something I can change in the code?

    0
    Grasscutter_
    Grasscutter_

    Reply 1 year ago

    Same problem here. I tried to figure out how the code actually works in order to adapt it to my led strip length. Guess it is so easy that I overlooked it - or I'm just incredibly stupid. SEND HELP PLS

    0
    LordVallejo
    LordVallejo

    1 year ago

    Hey brother, thank you so much for your time and code, it works pretty good, this is what I was looking for.

    0
    titanx980ti
    titanx980ti

    Question 1 year ago on Step 2

    i do not have the mic sensor , is there a way of using headphone jack as an input ?

    0
    Swansong
    Swansong

    2 years ago

    That looks neat, it would be fun for party lighting :)

    0
    tytower
    tytower

    2 years ago

    Just posting the ".ino" file is the way to go.

    0
    electronstogo
    electronstogo

    Reply 2 years ago

    Oh, sorry. Next time I will do that.