Saturday, 18 May 2019

Frequency Detection Circuit Design


I want to create a circuit that can detect audio frequencies and flash RGB LEDs different colors depending on the detected frequency. The frequency range will be from 20 Hz to 12 kHz, after looking at the chart below.


enter image description here



So my question is: what circuit design should I choose to make a good frequency detector? I suppose I would need



  1. Preamp for the microphone (is it necessary for the ADC?)

  2. Band pass filters (active or passive?)

  3. A microcontroller with an onboard ADC that has a sampling rate of at least 24 kHz.


Before I get too excited, are there any circuits out there that already do this?



Answer



You don't need a DSP or other fancy solutions -- in this case a straightforward analog circuit does the trick.


It sounds what you need is a classic light organ, aka color organ. They originated in the 1970's, and were used to drive spotlights instead of LEDs.



Jameco sells a kit for this. They also publish the schematic on-line for those that want to DIY. It takes the audio input, runs it through an op-amp pre-amp, and then divides it into three frequency bands. The outputs are used to drive banks of LEDs.


I've built two these (for stereo) and they work well. I have no connection with Jameco. You can get similar kits elsewhere.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...