Тёмный

Arduino Music Visualizer Tutorial 

Just Call Me Koko
Подписаться 27 тыс.
Просмотров 57 тыс.
50% 1

In this video, I will be showing you how to setup a music visualizer using an Arduino, a Sparkfun Spectrum Shield, and Individually Addressable LEDs.
If you want to buy the music visualizer I designed instead of build your own, visit the following Tindie link.
www.tindie.com/products/justc...
------- Support -------
Patreon: / justcallmekoko
twitch: / willstunforfood
Instagram: @just.call.me.koko
Twitter: @jcmkyoutube
Code - github.com/justcallmekoko/Ard...
Arduino UNO - www.amazon.com/RoboGets-Compa...
LED Strip - www.amazon.com/gp/product/B01...
Sparkfun Spectrum Shield - www.amazon.com/gp/product/B00...
discount code: coronavirus
I have seen many videos on RU-vid of people showing off their arduino music visualizers, but no one seems to want to tell you exactly how to do it. This video will show you how to make the visualizer from scratch.
The sparkfun spectrum shield is the key to this project. It allows you to take an audio input, split it into seven bands, and analyze each band separately.
The strip of individually addressable LEDs allow you to control each LED separately from one another rather than being limited to controlling all at the same time.
The pattern I have chosen for the visual effects is a rainbow wave which expands out from the center.

Развлечения

Опубликовано:

 

22 июл 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 132   
@LILSvedishDwarff
@LILSvedishDwarff 5 лет назад
Hey just found your channel, thanks for supplying the source code. The visualizer is very impressive and I like your humor. Keep up the good content. Subbed
@zackarystephens3406
@zackarystephens3406 6 лет назад
Thanks for another one. I enjoy the humor you mix into the education
@juleswinnfield1437
@juleswinnfield1437 5 лет назад
You're fucking hilarious and horribly underrated. Subbed within the first couple seconds of watching your channel, rare that happens these days - keep up the good content :)
@nazsumadi3055
@nazsumadi3055 3 года назад
This worked a treat!! Thankyou for sharing this 🔥🔥
@JustCallMeKoko
@JustCallMeKoko 3 года назад
Glad you got it working!
@115184792
@115184792 4 года назад
Hey dude, just forked your Visualiser code to add a few little features. Really appreciated the effort, video and upload.
@JustCallMeKoko
@JustCallMeKoko 4 года назад
Glad you enjoyed the project and the video. Can't wait to see what new features you add
@brianpwnsjustin
@brianpwnsjustin 5 лет назад
Because you actually show how to make it.. (looking at you Devon !) You earn a subscriber in me!
@spacehuhn
@spacehuhn 6 лет назад
Alright another thing on the todo list it is
@JeremyCook
@JeremyCook 4 года назад
Hello Mr. Chicken.
@DarkbaseTTV
@DarkbaseTTV 5 лет назад
Any chance that you can do a more detailed video on how to actually put the whole thing together? I tried to conclude from your github aswell as your video, but before I purchase parts I want to make sure I know what I'm getting myself into Edit: Especially how to connect the audio board to the arduino
@fabianbirkert5506
@fabianbirkert5506 5 лет назад
Yea, please!
@officialsouls3957
@officialsouls3957 6 лет назад
Keep up the good work
@zombie343
@zombie343 Год назад
This is so dope 💯
@piegoesboom
@piegoesboom 5 лет назад
funny af and learned stuff.. thx
@EnderGeneral149
@EnderGeneral149 3 года назад
I just bought a spectrum shield for something else but decided to try this out for my room at night. I tried coding it myself but idk shit about how any of this works, so uh yeah thanks for that code, buddy xd. Now I just gotta find a way to stick this on my wall with the arduino out if sight.
@JustCallMeKoko
@JustCallMeKoko 3 года назад
I would definitely like to see a picture/video of the finished product
@EnderGeneral149
@EnderGeneral149 3 года назад
@@JustCallMeKoko Funny story, I had just put it up when I noticed an issue and I was hoping you could offer some insight or advice on how I could fix it in an efficient manner. I noticed that when using an even number of LEDs, the first LED doesn't get lit in the double rainbow mode. My setup was using 92 LEDs, so the midway value would evaluate to be 46 and if the lighting is always symmetrical then of course that would mean the rightmost LED would never light. I tried to find a solution myself that without just cutting off an LED, but I would be stuck here for who knows how long, so do you think some insight could be given? I am sure you are busy, so sorry ahead of time if this is a silly request (or if it turns out being a stupid easy solution)
@JustCallMeKoko
@JustCallMeKoko 3 года назад
@@EnderGeneral149 I actually cannot think of anything right off the top of my head. I will have to replicate the issue to see if I can find a solution. I would like to see a picture or video of the issue if possible
@Titanmenn1974
@Titanmenn1974 4 года назад
Endlich nach Langen Suchen mal genau das richtige gefunden
@JustCallMeKoko
@JustCallMeKoko 4 года назад
Ich helfe gern
@starmediaART
@starmediaART 3 года назад
@@JustCallMeKoko hope you were able to give the money back which you have borrowed before from the poor homeless guy. Danke für das gute Video und für Deinen Humor.
@ansarazhar76
@ansarazhar76 5 лет назад
can i atleast see the picture of your full setup
@7R0J4N.
@7R0J4N. 5 лет назад
Hoow do i get the visual effect shown in the video, if im using the first method? (3.5mm jack)
@exentialsir805
@exentialsir805 6 лет назад
Dang another good vid but unfortunately i dont got the money to make it, one day
@DJDevon3
@DJDevon3 5 лет назад
I made a script based on yours that does 2 light strips independently, credited you in the script. Thank you for your GitHub code it's been very helpful, you can find mine on GitHub too. Really enjoyed your sarcastic humor. :P Apparently we all got them rainbow aids.
@fabianbirkert5506
@fabianbirkert5506 5 лет назад
Can you share it and do a tutorial on it?
@DJDevon3
@DJDevon3 4 года назад
@@fabianbirkert5506 github.com/DJDevon3/Arduino It requires the SparkFun Spectrum Shield. I don't have a tutorial on it nor do I want to create one. Just Call Me KoKo did an excellent job in his video tutorial. It's honestly one of the best videos on the topic of a low cost customizable audio reactive LED strip project.
@markusw.712
@markusw.712 2 года назад
I tried the Standalone Version by using a Nano, from what I understand the Uno and Nano should be identic - but I cant get the LEDs to work correctly... they just blink random, even when there is no source connected. Any suggestions what I could have done wrong?
@dmsimonson64
@dmsimonson64 4 года назад
You mention customizing the shit out of your shield. I can tell from the video where you attached the ground and data lines but where are you pulling power from?
@dmitriyzubkov5932
@dmitriyzubkov5932 3 года назад
What are the audio1 and audio 2 for? I don't know where to plug in pin 6 from the spectrum shield.
@mlodawy
@mlodawy 4 года назад
Can`t believe those connections are so simple and still mine doesn`t work. My whole LED strip is working but it doesn`t react to music. :(
@RITWIKKULKARNIBME
@RITWIKKULKARNIBME 5 лет назад
Good work buddy ! I had some issues regarding making taking the audio input from my laptop or phone to the breadboard. I mean, can this be done without using the spectrum board ? Also how do you connect the 3.5 mm headphone jack to the breadboard (silly question, I know !) ?
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
If you are actually using a spectrum board, then yes the audio would plug directly into it. If you are just using an arduino with no spectrum board, you would need to find a way to connect the 3.5mm jack to the analog input on the arduino. In that case, I would use a 3.5mm audio breakout board.
@RITWIKKULKARNIBME
@RITWIKKULKARNIBME 5 лет назад
@@JustCallMeKoko Thanks for the tip. I have a breakout board which contains sleeve, ring 2, ring 1 and tip. However, I need your help as in how to connect it to the Arduino ? How to make the connections ?
@AlternativeOutcast
@AlternativeOutcast 5 лет назад
If I had a longer led strip would the visuals extend further? Also great vid, loved it.
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
Yes but you would need to reflect that number of LEDs in the code and at a certain point, you would need to start using an external power supply.
@AlternativeOutcast
@AlternativeOutcast 5 лет назад
@@JustCallMeKoko Got it, thank you.
@richardseecharran7208
@richardseecharran7208 5 лет назад
I bought the Sparkfun Spectrum Shield, LED strip, Arduino Uno and a DC 5V 20A power adapter (as suggested). I connected everything, but how do you connect power to both the Arduino and LED strip? Do I just plug in the DC barrel jack from the power adapter to the Arduino?
@maliktaylor8986
@maliktaylor8986 4 года назад
Did you ever find this problem out? Also which power adapter did you use?
@Sam-ff8nv
@Sam-ff8nv 5 лет назад
Do u need a breadboard to do this? It’s not listed in the materials but there is a picture on the website
@user-lf3bt1rx7m
@user-lf3bt1rx7m 5 лет назад
Hello,what the blue block's name connect with the arduino board?
@shubhojitbose3112
@shubhojitbose3112 3 года назад
is there way for me to not use the 3.5mm jack . instead a sound sensor?
@SmOkeJ3usTer4000
@SmOkeJ3usTer4000 5 лет назад
How i can change the Color? so that it is only in blue
@--Lui
@--Lui 5 лет назад
This can make with leds smd5050?
@NoahMVM
@NoahMVM 5 лет назад
Niceeee thanks , but help me with something i have to put like 60+ volume of my sound to see the light waves :( how to set it to 30+?
@DJDevon3
@DJDevon3 5 лет назад
You increase sensitivity by multiplying the input or output. You could do it when the audio value is ready for output. Something like audio1 = audio1 *2; directly before the analogRead(audio1) line. Keep in mind if you have a weak audio signal there's likely going to be a lot of noise in the signal which will get multiplied as well. Getting rid of static and hum prior to the signal hitting the spectrum shield would be something to look into cleaning up. You can find line conditioners for it.
@lasbikeride7171
@lasbikeride7171 5 лет назад
Can u create just like that without shield?
@dmsimonson64
@dmsimonson64 4 года назад
This is awesome! How would the code change if I wanted to use an 8x8 Neopixel matrix instead of a strip?
@JustCallMeKoko
@JustCallMeKoko 4 года назад
I have code in the same github repo linked in the description. It is written for an 8x32 matrix. If you change the dimensions of the matrix in the code to fit your 8x8 matrix, it should work.
@dmsimonson64
@dmsimonson64 4 года назад
Whoopsie, I didn't even think to check! Thank you!!!
@robertsyrnicki5638
@robertsyrnicki5638 4 года назад
Cool video. Does anybody know how to connect an Arduino instead of a speaker driver, so it is possible to read the frequency without outputting any sound?
@tattoomafew2316
@tattoomafew2316 2 года назад
He is using an Arduino. If you don't want to use the SparkFun Spectrum Shield, you'll need a sound sensor module. You just connect that to A-0 instead of the Spectrum Shield. Any noise the microphone picks up on the sound sensor will return a value to the "audio_input" variable like the Spectrum Shield would, but you might get interference with background noise depending how sensitive the sound sensor module is set.
@ruikka9748
@ruikka9748 5 лет назад
Yo I followed your tutorial with the spectrum shield, I get the audio through it but the leds are not lighting up at all, any tips?
@upsidedown5564
@upsidedown5564 5 лет назад
You need enough power to light them up about 60ma per led
@schubertseven
@schubertseven 4 года назад
Hello and thanks - really a great project! I've added "audio1 = audio1 * 2" (where you said to) to increase the reaction to sound (using my phone's output on highest volume, only half of the LEDs are lighting) and this had no effect. "* 4" and "*6" also had no effect. Any ideas? Would really appreciate the help. Cheers! Anton
@zetathix
@zetathix 4 года назад
Have you set number at #define NUM_LEDS to be the number of your using led?
@schubertseven
@schubertseven 4 года назад
@@zetathix Yes. I did. It takes a lot to get it to fill, but it does. Just not often enough.
@thomasgrantham7499
@thomasgrantham7499 4 года назад
Hey Anton, I'm having the same issue as you. Any chance you figured out a way to get all the LEDs to light up? I've changed some of the variables in the code as well and I'm able to light up about 100 LEDs of my 300 LED strip.
@schubertseven
@schubertseven 4 года назад
@@thomasgrantham7499 No. I have not. Tried everything I could think of.
@gojunior12
@gojunior12 3 года назад
@@schubertseven I put the double of the leds that i'm using, ex: if my strip is 60leds, i define 120leds or more, and it worked
@HanzoROXems
@HanzoROXems 5 лет назад
Just got Aids by watching this 🤣 So what power adapter do you need for the arduino?
@MrheroGaming-mi3nt
@MrheroGaming-mi3nt 5 лет назад
just made this and gave you a sub, but i cant figure out why the lights light up from left to right instead from middle out p.s. im not using spectrum board
@edwardproduction4184
@edwardproduction4184 5 лет назад
what you use mate ?
@dbdteam8050
@dbdteam8050 4 года назад
Can you please make a tutorial on the first method cuz I tried it but only the first 2-3 LEDs light up and it’s not clear how to connect the jack to the arduino. And in the video yours lights up from the middle but in the code it lights up from the right.
@JustCallMeKoko
@JustCallMeKoko 4 года назад
Yea I think I am going to remake this video to show how to get it to work and also show it working with the 8x32 LED matrix
@DJLuckstep
@DJLuckstep 4 года назад
@@JustCallMeKoko pleasee
@niftything9430
@niftything9430 5 лет назад
You need more people
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
Yes you are right. My people supplies are running low.
@niftything9430
@niftything9430 5 лет назад
You need more subscribers to
@niftything9430
@niftything9430 5 лет назад
Also where do you get the supplies
@betsyavila3116
@betsyavila3116 4 года назад
I have my LEDs reacting but also have noise from the signals...
@zackjones4719
@zackjones4719 4 года назад
Same, if the lights are on then there will be a noise coming from the LEDS
@gillohner8179
@gillohner8179 4 года назад
I don't know why but I recognize your intro song. Can anybody tell me why?
@DyerAutoMotive
@DyerAutoMotive 5 лет назад
How does the arduino connect to the spectrum shield?
@DyerAutoMotive
@DyerAutoMotive 5 лет назад
Also while very funny, maybe try to focus on the actual information you’re trying to convey...
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
@@DyerAutoMotive I like to leave out just enough information to force people to talk to me in the comments. Yes I am very lonely. To answer your question, the arduino connects to the spectrum shield through a series of stacking female to male headers that solder directly to the spectrum shield. cpc.farnell.com/productimages/standard/en_GB/CN18765-40.jpg
@SpliffMeister3000
@SpliffMeister3000 3 года назад
very helpful thx. going to use this on a project im doing for www.soflostudio.com lighting set
@Lewisplayz-mo5gx
@Lewisplayz-mo5gx 5 лет назад
@Just Call Me Koko I am connecting every thing correct but only 1-5 led light up :( help me plz
@ekremruzgar9521
@ekremruzgar9521 5 лет назад
Because you give so low ampere to ws2812b (Arduino's 5V output give 40 mA). You should use a 5V DC power supply. And you must multiply your leds quantity with 60 mA (Because every led needs to 60 mA). For example I have 120 led. This meaning I need to 7.2 Ampere (120 x 60 = 7200 mA = 7.2 A) So I can buy a 10 A power supply. Your power supply's ampere value can be more than the ampere you need. Then you should make a circuit like this ↓↓ cdn-learn.adafruit.com/assets/assets/000/030/892/original/leds_Wiring-Diagram.png
@brianpwnsjustin
@brianpwnsjustin 5 лет назад
Will I need to solder the wires to the spectrum shield? Can you provide a picture of how the wires go into the shield?
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
Yes you will
@brianpwnsjustin
@brianpwnsjustin 5 лет назад
@@JustCallMeKoko Does this need like an extra power supply?
@thestackermarkus8469
@thestackermarkus8469 5 лет назад
@@JustCallMeKoko i Have a problem. #pragma message: FastLED version 3.002.000 idk what it means ... pls Help thx
@RowanVastia
@RowanVastia 3 года назад
@@JustCallMeKoko where does the data wire plug into the ardino broad
@thelaziestdev3415
@thelaziestdev3415 5 лет назад
Can you change the sensitivity? say I have a longer led strip and I want it to be completely covered.
@clw590
@clw590 5 лет назад
in the code on his github you can modify the number of led's that you want the code to cover~
@thelaziestdev3415
@thelaziestdev3415 5 лет назад
@@clw590 ok thx can you specify which line
@tylerdavidson3446
@tylerdavidson3446 5 лет назад
Hello Mr. Crims. Our group is trying to copy your Arduino Music Visualizer tutorial, and we are having some issues with inputting the sound from the audio input to the actual LED's. Is there a way we can email you and send you some pictures and possibly help us out? This is for a college class project. Thanks in advance!
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
Yes I would be happy to help you troubleshoot your issues. you may direct message me at my instagram @theredteamreturns and we can exchange emails there or photos
@edmir96
@edmir96 5 лет назад
Hey man, I'm also having some issues and was hoping to send you a DM but I can't find your IG with that username.@@JustCallMeKoko
@fabianbirkert5506
@fabianbirkert5506 4 года назад
@@edmir96 me too
@vitocraftlp
@vitocraftlp 5 лет назад
How can i make it mirrored and centered in my led stip?
@vitocraftlp
@vitocraftlp 5 лет назад
nvm did it myself xD
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
@@vitocraftlp Is it not already mirrored in the video?
@vitocraftlp
@vitocraftlp 5 лет назад
@@JustCallMeKoko nope, the 3.5mm to a0 is not mirrored, it start's from the first led on the strip. I improvised and took the mirror code from the sparkfun code part if that makes sense.
@stealthninja1o112
@stealthninja1o112 5 лет назад
What do you need if you don't want to use the spectrum shield? And will it work the same way?
@dawsonwood7870
@dawsonwood7870 5 лет назад
Late ik... But how do you suppose to have a music visualizer... Without anything to interpret the music... You'll have an LED light.. lol
@danishah7883
@danishah7883 5 лет назад
This shits funny asf istg HAHAHA🤣
@andrewdannolfo5157
@andrewdannolfo5157 5 лет назад
So mine lights up but doesn't react to music.
@schubertseven
@schubertseven 4 года назад
Mine is the same.
@mlodawy
@mlodawy 4 года назад
@@schubertseven Check out comms under his second video. I placed there some codes that should help you. May not work but worth trying.( Worked for me)
@user-mb3mr6gz1m
@user-mb3mr6gz1m 5 лет назад
Is there a maximum amount of LED´s that you can use? I have 300 planned
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
As long as you have a good power supply, there is no limit other than array size. The arduino UNO does not have a massive amount of memory, but 300 should be fine
@DJDevon3
@DJDevon3 5 лет назад
@@JustCallMeKoko Yup with an external power supply and an Uno you could realistically do close to 600-1000 depending on your code before you hit the Arduino's memory limit. That's just a guess. At that point you would be ripping out every byte you could and trying to make smaller and faster code to save space for faster cycles. Otherwise the animations would slow down so much it wouldn't be much of an animation at all. At the upper limit you'll likely notice the animations going slower and slower the more LED's you add to the array. I'm sure someone out there has figured it out for the Uno. I tried looking it up and couldn't find a specific clear answer. I am controlling 300 WS2812B LED's from an Uno and Nano. 600 total on 2 devices. I haven't tried more than 300 on one so that's all I can confirm. I'd like to know. Your spectrum sketch is awesome on 300 LED's. :) I think the people doing bigger displays are doing matrix's. A 17X17 matrix is almost 300 LED's. So look for arduino projects that have bigger matrix's than that.
@ImDamian09
@ImDamian09 4 года назад
is it possible to change it back to 1 color mode without it reacting to music?
@JustCallMeKoko
@JustCallMeKoko 4 года назад
Yea keeping it one color would be very easy. I am not sure what you mean "without it reacting to music"
@ImDamian09
@ImDamian09 4 года назад
@@JustCallMeKoko well lets say im listening to music but i dont wan the lights to visualize it i want to have it stay constant red or a fading pattern but i wan to be able to switch it to music visualize mode and no music mode if that explains it better
@noahsandler1903
@noahsandler1903 3 года назад
It's really unfortunate the code works entirely differently and you don't discuss it at all. You say in a comment in the code that I'm supposed to 'touch jumper wire from A0 to tip of 3.5mm headphone jack" but how does that work if the audio is plugged into the audio in jack?
@JustCallMeKoko
@JustCallMeKoko 3 года назад
The comment in the code was a product of the code being copied from my previous code that did not use the spectrum analyzer. I just never took the comment out. Aside from that, the code should function as shown in the video
@Cr381v3
@Cr381v3 5 лет назад
what about power? how did you power the lights? from what i've read they require 18w/m. Like 5V 4A? Did you just connect it to the Arduino through the built in power connection or did you "hack it" :) www.amazon.com/5V-4A-Power-Supply-US/dp/B0749668H2/ref=sr_1_3?s=electronics&ie=UTF8&qid=1547035971&sr=1-3&keywords=5v+4a
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
Just went straight with arduino power
@redghost6298
@redghost6298 6 лет назад
Make more videos
@alifaris1424
@alifaris1424 5 лет назад
Can I use esp8266
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
The fast led library does not work on the esp8266. you would have to use the adafruit neopixel library which means you cannot use my code
@cine-lights
@cine-lights 5 лет назад
seems alot of money spent for one pattern, I would think about adding more patterns. jump over to my channel and grab some of my versions and try them out.
@JustCallMeKoko
@JustCallMeKoko 5 лет назад
That's what is so great about code...it's free
@cine-lights
@cine-lights 5 лет назад
@@JustCallMeKoko I agree with you in some part. But certain people abuse that privilege. Mine will remain free but not in an editable form. I'm not in it to make money, so do not see why someone else should from our hardwork.
@casualnino
@casualnino 4 года назад
The coronavirus code it’s not working
@TuanLe-dm3fi
@TuanLe-dm3fi 5 лет назад
hahaha you've got a pornhub music. I'm dead.
@ACTlVISION
@ACTlVISION 6 лет назад
Nice, just the spectrum board being $30 kinda sucks
@JustCallMeKoko
@JustCallMeKoko 6 лет назад
Yea it is unfortunate. I had to borrow the money from a homeless man just so I could buy one for this video.
@PatchworxStudios
@PatchworxStudios Год назад
Plug this into that upload stuff and shit is going to happen.... is it magic or wast of time you decide... not.
@p0xygen
@p0xygen 5 лет назад
Pornhub jingle?
@lasbikeride7171
@lasbikeride7171 5 лет назад
Can u create just like that without shield?
Далее
DIY LED Music Visualizer (Arduino and Python)
8:12
Просмотров 23 тыс.
Beginner's Guide to Using LED Strips with Arduino
8:59
Easy Audio Visualizer Using Arduino FFT
11:17
Просмотров 23 тыс.
DIY Audio Sensitve RGB Lights [ESP8266]
5:04
Просмотров 51 тыс.
How to make Music Reactive RGB LEDs with Arduino
9:13
Просмотров 177 тыс.
Control Arduino with  Python using Firmata / PyFirmata
35:23
Arduino / ESP32 32 Band Audio Spectrum Analyser
11:26
Making Wireless MUSIC VISUALIZING Floor Lamps
18:45
Просмотров 3,4 млн
тгк: Логово FRIENDS
0:23
Просмотров 6 млн