Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

LEDs Sync To Music

Status
Not open for further replies.
The parts are $15.00 at RadioShack but are less than $5.00 at a proper electronic parts store.
 
and what would be classied as a "proper" store??? I dont have much aruond here except for radioshack, and a hobbytown usa?
 
audioguru said:
Try it and you'll like it.
Later I will show how to add a microphone to it so it is wireless.

I have a project with 20 LEDs in a bar-graph. It is sensitive enough to indicate a pin dropping on the floor on the other side of a room. It has a microphone and a rechargable battery. It flashes to the beat really well.


hey audioguru

can u furnish some details abt ur project......me trying to create a led network controlled by music (like music lights) for a project.....

i mean it wud be a light decoration kind of a thing which wud vary light intensityaccording to the intensity of sound

i read ur posts and thought that ur project wud be really helpful in mine
 
headcracker said:
hey audioguru

can u furnish some details abt ur project......me trying to create a led network controlled by music (like music lights) for a project.....

i mean it wud be a light decoration kind of a thing which wud vary light intensityaccording to the intensity of sound

i read ur posts and thought that ur project wud be really helpful in mine
What details? My circuit here is just a little power amp IC with DC biasing so that its output voltage without a signal is zero, and a rectifier followed by a pulse-stretching capacitor.

The circuit I posted here works well controlling the intensity of LEDs with the loudness of pop music. Classical music has a very wide range of loudness and would need a much more complicated circuit.
The little LM386 amp can drive about 18 LEDs each with a series current-limiting resistor. A power amp IC designed for a car would be able to power hundreds of LEDs. A power amp IC designed for a home would be able to power about one-thousand LEDs.
 
hey,

I built this circuit and i must say, it works great. I did a couple modifications to it though, i used a 100uF cap instead of the 220uF from the schematics because i found a bit of a delay with the light the sound (no idea if thats what affects the delay but it worked) and i also completely took out the 10K pot from the audio input.

My question is though, i noticed the LED is only sensative to high pitched sounds (claps, singing etc.), I've tried many many songs on it and have come to that conclusion. How would I be able to tune it to be senstive to the bass instead of higher pitches? what part of the circuit affects that aspect. Thanks, any help is appreciated.

Corey
 
Last edited:
The circuit has nothing to cut its bass response. Make a lowpass filter with a series 10k resistor from the music source to the input pin 3 of the LM386, and a 0.1uF capacitor at pin 3 to ground.
 
thanks audioguru it worked great,

just one thing though, im testing it on my mp3 player and put a splitter in the headphone jack so i could connect my headphones and also see the LED working to the music. When i connected the LED a first nothing happened until i shorted the left and right audio output to go into the audio input of the device. If i do that then i can only hear from one ear of the headphones. I guess the LED needs a stronger input. Is there a way of getting a stronger input and also being able to listen through my headphones? And also, since im preparing this for a stereo, and since stereos have a much higher output than small devices, how will i be able to take an output from the stereo and adapt it to the right input for this device. Thanks

Corey
 
ferrari99 said:
im testing it on my mp3 player and put a splitter in the headphone jack so i could connect my headphones and also see the LED working to the music. When i connected the LED a first nothing happened until i shorted the left and right audio output to go into the audio input of the device. If i do that then i can only hear from one ear of the headphones.
The input of the LM386 can be connected to either channel's output and work fine. Maybe you connected the input of the LM386 to one channel's output and the ground of the LM386 to the other channel's output.

I guess the LED needs a stronger input. Is there a way of getting a stronger input and also being able to listen through my headphones?
The gain of the LM386 can be increased 10 times by adding a 10uF capacitor between its pin 1 and pin 8, positive at pin 1. The headphones should work fine if everything is connected correctly.

And also, since im preparing this for a stereo, and since stereos have a much higher output than small devices, how will i be able to take an output from the stereo and adapt it to the right input for this device.
A 22k resistor from the L channel and a 22k resistor from the R channel and their junction has a 560 ohm resistor to ground and is the input to the circuit. Then the level is reduced to about 1/20th.
 
EUREKA!

(this is an accidental invention.)
 

Attachments

  • 1ledaudamp.jpg
    1ledaudamp.jpg
    86.7 KB · Views: 623
catcat said:
EUREKA!

(this is an accidental invention.)
It is accidental, all right!
The 1st 3 transistors don't do anything and the 4th transistor isn't biased correctly. The 3300uF capacitor has such a high value that the 4th transistor has a frequency response down to .05Hz. Only 3.3uF to 10uF is needed for audio.
 
hey audioguru does this look like a good little circuit? it seems to work but i need someones opinion **broken link removed** i dont know if you'll even get this.. but if anyone does can you tell me if it might work or not, thanks!
 
Hi Ballpoint,
This circuit is nearly as bad as the other one.
1) If the music source has a coupling capacitor, then the LED is on without music.
2) Music causes the transistors to be rectifiers that switch the LED off for each half-cycle of sounds.
3) The LED doesn't get brighter when the music is louder then dimmer when the music is softer.
4) The input of the 1st transistor is like a dead short to the music source.
 
ballpoint said:
He had a video of it working on there though.. you're saying it wont work at all?
It follows the music, sometimes.
The LED is lighted when there is no sound.
Sometimes sounds turn it off, sometimes they turn it on.
The circuit doesn't know if it is coming or if it is going.

In my circuits the brightness of the LED is the same as the loudness of the sound. Very short duration sounds are lengthened so that their loudness can be seen.
 
yours did sound like a good circuit, but i couldnt follow what you were all saying.. im just a kid and dont know anything really yet but im trying. I looked at your circuit and it just confuses me.. this guys seemed simple and easy enough for me to understand. I can sort of make out what yours is doing but i dont understand most of it..
 
My circuit simply converts the loudness of sounds into current for the LED.

This is my Sound Level Indicator project with its 20 LEDs that display the volume of sounds and it has a microphone and a rechargable battery. It can pickup the sound of a pin dropping on the floor on the other side of the room, or a very loud bass beat. The 20 LEDs can be switched to turn on in a bar, or in a dot as shown here:
 

Attachments

  • Sound Level Indicator 002.jpg
    Sound Level Indicator 002.jpg
    47.1 KB · Views: 495
Thats cool.. but probably alittle too advanced for me right now, i was just bored and thought about geting some leds to pulse to music for fun.. i found this site and then read all that has already been posted. ill see what i can do, thanks for your help!
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top