Go Back   Home > Forums > General Interest > Everything Else
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Everything Else Anything related to audio / video / electronics etc) BUT remember- we have many new forums where your thread may now fit! .... Parts, Equipment & Tools, Construction Tips, Software Tools......

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 9th September 2010, 02:45 AM   #1
russo is offline russo  Portugal
diyAudio Member
 
Join Date: Jan 2008
Default Home made spectrum analyzer

Good night every one, can someone teach me a little about spectrum analyzers, I would love to make a "simple" one, something like 20 bands or so in the 20hz to 20Khz range, no need to be accurate, just for light show purposes.
I think that I can do it using 20 band-pass filters, but the first question is what frequencies should I use to do that, and what type of filter should I use and what op-amps as I want the filter to be digital, then how can I make an audio signal to become a single ended signal(0-5v) so I can read it using an adc and one micro-controller.
I have already took a look at the old GK thread about his homebrew spectrum analyser but there is no information about the filters but it looks like he used band-pass filters.
  Reply With Quote
Old 9th September 2010, 03:09 AM   #2
diyAudio Member
 
Join Date: Mar 2007
Location: Canandaigua, NY USA
I think what you're asking for is a 1/3 or 1/10 octave analyzer. It's included in a lot of SA software, but few people build them discretely these days. Still a useful tool or nice entertainment device. A good start on understanding the preferred frequencies is this site.
__________________
I used to be an audiophool like you but then I took an arrow to the knee.
  Reply With Quote
Old 9th September 2010, 03:37 AM   #3
russo is offline russo  Portugal
diyAudio Member
 
Join Date: Jan 2008
I just love hardware, and light shows too, but that's another story.
Looks like that site helps a bit, thanks for sharing.
I'm an EE student but due to the nature of my university I have to learn a lot of maths and there is little pratical classes, so if I want to learn even more DIY is the way to go.
From this old thread:
Homebrew Digital Sampling Audio spectrum analyser.

Created by GK as said earlier I read this:
Quote:
Attached below is a photo of how far I got this weekend. Shown is the digital section of the unit plugged into a SVGA monitor. The photo didn’t come out very well due to the camera flash, but the early stages of the generated display can be seen.

The digital board has an analogue multiplexer with 20 voltage inputs (one for each frequency band). Each input will be fed from a simple half wave peak detector preceded by a two stage MF bandpass filter.
I haven’t built the analogue/filter board yet. In the photo below I am just feeding one of the analogue inputs from the wiper of a potentiometer wired across the supply rails.
The variable voltage from this potentiometer is producing the yellow level bar that can be seen on the screen.

The white graticule can also be seen. The graticule currently fills the entire screen without a border, as I haven’t finished soldering in the vertical and horizontal video blanking logic yet.
When finished the graticule displayed on screen will be comprised of just the 20 by 10 square grid pattern as described in the previous post.
So, now seems like I should search how peak detector work, I think that is just using a comparator and compare the output of each bandpass filter with some defined treshold, i'm I right?
  Reply With Quote
Old 9th September 2010, 03:46 AM   #4
star882 is offline star882  United States
diyAudio Member
 
star882's Avatar
 
Join Date: Mar 2007
You could do it with a microcontroller running FFT. It would definitely be cheaper than making and tuning lots of filters.

Another option is baudline signal analyzer - FFT spectrogram and an old PC.
__________________
"Fully on MOSFET = closed switch, Fully off MOSFET = open switch, Half on MOSFET = poor imitation of Tiffany Yep." - also applies to IGBTs!
  Reply With Quote
Old 9th September 2010, 03:52 AM   #5
russo is offline russo  Portugal
diyAudio Member
 
Join Date: Jan 2008
As an atmel user I already know this fft engine for atmel micro-controllers:
ELM - Audio Spectrum Monitor

But I would love to make first a hardware version and then an fft based one, as I dont really really understand fft's, I know what they are, but never played with then in an pc to extract their juice to be efficient in a small 8 bit uC.
I know I am being a bit stubborn with this, but I love big graphic equalizers, mixing tables with tons of channels, sliders and knobs, dmx controllers and the like and making one "spectrum analyzer" using just hardware and a little help from an uC would make me very very happy.
  Reply With Quote
Old 10th September 2010, 01:23 AM   #6
diyAudio Member
 
Join Date: Mar 2007
Location: Canandaigua, NY USA
You should be able to find all sorts of switched capacitor filter chips for the bandpass filters. I think there was a 1/3 octave triple; not sure if its current; something 380? I'd hold the output briefly with a cap and scan all the filters with an ADC and a PIC chip or something, then use that to drive the multiplexed multiple bar graph displays. The whole mess gets out of control if you try to have dedicated circuitry for each band, but that's how people used to do it. I'm pretty sure these projects were published multiple times in the popular electronics magazines, all long gone.
__________________
I used to be an audiophool like you but then I took an arrow to the knee.
  Reply With Quote
Old 13th September 2010, 03:20 PM   #7
russo is offline russo  Portugal
diyAudio Member
 
Join Date: Jan 2008
I have a bunch of programmable switched cap filters from maxim, maybe its time to do some reading about how to use then, so the way is to use bandpass filters and read the values using an adc.
One more thing, how to use op-amps to convert the positive and negative voltage from an audio signal to a only positive signal?
I have already searched about this theme in the web, but I cant find anything.
  Reply With Quote
Old 13th September 2010, 03:36 PM   #8
diyAudio Member
 
neutron7's Avatar
 
Join Date: Dec 2003
Location: Toronto Canada
all you need to do is build a precision rectifier (op amp and diode(s)) for each one.

you can get a little chip called MSGEQ7 which does 7 bands of spectrum analysis with just an 8 pin IC (you can get smd version from BlipTronics.com but i got DIP version from china for $3 each UTSOURCE.NET

you could use 3 of them and change the clock frequencies on the other 2 to get 21 bands.

the output is multiplexed and by a clock, but its quite easy to set up. i made a big VU meter which has 6 overlapping bands of different color (for spectrum) on RGB LEDS with just that IC, an arduino, and some serial controlled RGB LEDS. (also from bliptronics)

I expect you could use a display like this
http://www.arduino.cc/cgi-bin/yabb2/...num=1254359561
but input the values from the ICs instead of a computer.

Last edited by neutron7; 13th September 2010 at 03:39 PM.
  Reply With Quote
Old 13th September 2010, 03:40 PM   #9
EUVL is offline EUVL  Europe
diyAudio Member
 
Join Date: Oct 2003
Homebrew spectrum analyser

Patrick
  Reply With Quote
Old 13th September 2010, 10:35 PM   #10
russo is offline russo  Portugal
diyAudio Member
 
Join Date: Jan 2008
Thanks for the help to all the posters!!
I know that MSEGQ7 chip and I'm also an arduino forum user and already know that nice post, but I want something different.
I know that all this "requirements" may seem strange but I would like to make this using op-amps or switched caps as an learning exercise about analogic electronics.
That spectrum analyser is way over the top, very nice, but I can convert it to only work at audio frequencies.
I have allready read this nice topic, and this is what trigered my will to make this an analogic/discrete piece of hardware:
Homebrew Digital Sampling Audio spectrum analyser.
Its a pitty that there is no info about the op-amp filters.
Gonna google a bit more.

Last edited by russo; 13th September 2010 at 10:39 PM.
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spectrum Analyzer Overd0se Parts 3 3rd June 2011 04:27 PM
Audio spectrum analyzer CASTEL Equipment & Tools 0 16th February 2010 07:50 AM
Possible Spectrum Analyzer Project? Xlrator Digital Source 7 25th April 2006 05:30 AM
audio spectrum analyzer norvbul Solid State 6 6th March 2006 12:06 AM
Spectrum Analyzer opinions tortello Equipment & Tools 9 14th April 2002 03:06 PM


New To Site? Need Help?

All times are GMT. The time now is 09:38 AM.

Page generated in 0.13167 seconds (83.44% PHP - 16.56% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio