How to Make Music Reactive WS2812B LEDs With Multi-pattern

3,090

15

6

Introduction: How to Make Music Reactive WS2812B LEDs With Multi-pattern

About: Undergraduate , like to make new thing ,circuits and like to share my knowledge with others.

WS2812, WS2812B is an intelligent controlled LED light source. it has an inbuild control chip and has 4 pins. V+ ,V- ,Din & Dout.For control these LEDs we want to use MCU like Arduino, PIC or Rasberry pie.

I used Arduino UNO for this project.

Step 1: First You Need

1- Arduino UNO or MEGA

2- Auto gain MIC module

3- WS2812B LED Strip ( 144 LED strip Recommend )

4- `Jumper wires

5 - Breadboard

6 - Push button switch

Step 2: Set Up Your Arduino

1. First, you want to upload code to the Arduino.

* When you go to upload the code after connecting circuit Arduino IDE showing error message *

* If you want to Upload Code after connect, >> Disconnect AREF pin & 3V3 connect.

>> Disconnect data Out pin and analog IN Connecting.


Before the upload code First, add LIbraryI Provided.

2. change Number of LEDs, Data out PIN & Analog input PIN as you wish.

* If you have 50 LEDs Strip Change N_PIXELS30 >>>> to N_PIXELS50


Step 3: Make and Testing Circuit and Troubleshooting

First, you disconnect all power sources and Start to the wiring circuit.

Don't forget to connect AREF pin & 3.3V.

IF you use 5 PIN MIC MODULE,

  1. connect GND, V + to 3.3V.
  2. out pin connect to Arduino analog input.
  3. control gain >> gain pin not connected any lines = 60db

gain pin connected V+ line = 40db

gain pin connected GND line = 50db

power up the circuit and you can change patterns by pressing the button.


Step 4: Watch Video & Download File

Be the First to Share

    Recommendations

    • Cookie Speed Challenge

      Cookie Speed Challenge
    • 3D Printed Student Design Challenge

      3D Printed Student Design Challenge
    • Reclaimed Materials Contest

      Reclaimed Materials Contest

    6 Comments

    0
    fjongen
    fjongen

    7 weeks ago

    Nice project Sproud. the sketch is incredibly beautiful and extensive. 66% of my memory hahaha but it works perfectly !!! I have made a test set-up and want to use a nano at a later stage, so that I can also build it into my carnival hat. of course everything has to be waterproof! (rain pfff) in the attachment some pictures. Thank you again for this beautiful contribution.

    P_20211014_114926.jpgP_20211014_115022.jpgP_20211014_115149.jpgP_20211014_115244.jpgP_20211014_115254.jpgP_20211014_115649.jpgP_20211014_115654.jpgScreenshot_20211014-200416550.jpg
    0
    fjongen
    fjongen

    7 weeks ago

    Hello there

    What a beautiful project you have made here.
    I would like to use this project for my carnival hat (in the south Netherlands, Maastricht).
    the parts I have, but not the code. I get the message at this link
    tiny.cc/k1v1az: Oops, we weren't able to locate that URL!. Am I doing something wrong or can I no longer use this code?

    I'd love to hear from you. thank you.


    keep up the good work

    0
    Great Sprout
    Great Sprout

    Reply 7 weeks ago

    Link Updated.

    0
    bill_z
    bill_z

    Question 1 year ago on Step 3

    What circuit and program mods need to be made to allow music to be directly piped into the UNO right from a stereo 3.5MM jack?

    0
    Great Sprout
    Great Sprout

    Answer 1 year ago

    No need to Change code or circuit.Remove Mic and connect this way.

    Screenshot (18).png
    0
    bill_z
    bill_z

    Reply 1 year ago

    Thanks for your reply. I'll try this. I'm just learning about these processors and was worried about analogue vs digital inputs plus not wanting to over drive and burn one out.

    Thanks again.