Author Topic: FFT or discrete bandpass filters  (Read 1818 times)

0 Members and 1 Guest are viewing this topic.

Offline Caleb_PTopic starter

  • Newbie
  • Posts: 8
FFT or discrete bandpass filters
« on: June 17, 2013, 09:18:45 pm »
I am adding a music visualizer to my current project and need some advice. The circuit has a MCU, LED display with driving hardware and a microphone with an opamp. I want to get the magnitude of a few frequencies and display corresponding animations on the LEDs. I can do an FFT on the MCU but I'm trying to maximize sleep time for power efficiency reasons. Running an FFT and doing lots of ADC measurements will drastically reduce battery life. My other option is to select 4 frequencies and build 4 second order pass band filters. I can then rectify these 4 AC frequencies using a diode and have a Resistor and Capacitor in parallel. This would give me an approximate magnitude reading for each frequency.

Do you think it is worth the effort and extra cost to add the analogue front end or just take the hit on battery life? I plan for my project to be produced in small quantities (100-1000) but I am still concerned about cost. Any advice would be appreciated.

« Last Edit: June 17, 2013, 09:27:43 pm by Caleb_P »
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 28013
  • Country: nl
    • NCT Developments
Re: FFT or discrete bandpass filters
« Reply #1 on: June 17, 2013, 10:52:27 pm »
You can implement 4  IIR filters (elliptic 2nd or 4th order). These take little processing power if your MCU has a hardware multiplier.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Caleb_PTopic starter

  • Newbie
  • Posts: 8
Re: FFT or discrete bandpass filters
« Reply #2 on: June 17, 2013, 11:06:10 pm »
Thanks nctnico. I will look into the efficiency of that compared to the other two options.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf