Introduction: How to Make Music Reactive WS2812B LEDs With Multi-pattern
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,
- connect GND, V + to 3.3V.
- out pin connect to Arduino analog input.
- 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.
Question 2 years 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?
Answer 2 years ago
No need to Change code or circuit.Remove Mic and connect this way.
Reply 2 years 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.
Reply 7 months ago
this looks great, just what i need in my arcade cabinet :)
re using 3.5mm the capacitor "+" side, does that go to 3 different places, the Ard_Gnd, the Ard+5 AND the Ard_Pin5 ?, or am i reading it incorrectly?,
when i strip a stereo 3.5mm lead to just have a left and ground (ignore the right channel)? i supposed left or right, couldn't i just join them to make mono.
1 year 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.
1 year ago
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
Reply 1 year ago