I was asked by a friend to build a simple circuit to have a light flash depending on the bass of a song (mainly techno music).
This is my idea:
The circuit works on 9V to be powered either by battery or power supply. The audio comes from X1 (a 3.5mm jack port) and goes through a LC bandpass filter comprising the 10kOhm pot (to control the "steepness" of the filter), 453 mH inductor and a choosable capacitor to change the central band of the filter.
The filtered signal is biased by the R4-R5 voltage divider and amplified by the first half of the LM358 (gain controlled with the 1kOhm pot). The amplified signal is decoupled by C4 and rectified by D1. This causes only the bass "bumps" to come through. Moreover now the signal can be amplified further by the second half of the first LM358. In this case the gain is fixed and decided by the 10K trimpot.
At this point the signal is split in two rails, each one going to one half of another LM358 used as comparators. The top half is a fixed comparator and drives a LED when the input voltage is over 7.5V. This is close to the maximum allowed voltage of the amplifier and works as a sort of warning that the amp is getting saturated. The other half of the LM538 is the comparator that drives the light by activating a relay. Additionally a LED is present to give an idea of the output signal.
I am already aware that probably I will need a transistor to properly drive the coil of the relay but I'm still in prototyping stage and I still don't know what type of light will be attached at the end (LED, strobo, ...).
So now to the actual question(s).
1) are there any evident flaws in the design? I tested the circuit and works fine but maybe some of you can give me some feedback
2) since I want to make a nice PCB for my friend but I don't have any experience in designing PCBs, are there any points I should be aware of when laying the PCB out? BTW I'm using EAGLE for the design.