Music Operated Dancing LEDs

Published  February 26, 2016   140
J Jayant
Music Operated Dancing LEDs

You must have seen the Disco Lights or DJ lights, which Turn ON and OFF according to the beats of the music. These lights glow according to the length and pitch (volume) of music beats, basically these are designed to pick the high intensity sound like Bass sound. So these lights follow the high pitch beats in music like drum beats, and Turn ON and OFF according to music pattern. However the sensitivity of the circuit can be increased to pick the low notes too.


Previously we have built Dancing LEDs, which just follow a set pattern and we can only control the speed. Now we are taking this to next level, i.e. Music Operated Dancing LEDs, in which LEDs will flash according to music, just like Disco light, as discussed above. This Musical LEDs circuit is based on transistor BC547. This circuit is very simple and easy to build, it just requires few basic components and it looks very cool.



  • Condenser Mic
  • 5- NPN Transistor BC547
  • Resistors- 10k (2), 1k (4), 1M (1)
  • Ceramic Capacitor 100nF
  • 4 – LEDs
  • 9v Battery
  • Breadboard and connecting wires


Working Explanation:

In this Simple LED Music Light Circuit, condenser mic picks up the sound signals and converts them into voltage levels. These voltage signals are further fed into R-C filter or HIGH PASS filter (R2 and C1), to eliminate the noise from the sound. Further a NPN transistor (Q1- BC547) is used to amplify the signals, from the High Pass filter. Then finally these music signals are given to the array of four transistors. Transistor in this array works as amplifier, and glows the four LEDs according to the sound pattern. This generates a very interesting sequence of dancing LEDs which follows the beats as per their intensity or pitch. We can also add more LEDs with transistor to make it cooler.


BC547 based led music light circuit diagram


We can adjust the sensitivity of MIC by changing the value of R2 and C1, by using the formula for R-C filter:

 F = 1/ (2πRC)

F is the cut off frequency, means filter only allow frequency above than F. It can be easily deduced that more the value of RC, less the cut off frequency and higher the sensitivity of MIC. And higher the sensitive of circuit means MIC can pick low volume sounds, hence LEDs can glow on low pitch music also. So by adjusting its sensitivity we can make it less sensitive to reacts only on high note beats or we can also make it more sensitive to react on every little beat in the music. Here we have set its sensitivity at moderate level.


Condenser Mic should be connected properly in the circuit, according to its polarity. To determine the polarity of MIC one should look at mic terminals, the terminal which have three soldering lines, is the negative terminal.


Transistor BC547 is a NPN transistor, which is used as a Amplifier here. NPN transistor acts as a open switch when there is no voltage applied on its Base (B) and it acts as closed switch when these is some voltage at its base. Generally 0.7 volt is enough to get it fully conducted. 

Transistor BC547


Have any question realated to this Article?

Ask Our Community Members


Submitted by sushmitha on Mon, 03/21/2016 - 14:03


what s the role of the transistor here in the circuit ? y we need it ? wat s d main role in tis circuit ?other than transistor can any other element be replaced ?

Submitted by Sara on Thu, 04/07/2016 - 17:47


In this circuit transistor acts as switch. however, I use 220ohms resistor instead of 1kohms and I added another resistor(also 220ohms) between the collector of Q1 and base of Q2, then it works.

Submitted by harsha on Fri, 04/08/2016 - 16:25


I did the same connections as above but the LEDs are glowing without music too.Can anyone help out?.
I want to know how connections are done. Especially the bases of transistor.
Please reply fast

Submitted by Ann on Thu, 05/19/2016 - 04:44


This circuit is really great and cool. I just wanna know if it is ok to use low pass filter instead of high pass filter to make the LEDs blink on and off to the bass.

No, you should only use High pass filter. Low pass filter is opposite of High pass. High pass filter allow signal above the selected cut off frequency, whereas Low pass filter allows signal below than cut off frequency.

It does not make any sense to have a HP filter  as the 'beat' is in the lower frequencies. Further a HP lowers sensitivity

Submitted by Anne on Thu, 06/23/2016 - 01:37


I was just wondering if it is ok to use other types of non-electrolytic capacitor instead of ceramic capacitor? Thank you

Submitted by gustavo on Mon, 07/18/2016 - 21:39


hi! Hey I was wondering if instead a mic I could use a jack, a mono one of course....also, if I wanna turn brighter leds ill just lower the 1k resistors, no?
Thanks, nice project btw!

Submitted by Bilal khan on Mon, 07/25/2016 - 20:22


which type of mic we can used , if we are not using condensor mic?

Submitted by Ohene on Fri, 08/12/2016 - 02:36


Please i want to know the precise values of resistor R1-R7 please

Submitted by chinchin on Thu, 09/08/2016 - 11:12


can you teach us how to make this kind of project.steps please

Submitted by shiva on Mon, 09/12/2016 - 23:35


can you tell me what's the role of BC 547 npn transistor in the circuit and how it is happing I.e, the LEDs r
glowing in presence of music
what actually happening when supply voltage is given to the circuit

Submitted by jane on Mon, 10/03/2016 - 02:05


Could you give me the spec for the mic or ideally a good place to source them

Submitted by Ebenezer on Tue, 10/18/2016 - 13:20


A great site and an interesting Q&A. I can't say more than to say thanks..
I have gotten all the questions.
I love the comprehensive explanation from the cct analysis.
Kudos to you..
I have bookmark you already

Submitted by CLaire on Fri, 10/21/2016 - 05:36


We have built the circuit but the leds are unresponsive to music - they flash if we clap our hands beside the mic but otherwise nothing. Circuit has been built using exact components described and follows exactly the same layout. Any suggestions?

Hy CLaire ,I have the same problem with my circuit .. I designed a pcb board ... and all connection are good beacause how you say if i clap my hand the microphone sensing this , and for a few part of a second , leds flash. I don't know what's the problem ... have you solved this problem ? if anyone can help me with this problem I could offer him the pcb replacement (board) .

Tank you a lot . All the best.

There are several design issues with this circuit;

1)  insufficient gain - a single transistor can not provide enough gain for the transistors that drive the LEDs

2_ the LED driving transistors are unbiased and so need at least 0.65V to turn-on

3) a HP filter makes no sense as low frequenies have more 'power' and  the beat


In your case it sounds (no pun intended) like it is "working" but you want the light extended.  A capacitor connected to Q1's Collector and Ground - say 10 uF - might help. Otherwise a 'pulse stretcher' circuit is needed.

There are several design issues with this circuit;

1)  insufficient gain - a single transistor can not provide enough gain for the transistors that drive the LEDs

2_ the LED driving transistors are unbiased and so need at least 0.65V to turn-on

3) a HP filter makes no sense as low frequenies have more 'power' and  the beat


Submitted by Siti Nadzirah on Fri, 10/21/2016 - 07:23


I want to make the circuit more simple because i want to demonstrate in front of primary school student. If I reduce the number of led its will effect the circuit or not?

Should be no problem. Leds with Resistor and Transistor are set in parallel, therefore you can add or remove as you want.
Led1 + Q2 + R4 = 1 group
Led2 + Q3 + R5 = 1 group
Led3 + Q4 + R6 = 1 group
Led4 + Q5 + R7 = 1 group

Just make sure you add or remove a complete group when adding or removing leds.

Submitted by Hadyan on Tue, 11/01/2016 - 17:25


What if there is no R1 and the capasitor connected to the ground and the mic directly connected to the battery? Is this circuit still work?

Submitted by Chandra Mouli on Wed, 11/02/2016 - 01:03


I have exactly represented the circuit like in the ckt diagram. But The LED's are always on. If i switch the polarity of the LEDS. Then they are OFF, but not recognizing the music input from the mic. (I have used a 1.3M ohm resistor instead of 1M and 104nF capacitor). This shouldn't alter the circuit by a lot should it?

Submitted by Malik sufyan on Tue, 11/22/2016 - 20:44


I did the same as above ......but led's blink when we touch wires ...but not blink with music.... what i do can any one help me ???

Submitted by casper on Wed, 12/07/2016 - 04:02


i want to know what the kind of mic is used
I want, I work for this circuit simulation program orcad do not know What kind of MIC is used

Submitted by Ayden on Tue, 12/20/2016 - 01:08


Ive got all the LEDs hooked up right and everything else i think is correct yet the mic wont cause the leds to do anything but if i remove the transistor from ground all the LEDs light up bright

Submitted by felawe on Sun, 01/01/2017 - 18:55


LED turns on even no music was played. Tried lowering the 1M ohm resistor value but the same happens. Even tried to remove it completely and it still doesn't work. Can anyone kindly explain whats happening to me please. Thank you.

Put the circuit exactly as shown in the circuit diagram, it will work for sure. Further try replacing the Mic and other components, may be some faulty component is there.

Submitted by Gaz on Mon, 01/09/2017 - 18:00


Awesome stuff, put together as directed and works awesome... well done... I am thinking on an improvement and adding four seperate transistors on different frequency levels to run four different colours (perhaps for an rgb light strip with required extra circuitry)

Submitted by johnjem on Thu, 02/09/2017 - 02:47


im trying to hit 740Hz or F4# . will set up be able to work this?

Submitted by G.Gunderson on Mon, 02/13/2017 - 20:09


I understand the amount of ohms needed for the resistors but I'm seeing a lot of variation in the ppm values and percents and all that jazz. Do these values need to be the same for all the resistors, or how do I know what ones to buy when building this circuit?

Value of resistor should be the same, however value of R2 decides the sensitivity of the circuit, more the value of R2 means more the sensitivity to react on low sounds.

Submitted by Ronnie on Fri, 03/03/2017 - 01:38


I did as you instructed but when you connect to battery for it just light without music sound
What can I do please

This circuit is working above certain frequency but what to do if I want to set upper frequency too simultaneously in same circuit? Please reply fast...