Maker Pro
Maker Pro

lights synchronized with music

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
So I'm trying to develop a circuit that will allow LED's to turn on and off depending on what the frequency is. I have decided to split the circuit into three parts; the first one detecting anything from 0hz - 2kHz; the second stage detecting 2kHz - 6kHz; and the last stage detecting anything over 6kHz.

I built a little demo board of the low pass filter and although it worked I wasn't getting the rolloff that I wanted. Hence I decided to cascade two filters and see if that helps.

Here is what I have so far:

*Soon to come: a bandpass filter for the second stage and a high pass filter for the top end*
 

Attachments

  • lightsync.jpg
    lightsync.jpg
    101.8 KB · Views: 200

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
now at the right where it says 'relay' may not necessarily be a relay but just something to manipulate the light
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
Look up active filter and Sallen and Key. As long as you are using opamps, you can make much sharper filters than what you have shown here.

Bob
 

KJ6EAD

Aug 13, 2011
1,114
Joined
Aug 13, 2011
Messages
1,114
For color organ type applications it's best not to have the filter Q too high to avoid dead gaps between bands.
 

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
I put a cap on the audio in just to keep the dc out, is that part necessary?

and although i do want a little bleeding into the the next band when i tested this it was going all the way into 4kHz
 

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
update

so i changed this into a sallen key configuration. it mentioned that the knee is reduced but my question is by how much, is it a huge difference?

I have attached a picture with the new circuit, i havent changed the values to achieve the frequencies I talked about earlier, I just wanted to make sure I have built it right
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    91.1 KB · Views: 171

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
frequency response graph

So I cleaned up the circuits a little, added some values to the components and gave it a test run. At first I had pins 1 & 5 tied to ground but for some reason that was causing a lot of heat to build up in the LM741. So I just left them open and tried again.

Attached is a graph of Vin against Vout and the corresponding frequencies. I was going to do the frequencies on a logrithmic scale but since this is a low pass filter that I calculated to stop at around 1.5kHz I figured there would be no sense in that.

Criticism is welcome
 

Attachments

  • filter response graph.jpg
    filter response graph.jpg
    126.5 KB · Views: 194

foTONICS

Sep 30, 2011
332
Joined
Sep 30, 2011
Messages
332
circuit

Just realized I never attached the drawing of the up to date circuit

In the test run I removed the cap between the audio and ground in addition to the connection between pins 1 & 5 and ground
 

Attachments

  • low pass circuit.jpg
    low pass circuit.jpg
    79 KB · Views: 265
Top