How to make Music Reactive RGB LEDs with Arduino
Vložit
- čas přidán 6. 09. 2024
- How to build your own Music Visualizer with Arduino for RGB LED Strips This is a video that teaches you how to change the color of a LED strip based on the value that is obtianed from a Sound sensor, the signal is filtered using a First Order Low pass IIR Digital filter with a cutoff
frequency of 900Hz the filtered signal is compared with several threshold
values that are used to determine which color will be displyed based on the frequency of the sound that is sensed by the sensor, low frequency sounds (barely audible) are displayed as Blue in the LED Strip, all the way to high frequency sounds (highly audible) wich are displayed as Red in the strip.
Visit our links below to download the source code:
-----------------------------------------------------------------------------
github.com/Bra...
github.com/BrainSmash
BrainSmashYT
YT-BrainSmash (circuit diagram is on our instagram)
brain.smash.yt@gmail.com
------------------------------------------------------------------------------
Song: Marshmello - Alone (FadeX Remix)
Link: • Video
Credits:
~ FadeX
/ fadexmusic
/ fadexmusic
/ fadexmusic
~ Marshmello
bit.ly/2wQCieI
/ marshmellomusic
/ marshmellomusic
/ marshmellomusic
I think you did a really good, thorough job showing the set up. As a recommendation for improving future videos, I suggest spending time going over your code. From my personal experience, the coding part is always tricky, and it helps to understand different programmers' approach and thinking. Thanks!
There are thousands of videos of this topic but this is the best, GREAT WORK BRO 👍👍
Amazing video man! You nailed it like a prom date. I have been searching for a hands on video for couple days. Lots of BS to sort out. Your video was perfect! Thanks a million
Your welcome and thanks for the support
Thanks, BrainSmash. I always wanted to make a fun project in IOT and finally made it with the help of this video!
What Transistor did you use?!? You just say "Transistor" and don't specify a name.
Great work!
I just have one question, as audio consists of all different frequencies, how are you targeting one frequency to change colour, is it like focusing on the one with highest amplitude?
Good day Sir 👋
How may I set my 4 pcs of 4 pin rgb led module to my 4 pcs of speakers separately 1st 4pin rgb led module to 1st speaker, 2nd 4pin rgb led module to 2nd speaker, 3rd 4pin rgb led module to 3rd speaker and 4th 4pin rgb led module to 4th speaker with super slow changing colors such as 10 seconds delay transition colors of fading rgb and switch automatically to music reactive mode when there is playing music or songs on my videoke and turn back automatically to super slow changing colors of red green blue when there's no music playing or in standby mode?
4 pcs of 4 pin rgb led module to my 4 pcs of speakers separately:
1st 4pin rgb led module to 1st speaker,
2nd 4pin rgb led module to 2nd speaker,
3rd 4pin rgb led module to 3rd speaker and
4th 4pin rgb led module to 4th speaker
Hi, my LED strip only has red, green, and white. With two stranded red and white cables. How would i wire this up?
hello i have a question, i have a same led strip but it only requires dc 5v input so what changes do i have to make into the project in order for it to work
How do you make the light change more sensitive mine doesnt change colour when theres sound even when i change the sensistivity of the microphone module
Good morning I am doing the project but I bought a ky-038 sensor is not calibrated and it does not recognize my a click, could you help me please thank you.
Thinking of using this method for my underglow on my car, do you know if its also possible to add a bluetooth module so as to set as a solid blue or have it dance with the music via the sound sensor
can u plz design PCB for this circuit
so we can send it to manufacturer .
Hey @brainsmash i have done everything accordingly my sound sensor is working and reactive according to sound but leds aren’t. It just stays in blue or cyan colour ! And when i put my sensor near the speaker it on changes colour!
Please can uh help me ?
How can I calibrate the sensor if I got a sensor with digital and analogue output? And how different the circuit will be?
Me too I hv the same problem
Which sound sensor do I need becous there is many different sound sensor in the stor?
so it can just do a simple flashing? you dont need an arduino for that. I really thought you can manipulate the blinking patterns using the arduino depending on the music rythm. but in the end, its just the same as any other video about this tooic.
Any transistor could work for that?
You are the best this meant a lot to me
Hi, I was wondering what is the name (model) of the Led stripe used in the video
NeoPixel Lighshow using Arduino: czcams.com/video/f1BoASEueCU/video.html
I try to do the same config but I guess my sound sensor is not the same so the value are different. When I set the same config, I can see in the serial plotter the variation is super small (stay between 3 to 3.1). do you know how to adapt it
same, do you have a solution for this problem?
que tipo de transistor son
Hy bro
Please tell me the compents that you used
WHICH TRANSSISTOR IS USED IN THIS PROJECT.................CAN YOU PLEASE TELL ME TRANSSISTOR NAME
1:13 of the video.
very nice project man.....
i only have a doubt ....., in the end do i have to power the arduino with usb simultaneously with 12v led light power?
I mean to say ... can the arduino runs with the 12v power from L.E.D without connecting it with the laptop or computer
Yes 👍🏼
good
Can't believe it this guy is totally Americana and he says "Lead" instead of L.E.D.
Can we do it same with using 8051 ??
Awesome project, I will be attempting this for my engineering last year project (year 12), however I’m not sure about all the components you use (? Could you please list them in the description or just answer to my comment.
Thank you very much! New sub here
The materials and the links are in our other video czcams.com/video/NZuYO5WWsFk/video.html🤟🏼
Nice project, can you please send me the link of all materials you need to do that project.Thank you.
Hi the materials and links are on this video that we answer some questions czcams.com/video/NZuYO5WWsFk/video.html 🤟🏼
How do yo give the power to the arduino
You can find the answer to all your questions on our newest video 😉
Nice work
Can we use a tip32c transistor instead of a tip41c?
Or an IRFZ44N mosfet?
Hi! Did it work with tip32c?
@@andreiionescu5543 I haven't tried it yet
I have one question. For this project you can onlY use ARDUINO UNO R3 or you can use any other arduino, for example ARDUINO GEEKCREIT.
you can use any arduino only that changes the connections in the code with the terminal you are going to use 🤙🏼
What's the reasoning behind transistors? The Arduino sends out the RBG values. Are they being used for protection from the 12v supply?
yeah
because the RGB analog strips can draw up to 1 or 2 amps which the Arduino board cant handle. use transistors,MOSFETs or uln 2003A ic witch has two Darlington pairs inside ( basically some transistors inside in an order)
Could you please specify the type of transistors u are using
Hi sure you can use any transistor that is npn and support at least 1A of current through base and emitter
How does it detect the snap to pause? I don't see anything in the code
Could you please provide a link for the led also how you managed to connect it to the plug with 4 inputs
@REHAN RULZz you can find that info on our New Video description
Hey brain smash,I have a problem.When I turn the sound sensor knob it changes colors
Hi, that problem is because the sensitivy on your sensor is too high, you will have to adjust it, Check our newest video for a How to do it, as well as a better explanation on the Project
@@brainsmash4920 thank you so much for helping me!!
hi.please send circuit diagram like
broo which transistor u r using ??
Hello, I'm trying to use this with my 12V LED strip but there is only 2 wires: Ground and +. could you explain me where should I wire it please?
You must be using simple led strip of only one colour, in this video he has used a rgb strip
But what's the use of filter signal function in the code ?
The Digital Low Pass Filter is used to eliminate all frequencies above a certain value established by us, this is done to make sure that neither the electrical frequencies from the circuit and the frequencies in the wild (also known as world) are not captured by our sensor and thus this frequencies would not create noise that can add up and make our system think that is capturing a noise when its not, you can visualize this by using your phone and trying to record audio, if you stay silent you will see that the phone captures sound this will be your noise since only want it to record your voice or sound and when you apply the filter you will have to speak louder in order for the phone to capture sound that is louder that a certain value
what should I do if I have only a single colour Led ..please show the circuit
is on our instagram @ytbrain
little question, does the pc/laptop pla the sound or does the arduino do it? Also, can you do this with more songs than one and a few buttons to choose the song?
kind regards
The sound came from the pc and the sensor detects it
thank you so much for this.
No problem ✌🏼
The Pin 11 is not detecting the signal. Can you please help me out with this.
You can contact me on my Instagram 🤟🏼
is it limited to only tip41c transistors? can i use some other transistors?
im using 12v led strip with n chanel moffets just google the tutorial
can i please get the circuit diagram?i'm need it for school project fast.
gaming panther you can find that in our Instagram @ytbrainsmash
Can u please share the led strip details as if somewhere online I can purchase from?
Parth Luwaria here is a link where you can find a similar led strip www.amazon.com.mx/Tira-5050-multicolor-rollo-5mts/dp/B071F38B4H/ref=mp_s_a_1_35?keywords=led+strip+lights&qid=1589001664&sprefix=led+stri&sr=8-35
For transistor which pic should be connected to which component ? Can u plz explain
1:13 of the video.
is it possible to use small leds instead of the strip?
Yeah but take in mind the ampers and resistance you'll need
Which transistors are they?
The TIP41C NPN Transistors
Is this RBG 5050
Trip?
can you port it to python so that it could be implemented on raspberry pi
This is a school boy question I know but how does the Uno not get fried when you plug in 12v?
The 12v are for the led strip you can check out the circuit diagram in out instagram instagram.com/p/B_9QUcqDpyb/?
Can you do this with any rgb led strips?
Yes
What does female and male to male mean is female negative?
That is referring to the cable entrence or terminal
Can you share the link for the 12V thin which can be seen at 7:07?
Even I searched for that thing ,,, finally found it, DC power jack female connector
hello. I connected everything just like you, but my blue LED light is always on and nothing wants to flash no matter how I turn the sound sensor. What can be wrong ?
If you want us to help a little bit more personalized you can reach out at instagram @ytbrainsmash
I had the same problem, did you got any updates on this problem, thanks
Did u figure out how?
I've connected everything just like in the video and it doesn't even turn on for me.
you can check our other video we review commun troubleshooting
Can I use TIP31C NPN transistors??
Yes you can use any transistor that is NPN and supports at least 1A of current through base and emitter
Can I ask you if this arduino code already in your link works or I need to rebuild it?
It works perfect 👌🏼
bro letf the f🤬🤬🤬 beat drop 🤬🤬🤬
Have you used normal RGB light strips or are these addressable?
Yes you just have to figure out the signals 👍🏼
@@brainsmash4920 ....
Adreno buno
Sound sensor
Bread board
Can you tell me the name of the sensor...ex.lm309
The material are on our latest video on the description 😉
Plzzz another vedio like to similer this one
:-OMeGA-: here is it : czcams.com/video/NZuYO5WWsFk/video.html
GEERTJE DIKKEJONKOOOO
What ampage is the power supply please ?
2 amps
@@brainsmash4920 can i give 6 amp ?? to light up 3 led strip ??
or just feed A0 audio signal
audio signal is usually in the milli-volts
@@NicolasTsagarides can be boosted like amplifier
@@anolghosh9501 If you do it programmatically then you will lose resolution. If you do it with discrete components then you can just use a ready made circuit just like the sound sensor used
@@NicolasTsagarides no not through coding ... frequency can be converted using frequency to voltage circuit.
& my bad my first comment is wrong here it is corrected just feed A0 audio signal converted voltage response.
github.com/frenchmatt/Music-LEDs
can you please give me the circuit diagrame?
Yes you can find that in our instagram instagram.com/p/B_9QUcqDpyb/?igshid=a4z41bsvgk2d
thank you sir
Your welcome 🤟🏼
what is the transistor
Hi Well, they only have to accept more than 100 mA and be NPN or if it is PNP change the configuration of the connections🤟🏼
What is the value of transister
Hi 👋🏼 sure here is a description for the transistor: 10pcs TIP41C TIP41 NPN Transistor TO-220 NEW also you can watch our new video for more questions czcams.com/video/NZuYO5WWsFk/video.html
My led strip is barely lighting, can you please help me @Brain Smash? Thnx
Check ur led strip's specified wattage and make sure ur supplying the right voltage
which transistor is that
The transistor is the TIP41C
@1大哈哈 You can use any general purpose transistor that is NPN and that it can allow a current of at least 3A just to be safe.
@Matija N Yes!, Why you ask? Because the transistor you chose allows for a high enough current so that the LED Strip can be to be turned ON, plus the voltage is only 12V, so you having a transistor that has a maximum of 115V is more than enough, to replicate this video into your own PROJECT!, or even your own PRODUCT!!, hope that helps.
@@brainsmash4920 Can I use BD139 transistors?
Yes that’s about right 👌🏼
Can i use ws2812b in this setup @Brain Smash
No, the method to control that LED Strip is different from this one, since with that one you don't have a pin for R, G and B colors
2812b is also RGB led strip
Hi! Did you manage to do the project with ws2812b?
@@andreiionescu5543 yess you can wach my channel czcams.com/users/thejerryshow
What if Im only using a one color led strip?
I will just use 1 transistor and connect it to arduino?
To your first question You have to modify the code so that the output of each color instead of each color is only the one you have🤙🏼
That’s correct 🤟🏼
Thank you!!!!
this thing reacts to noise not music ... is crap ... it just blinks ...so tiring
We are sorry that you don’t got it working properly but you should hit us up on instagram so we can help you make it work properly 🤟🏼
@@brainsmash4920 i found the solution... a BMS308 v2 -7 bands
I don’t see a link to the code you used.
Nm
The link to our GitHub is on the description of the video but here you have it 🤟🏼github.com/BrainSmash/Arduino-Acoustic-Control-for-RGB-LED-Strip
Please send schematic of this
Go and check that on out instagram 😉
Does not work just stays in red color
Can you provide more details about your assembly of the components? Or Your components?
@@brainsmash4920 thank you for your reply, same as yours but can not not figure out what is delayLEDS pin which is assigned to pin 3 where to connect it?
I have the same problem if you figured out please tell me how to fix it, thanks
Same problem
Here is the link to the answer of your questions 😉czcams.com/video/NZuYO5WWsFk/video.html
so how does one upload the code?? I'm a beginner and have tried uploading it using the arduino sketch, but I'm sure I'm messing it up somewhere :(
open the .ino file make sure the arduino is plugged into your pc and press the arrow pointing right at the top of the app
@@jaxonwatt7598 THANK YOU A MILLION! It worked! So now, my question is, does the arduino board needs its own power supply for this project? I was able to upload the code, but the second I disconnect the cable from the computer, everything shuts down even if the bread board is powered...
what is the code[name] of three transistor
Hi, those are the TIP41C NPN Trasistors
What's the Arduino code?
The link to our GitHub is on the bio of the video
is this vid sponzored by apple? xD
We wish 😅
Will you plz give me a diagram
Sure is on our Instagram 😎
If you can please help out with the code
chinmay gaur sure what problem do you have
@@brainsmash4920 so basically I'm unable to give a 12 volt power supply
@@brainsmash4920 and can you walk me through the algorithm of the code please
@@chinmay268ds Make sure that from the power supply of +12V the Positive + goes in the Collector of the Transistor and GND to the Emiter of the transistor, and with the code you will send a PWM signal from the Arduino to the Base of the Transistor to turn ON any color in the strip, if you cannot turn on any color, try to debug your strip by connecting any of the R, G or B pins to GND of your +12V Power Supply and 12V from the Led Strip to Positive on your power supply, if you do it, you should see the color that you pick from your strip ON
@@chinmay268ds The Algorithm starts by Reading the Sensor Values of your Sound Sensor, then it filter that signal using a Digital IIR Low Pass Filter to reduce unwanted noise captured by the sensor, since all we want is to capture the music frequency, then it compares the filtered signal value, to values specified by ME (you can change them if you wish), depending on the value of the filtered signal it will display a color in the RGB strip, you can change the colors by changing the numbers in the RGBColor Method, you obtain these numbers by picking the color you want from a RGB wheel (search on google and you will get one), If you have more questions feel free to ask :)
"weld them" smh
Where is the circuit diagram?
Abbas Mahmud you can find that on our instagram @ytbrainsmash
Does it have to remain attached to the computer? I'm asking because I want to build it into a guitar.
Hi you can use batteries 🔋 to disconnect the arduino from the computer
Can I use SL100 transistor instead?
just check that it accepts more than 100 mA and is NPN or if it is PNP, change the configuration of the connections 🤟🏼