How to Make Music Reactive LED with BC547 Transistor

There is something oddly hypnotic about a light that dances to music. Clubs spend thousands on it. You can do a surprisingly convincing version of it on a breadboard, in about ten minutes, with a single transistor, one LED, a resistor or two, and a 9V battery.

The star of the show is the BC547 — a tiny black three-legged NPN transistor that costs about the price of a stick of chewing gum. It has been the default “general purpose transistor” in hobby electronics for decades, and it is perfect here: it is cheap, forgiving, and has enough current gain to turn a whisper of an audio signal into a visible flicker.

This guide goes deeper than a typical five-minute video. You will get:

  • A plain-English explanation of why the circuit works (not just “connect this to that”)
  • Three versions of the circuit — the ultra-simple microphone build, an audio-jack build, and a properly biased build that reacts to quiet passages instead of only bass drops
  • Exact resistor values with the math behind them, so you can adapt to 5V, 9V, or 12V
  • A full troubleshooting table for when the LED sits there stubbornly doing nothing
  • Upgrade paths: multiple LEDs, a Darlington pair for extra sensitivity, driving a full 12V LED strip, and a three-channel bass/mid/treble version

No microcontroller. No code. No soldering required for the first build.

What You Are Actually Building (and Honest Expectations)

Let us set expectations before you buy parts, because a lot of DIY videos oversell this.

What this circuit does: the LED’s brightness follows the loudness of the music. Loud moments = bright. Quiet moments = dim or off. Because most music has a strong percussive beat, the result looks like the LED is dancing to the rhythm.

What this circuit does not do: it does not analyse frequency, it does not know what a beat is, and it does not do a fancy spectrum-analyser bar graph. It is an envelope follower in the crudest possible sense — a volume-controlled lamp.

That is not a criticism. It is genuinely one of the best first analog electronics projects there is, precisely because the whole thing is understandable end to end. And with the improvements in Circuit 3 below, it looks far better than the usual “LED flashes on the kick drum only” result.


How It Works: The Theory

Music is just a wiggling voltage

Whatever your source — a phone headphone jack, a laptop, a microphone — audio is an alternating voltage that swings above and below zero. Loud music means big swings. Quiet music means small swings. A headphone output typically produces somewhere between 0.1V and 1V peak, depending on volume and the device.

A transistor is a valve

The BC547 is an NPN bipolar junction transistor (BJT). It has three legs:

  • Base (B) — the control leg
  • Collector (C) — where current comes in
  • Emitter (E) — where current goes out

Think of it as a water valve. A tiny amount of water through the base pipe lets a large amount of water flow from collector to emitter. The ratio between them is called hFE (current gain). For a BC547 it is typically 110 to 800, with most real-world parts landing around 200–400.

So if you push 50 microamps into the base, roughly 10–20 milliamps flows through the collector. That is exactly the current an LED wants.

The critical detail: the 0.7V threshold

This is the single most important thing to understand, and it is where most beginner builds go wrong.

A silicon transistor’s base-emitter junction is a diode. It does nothing at all until the base is roughly 0.6–0.7V above the emitter. Below that, the transistor is off. Above it, current flows and rises steeply.

Now look back at your audio signal: peaks of maybe 0.3–1V. See the problem? If you just wire the audio straight to the base with the emitter grounded, only the loudest peaks in the music ever cross 0.7V. Everything else is invisible. That is why the classic beginner circuit only blinks on kick drums and sounds “unresponsive.”

The fix is called biasing. You use a resistor to pre-load the base so it sits just barely at the edge of conduction — the LED glowing so faintly you can hardly see it. Now the music’s tiny wiggles ride on top of that and swing the LED brightly up and down. This is the difference between a circuit that twitches and a circuit that dances, and it is what Circuit 3 does.

Why the microphone version works without obvious biasing

Interesting quirk: in the microphone version (Circuit 1), you connect the electret microphone’s output pin directly to the transistor base with no capacitor. That connection forcibly holds the microphone’s output node at about 0.65V — which is exactly the threshold. The circuit accidentally biases itself perfectly. Sound then modulates the current at that node, which modulates base current, which modulates the LED.

It is a happy accident of physics, and it is why that crude circuit works better than it has any right to.


Know Your BC547

Pinout — get this right or nothing works

Hold the transistor with the flat face toward you and the legs pointing down. Reading left to right:

        ___
       /   \
      |     |     Flat face toward you, legs down
      |_____|
       | | |
       | | |
       C B E
       ^ ^ ^
       | | +--- Emitter  (pin 3, right)
       | +----- Base     (pin 2, middle)
       +------- Collector(pin 1, left)

Collector – Base – Emitter. Memorise it as “CBE.”

⚠️ Warning: this is not universal. The very common American equivalent 2N3904 is EBC — the mirror image. If you swap a 2N3904 into a BC547 socket without rotating it, the circuit will not work. Always check the datasheet for the exact part you have.

Key specifications

ParameterValueWhat it means for you
TypeNPN, silicon, epitaxialBase current turns it on
VCEO (max collector-emitter)45VFine on 5V, 9V, or 12V
IC (max collector current)100 mAHard limit — one or two LEDs only, no strips
Ptot (max power)~500 mWDo not run it hot
hFE (current gain)110–800Suffix B is typically 200–450
VBE(on)~0.7VThe threshold discussed above
PackageTO-92The little black half-cylinder

That 100 mA limit is the one to respect. A single 5mm LED at 15–20 mA is comfortable. Four LEDs in parallel at 20 mA each (80 mA) is pushing it. An LED strip is completely out of the question — see the upgrade section for how to do that properly.

Substitutes

If you cannot find a BC547, these are drop-in or near-drop-in:

PartNotes
BC548, BC549, BC546Same family, same CBE pinout, interchangeable here
BC337Same pinout, handles 500 mA — better if you want several LEDs
2N2222 / PN2222Works, but check pinout, it varies by manufacturer
2N3904Works, but pinout is EBC — rotate it
S8050Common in cheap kits, higher current, check pinout

Parts List

Bill of materials

#ComponentValue / SpecQtyApprox. cost
1NPN transistorBC547 (or BC548)1$0.10
2LED5mm, any colour1–4$0.05 each
3Resistor470 Ω (LED limiter, for 9V)1$0.02
4Resistor56 kΩ (electret mic bias)1$0.02
5Resistor100 kΩ (base bias, Circuit 3)1$0.02
6Resistor1 kΩ (input protection)1$0.02
7Potentiometer1 MΩ (sensitivity, Circuit 3)1$0.50
8Capacitor1 µF electrolytic (audio coupling)1$0.05
9Capacitor100 nF ceramic (marked “104”)1$0.03
10Electret condenser mic2-pin, 9.7 mm1$0.30
113.5 mm audio jackPanel or breakout module1$0.50
129V battery + snap connector1$2.00
13Breadboard400-point, half size1$3.00
14Jumper wiresMale-to-male set1 set$2.00

Total: roughly $8–10, and most of that is the breadboard and battery you will reuse forever. If you already own a starter kit, you almost certainly have everything except possibly the audio jack.

Optional but useful

  • 3.5 mm audio splitter — so you can feed the circuit and still hear the music through speakers or headphones
  • Multimeter — for checking voltages when things do not work
  • Soldering iron, perfboard, enclosure — for making it permanent later
  • TIP122 or IRFZ44N + 12V supply — for the LED strip upgrade

Circuit 1: The Microphone Version (Start Here)

This is closest to the build in the reference video, and it is the most satisfying to demo because there are no wires to your phone — it just reacts to sound in the room.

Schematic

                    +9V
                     |
          +----------+----------+
          |                     |
        [56k]                 [470R]
          |                     |
          |                    _|_
          |                    \ /   LED (anode up)
          |                    -+-
          |                     |
     MIC (+) o-------+          |
          |          |          |
        ((( )))      |          |
          |          |          |
     MIC (-) o       |          |
          |          |          |
          |        [B]        [C]
          |          \   Q1    /
          |           +-BC547-+
          |               |
          |              [E]
          |               |
          +---------------+-------- GND (battery -)

Connections in plain words

  1. 9V positive → one leg of the 56 kΩ resistor.
  2. Other leg of the 56 kΩ → microphone positive terminal, and to the base of the BC547. (Both on the same node.)
  3. Microphone negative terminalground.
  4. 9V positive → one leg of the 470 Ω resistor.
  5. Other leg of the 470 Ω → LED anode (long leg).
  6. LED cathode (short leg, flat edge on the plastic rim) → collector of the BC547.
  7. Emitter of the BC547 → ground.
  8. Battery negative → the ground rail.

Identifying the electret microphone’s polarity

Electret microphones are polarised and it matters. Look at the back:

  • The terminal that has metal traces connecting it to the outer metal can is the negative terminal. That one goes to ground.
  • The isolated terminal is positive and goes to the resistor and the base.

If you get it backwards, the microphone simply will not work — it will not be damaged, so just flip it.

Why 56 kΩ?

The electret has a tiny JFET amplifier inside that needs a small bias current, typically 0.1–0.5 mA. With a 9V supply and the node sitting at about 0.65V:

I = (9V − 0.65V) ÷ 56 kΩ ≈ 149 µA

That is right in the useful range. If you are running from 5V, drop this to 10 kΩ–22 kΩ. If it is too large the mic starves and the circuit is deaf; too small and the LED sits on constantly.

Why 470 Ω?

Ohm’s law on the LED branch, assuming a red LED (forward voltage ≈ 2.0V) and a saturated transistor (V<sub>CE</sub> ≈ 0.2V):

R = (9V − 2.0V − 0.2V) ÷ 0.015A ≈ 453 Ω → use 470 Ω

That gives about 15 mA — bright, safe, and well under the BC547’s 100 mA ceiling.

Adjust for your supply and LED colour:

SupplyRed/Yellow LED (2.0V)Blue/White LED (3.2V)
5V180 Ω100 Ω
6V220 Ω180 Ω
9V470 Ω390 Ω
12V680 Ω560 Ω

What to expect

Power it up and the LED should sit at a faint glow. Clap your hands, whistle, or hold it near a speaker — it should jump. Play music at moderate volume near it and you get the effect.

If it does nothing, jump to the troubleshooting table. Nine times out of ten it is the transistor pinout or the LED polarity.


Circuit 2: The Audio Jack Version

Microphones pick up everything: your voice, the dog, road noise. Feeding the circuit directly from the audio source gives a cleaner, tighter reaction that tracks the actual music.

Schematic

                              +9V
                               |
                             [470R]
                               |
                              _|_
                              \ /  LED
                              -+-
                               |
 AUDIO      1uF               [C]
 TIP  o---||---[1k]---+--------\   Q1
          +           |         +-BC547-+
                     [B]            |
                                   [E]
 AUDIO                              |
 SLEEVE o---------------------------+------- GND (battery -)

Connections

  1. Audio jack tip (left channel) → positive side of the 1 µF electrolytic capacitor.
  2. Negative side of the capacitor → 1 kΩ resistor → base of BC547.
  3. Audio jack sleeve (ground) → circuit ground. This shared ground is mandatory.
  4. LED and 470 Ω wired to the collector exactly as in Circuit 1.
  5. Emitter → ground.

Why the capacitor?

The 1 µF coupling capacitor does two jobs:

  1. Blocks DC. Your phone’s output has a DC offset; the transistor base has 0.7V on it. Without the cap, they fight each other and one of them loses (possibly your phone’s amplifier).
  2. Passes AC. Audio wiggles straight through.

With 1 µF into roughly a few kΩ of impedance, the low-frequency roll-off is well below the audio band, so bass passes fine. A 100 nF cap would work but starts cutting bass — which, ironically, is the part you most want for a rhythm effect. Use 1 µF or larger, and observe polarity: the + leg faces the audio source.

Why the 1 kΩ resistor?

It protects both directions. It limits how much current your phone’s headphone amp has to sink into the transistor base, and it stops the base from being slammed on loud transients. It is cheap insurance for an expensive phone.

Stereo note

A 3.5 mm jack has three contacts: tip = left, ring = right, sleeve = ground. For a single LED, tie the tip to the input. If you want both channels to contribute, connect tip and ring each through their own 10 kΩ resistor to a common point, then into the coupling capacitor — a simple passive mixer.

The volume problem

Here is the honest reality of this version: you must turn the volume up high, and even then it only flashes on peaks. That is the 0.7V threshold problem in action. Which brings us to the version you actually want.


Circuit 3: The Good One — Biased with Sensitivity Control

This is the circuit worth building. The addition is small — two components — and the improvement is dramatic. Instead of an on/off flash on kick drums, you get a smooth, continuously modulating light that follows the whole track.

Schematic

              +9V
               |
        +------+------+
        |             |
      [1M pot]      [470R]
        |             |
      [100k]         _|_
        |            \ /  LED
        |            -+-
        |             |
        +-----+       |
              |       |
 AUDIO  1uF   |       |
 TIP  o--||---+--[1k]-+--> to BASE
         +    |
              |      [C]
              |       \   Q1
              +--[B]---+-BC547-+
                          |
                         [E]
 AUDIO                    |
 SLEEVE o-----------------+----- GND

(Read it as: the base node is fed by three things — the bias chain from +9V, the audio through the capacitor, and nothing else. The collector goes up through the LED and resistor to +9V. The emitter goes to ground.)

Connections

  1. Build Circuit 2 first and confirm the wiring.
  2. Add a 100 kΩ resistor in series with a 1 MΩ potentiometer, connected from +9V to the base node.
  3. That is it. The potentiometer is now your sensitivity control.

The math behind the bias values

We want base current adjustable across a range that spans “LED off” to “LED fully on.”

At full brightness we need about 15 mA of collector current. With a conservative hFE of 200:

I<sub>B</sub> = 15 mA ÷ 200 = 75 µA

Base current for a given bias resistance R:

I<sub>B</sub> = (9V − 0.7V) ÷ R = 8.3V ÷ R

Pot settingTotal RI<sub>B</sub>Approx. I<sub>C</sub> (hFE 200)Result
Fully CCW100 kΩ83 µA15 mA (capped by 470 Ω)LED fully on
Middle600 kΩ14 µA2.8 mADim glow — sweet spot
Fully CW1.1 MΩ7.5 µA1.5 mABarely lit

So the pot takes you from “always on” through the entire useful range. The sweet spot is where the LED is glowing so faintly you can only see it in a dark room. From there, every wiggle of the audio signal swings it visibly.

Tuning procedure

  1. Turn the music off.
  2. Turn the potentiometer until the LED is completely dark.
  3. Slowly turn it back the other way until the LED just barely begins to glow. Stop.
  4. Turn the music on at low volume. Nudge the pot slightly if needed.
  5. Dim the room lights. The effect is far more dramatic in low light — this is a party trick, after all.

If the LED never goes fully off at any pot setting, your transistor has unusually high gain. Increase the 100 kΩ to 220 kΩ and use a 2 MΩ pot, or add a 4.7 kΩ resistor from base to ground to bleed off leakage.


Step-by-Step Breadboard Build

Assuming Circuit 3. Allow about 20 minutes.

Step 1: Understand your breadboard

The two long rails along the edges (marked + and −) run the full length. The inner rows run in groups of five, horizontally, with a gap in the middle. Components sharing a row are connected.

Breadboard

Step 2: Set up the power rails

Do not connect the battery yet. Run a jumper so you have a clear + rail and a clear (ground) rail. Getting into this habit now will save you hours later.

Step 3: Place the transistor

Straddle the centre gap or just plant it in three adjacent rows. Note carefully which row is C, which is B, which is E. Write it down if you need to. This is the single most common failure point.

Step 4: Emitter to ground

One jumper from the emitter row to the rail. Short and simple.

Step 5: The LED branch

  • 470 Ω resistor from the + rail to an empty row.
  • LED anode (long leg) into that same row.
  • LED cathode (short leg / flat side) into the collector row.

Double-check the LED direction now. A backwards LED is silent and gives no clue that anything is wrong.

Step 6: The bias chain

  • 100 kΩ from the + rail to an empty row.
  • Potentiometer outer pin into that row; potentiometer wiper (middle pin) into the base row. (Tie the wiper and one outer pin together to use it as a simple variable resistor — this is more reliable if the wiper ever loses contact.)

Step 7: The audio input

  • 1 µF capacitor, + leg toward the audio source, − leg into an empty row.
  • 1 kΩ from that row into the base row.
  • Audio jack tip wire to the capacitor’s + leg.
  • Audio jack sleeve wire to the rail.

Step 8: Final check before power

Run through this list:

  • Transistor orientation confirmed (C-B-E, flat face toward you)
  • LED anode toward the resistor, cathode toward the collector
  • Electrolytic capacitor + toward the audio source
  • Nothing bridging + and − rails
  • Emitter genuinely on ground, not floating

Step 9: Power up and tune

Connect the 9V battery. Follow the tuning procedure above. Play something with a strong beat.


Troubleshooting

SymptomLikely causeFix
LED completely dead, no glow at any pot settingTransistor pinout wrongRe-check C-B-E; try rotating it 180°
LED completely deadLED backwardsFlip it — long leg toward the resistor
LED completely deadDead batteryMeasure it; a “9V” battery below 7V is finished
LED completely deadEmitter not groundedTrace the emitter wire to the − rail
LED on at full brightness, never changesBias too heavyTurn pot toward higher resistance; check the 100 kΩ is not actually 100 Ω
LED on at full brightnessMissing current-limiting resistorAdd the 470 Ω before the transistor cooks
LED glows steadily, ignores musicNo audio reaching the baseCheck the coupling cap, check jack wiring, check that the source is actually playing
LED glows steadily, ignores musicGrounds not sharedAudio sleeve must connect to circuit ground
Reacts only to the loudest bass hitsInsufficient biasThis is Circuit 2’s known weakness — build Circuit 3
Reacts only to loudest hitsSource volume too lowRaise device volume to 70–90%
Flickers randomly with no soundLong unshielded input wires picking up humShorten wires; add 100 nF from base to ground
Reacts to everything, too twitchyBias too close to conductionBack the pot off very slightly
Transistor gets warmExcess collector currentIncrease the LED resistor; confirm it is present
Music sounds distorted or quiet in headphonesCircuit loading the sourceIncrease the 1 kΩ to 4.7 kΩ, or use a proper splitter
Mic version: totally deafMic polarity backwardsThe terminal connected to the metal case is negative
Mic version: LED always onMic bias resistor too smallIncrease 56 kΩ toward 100 kΩ

Using a multimeter

If you own one, three measurements diagnose almost everything:

  • Base to emitter voltage: should read 0.5–0.7V when biased correctly. Reading 0V means no bias current — check the bias chain. Reading 0.8V+ means it is jammed on.
  • Collector to emitter voltage: should be several volts when the LED is dim, and under 0.3V when the LED is bright. If it never changes, no signal is arriving.
  • Across the LED resistor: divide by 470 to get the LED current in amps. Should be under 20 mA.

Upgrades and Variations

Upgrade 1: More LEDs

Two options, and the difference matters.

In parallel (each with its own resistor):

+9V --[470R]--|>|--+
+9V --[470R]--|>|--+---> Collector
+9V --[470R]--|>|--+

Every LED needs its own resistor. Sharing one resistor across parallel LEDs means the one with the lowest forward voltage hogs the current and the others stay dim. Total current adds up, so at 15 mA each, cap it at four LEDs (60 mA) to stay safely under the BC547’s 100 mA limit. For more than that, swap in a BC337 (500 mA).

In series (one resistor for the chain):

At 9V you can fit three red LEDs (3 × 2.0V = 6.0V) with a resistor of (9 − 6 − 0.2) ÷ 0.015 ≈ 180 Ω. This draws only 15 mA total for three LEDs — far more efficient. But you cannot fit blue or white LEDs in series on 9V; move to 12V for that.

Upgrade 2: The Darlington pair — extreme sensitivity

Two BC547s cascaded multiply their gains together: 200 × 200 = 40,000. The circuit becomes sensitive enough to react to conversation across a room, or to music at very low volume.

Audio --||--[1k]--+--[B1]  Q1
                  |    \
              [2.2M]    E1 ---- B2   Q2
                  |               \
                 +9V              E2 ---- GND

  C1 and C2 tied together ---> up through LED + 470R to +9V

Wiring: Q1’s emitter connects to Q2’s base. Both collectors tie together and go to the LED. Q2’s emitter goes to ground. The bias resistor rises to about 2.2 MΩ because the pair now needs two V<sub>BE</sub> drops (≈1.4V) but far less base current.

Trade-off: it can become too sensitive, reacting to footsteps and the fridge compressor. Add a pot in the bias chain to tame it.

Upgrade 3: Driving a real 12V LED strip

Do not attempt this with a BC547. A half-metre of 5050 strip pulls 300–600 mA — six times the transistor’s rating. It will fail, possibly dramatically.

Use the BC547 as the sensitive input stage and let a beefier device do the muscle work:

Option A — TIP122 Darlington (easiest):

Q1 (BC547) collector --[1k]--> TIP122 base
TIP122 collector --> LED strip negative
TIP122 emitter --> GND
LED strip positive --> +12V

The TIP122 handles 5 A. Bolt on a small heatsink if you are driving more than a metre.

Option B — IRFZ44N MOSFET (more efficient):

MOSFETs need roughly 4–10V on the gate to turn on fully, so drive the gate from the BC547’s collector through a pull-up to +12V, with a 10 kΩ gate-to-source resistor. Nearly zero drive current and very little heat.

⚠️ Always share grounds between the 12V strip supply and the audio source’s ground, and never feed strip current through your breadboard’s thin internal contacts.

Upgrade 4: Three-channel bass / mid / treble

This is where it starts looking like a real light show. Build three copies of Circuit 3, each with a different colour LED, and put a passive RC filter in front of each input.

ChannelFilterComponentsCutoffLED colour
BassLow-pass4.7 kΩ series, 0.47 µF to ground≈ 72 HzRed
MidBand-pass0.1 µF series, then 4.7 kΩ + 10 nF to ground≈ 340 Hz – 3.4 kHzGreen
TrebleHigh-pass10 nF series, 4.7 kΩ to ground≈ 3.4 kHzBlue

Formula for both filter types: f = 1 ÷ (2π × R × C)

Feed all three from the same audio source. The bass channel thumps on the kick, the mid flickers with vocals and guitars, and the treble sparkles on hi-hats. Because each channel has its own sensitivity pot, you can balance them until they look right.

Upgrade 5: Smoothing the flicker

At the highest audio frequencies the LED technically flickers thousands of times a second, which your eye averages out anyway. But if the effect looks too jittery, add a 10 µF capacitor across the LED (positive to the anode side). This creates a slow decay so the light fades out rather than snapping off — much more organic, closer to a real VU meter. Experiment between 1 µF and 47 µF to taste.


Making It Permanent

Once the breadboard version works, move it to something durable.

Perfboard assembly

  1. Lay it out on the perfboard before soldering anything — mark component positions with a pencil.
  2. Solder the low-profile parts first: resistors, then the transistor, then the capacitor, then the tall parts.
  3. Keep the transistor’s leg heating brief. BC547s survive normal soldering fine, but there is no reason to cook one.
  4. Use solder bridges or offcut resistor legs for the short connections.
  5. Test with a multimeter in continuity mode before you apply power — look for accidental bridges, especially between adjacent transistor pins.

Enclosure ideas

  • Clear acrylic or a jam jar — lets the light scatter nicely
  • A small project box with the LED and pot on the front panel and the audio jack on the side
  • Ping pong ball over the LED — the classic hobbyist diffuser, and genuinely effective
  • Frosted glass or a translucent 3D print — softens the point source into a glow

Power notes

The whole circuit draws roughly 15–25 mA. A standard 9V alkaline holds around 500 mAh, so expect 20–30 hours of runtime. For anything permanent, use a 9V wall adapter or a USB power bank at 5V (remember to change the LED resistor to about 180 Ω for 5V).

Add a power switch in series with the battery positive. You will be glad you did.


Safety and Common Mistakes

Do:

  • Double-check transistor orientation before applying power
  • Always use a current-limiting resistor with every LED
  • Observe electrolytic capacitor polarity — reversed electrolytics can vent
  • Share ground between the audio source and the circuit
  • Use a 3.5 mm splitter so you keep hearing the music

Do not:

  • Do not connect this directly to a power amplifier’s speaker terminals. A 100W amp can output 28V RMS, which will destroy the transistor and possibly the amplifier’s protection circuitry. If you must tap a speaker output, use a voltage divider — 100 kΩ in series with 2.2 kΩ to ground, taking the signal from the junction.
  • Do not exceed 100 mA through the BC547. Count your LEDs.
  • Do not reverse the battery. Reversed polarity can destroy the transistor and the electrolytic capacitor.
  • Do not run LEDs without a resistor, not even “just for a second to test.” LEDs have almost no internal resistance and will draw whatever current is available until they die.
  • Do not stare into a bright LED, particularly blue and white ones at close range.

Frequently Asked Questions

Can I use a BC548 or 2N3904 instead?

Yes to both. BC548 is a direct swap with identical pinout. 2N3904 works electrically but has EBC pinout — rotate it 180°.

Why does my LED only flash on the bass?

Because bass carries most of the energy in typical music, and an unbiased circuit only crosses the 0.7V threshold on those peaks. Build Circuit 3 with the bias network — it fixes this completely.

Can I run it from a 5V USB supply?

Yes. Change the LED resistor to about 180 Ω and the mic bias resistor (if using Circuit 1) to about 10 kΩ. Sensitivity drops slightly since there is less headroom, so lean toward the Darlington version.

Alex Klein Author

Author

Alex Klein is an electrical engineer with more than 15 years of expertise. He is the host of the Electro University YouTube channel, which has thousands of subscribers.