Music reactive LED | Sound sensor - Arduino Connections & Coding

preview_player
Показать описание
Hi guys, in this tutorial we will learn how to connect, code & use a sound sensor with the help of Arduino board !
With it, you'll also learn how to make music reactive LED lights (I call them dancing lights :P )

00:00 - Output Preview

01:10 -  Requirements
1. Arduino
2. Breadboard
3. Jumpers/cables
4. LED
5. Sound sensor (3 pin OR 4 pin, any of them could do, CONNECTIONS REMAIN THE SAME)

01:58 - Connections of Sound sensor

02:50 - Arduino Code for sound sensor

03:23 - Adjusting sensitivity of Sound sensor

04:16 - Testing

 Note :-
You must have observed that, while testing, the red led on sensor was glowing. Well, ideally the sensor led & externally connected led should glow together i.e they must be in sync !
But if that doesn't happen, adjust the potentiometer in such away that external connected LED responses perfectly to music just as I did & just don't care about sensor light. :D

Code link-

Like my page on Facebook :-

Link to buy parts (only India) -

For more interesting mechanical news, engines & robotics stuff, visit my blog - MechStuff ! ;)

THANKS FOR WATCHING !
Рекомендации по теме
Комментарии
Автор

I used a transistor in my setup to control a strip LEDs with a 12 volt power supply. The setup is very similar to yours, just with the transistor in place of the led. Works great. Mines setup using an attiny85, but the same process still applies.

bugiroff
Автор

You can use the a0 analog pin to get actual voltage amounts for brightness etc. The d0 pin is just going to give you a high or low.

DaleDix
Автор

Add a resistor between led and arduino if you want to protect your arduino....

RonaldoHoxha
Автор

Good day Sir 👋

How to setup code for my 4pin led rgb module in which the led fast changing colors blinks in line with the speed of music beat or noise and automatically turn to super slow changing color mode when there is no music or noise detected on the surroundings?

michaeldeloso
Автор

Nice vedio
Bro
please can you tell me that
if you give command from this sound detector chip to aurdino is that work will happen
like turn off light
turn on light
paasing 0 & 1
on specific words which we decide

anuragdubey
Автор

I have 3 pin sounds sensor vcc gnd and out and I want to connect blue color led strip to this project rather than led so please tell me the connection and what to change in code. I am your old subscriber

itsstrendy
Автор

How would I modify this to trigger a 12v solenoid instead of a LED and could I replace the electret microphone for a jack input ?

jamesarrowsmith
Автор

Pls show for 2812B strip ;( I want to do but cannot find code or video and my sound sensor is red one (mini) it has analog oo ground and 5v (4 volts)

Plqnes
Автор

can you explain how you make with a 12LED STRiP please?

lou
Автор

does anyone know how I can add more LEDS?

Donkey_
Автор

How would you make the signal show up on Arduino's serial monitor?

JamisenMa
Автор

can you make a video of this but with 3 leds please

dannismith
Автор

Hey there is error in the
What should I do...?

kunalgawde
Автор

Can you please explain the connection in arduino nano ?

jjcolonyrohiniii
Автор

hey i got a question.. my LED light won't turn on and off with the sound sensor..

woahwhodis
Автор

Is there a way to keep the LED on when it hears a sound, and then have it turn off when it hears another?

tamazg
Автор

Hey, great video! If I wanted to use this with a 5m LED strip, should I connect everything through a breadboard with a 50V power supply?

rehakproduction
Автор

Code didn't work for me. expected primary-expression before '<' token

Zach
Автор

Code just had light turn on. No reaction to sound at all.

Mr___f
Автор

i tried putting the code in but it just says


exit status 1
a function-definition is not allowed here before '{' token


what to do?

yashasv.doodles