AVR acoustic spectrum analyzer by manekinen
analizator_animation.gif
AVR acoustic spectrum analyzer, based on Atmega8 AVR microcontroller, operational amplifier, and few other components. Use any HD44780 compatible LCD or VFD, connect audio signal, and enjoy the effect :) You can build in this into your amplifier, pc, car-audio, or other device. On this moment device support following displays: 16*2, 20*2, 24*2, and 20*4. If you have one which this device not support, please contact me and i will try to adapt code for it. There are two pcb's which exactly fits behind the display, one for the 8*2 connector displays, and one for 16*1. You can attach a small keyboard to change display brightness (vfd also supported), change sensivity, choice the display effect. Settings are saved to the eeprom memory.

Project site: diy.elektroda.eu/analizator-widma-akustycznego-v2/

And here is how it works on 20*2 VFD



"czulosc" and "janosc" are in polish, they means "sensivity" and "brightness" :) And they can be changed :)

 
Remove these adsRemove these ads by Signing Up

Step 1: Make board

16x1top.jpg
analizator2-1.jpg
analizator2-2.jpg
analizator2-3.jpg
analizator2-4.jpg
analizator2-5.jpg
analizator2-6.jpg
Use the eagle project files or PDF's to make a PCB, choose 16*1 or 8*2 connector depending on your display. There is also top layer with components values. See schematic for part list. You can connect a small keyboard to 5pin connector, there is no pcb for keyboard, just use 5 buttons and connect all to the ground.
ultranewt says: Mar 27, 2013. 9:34 AM
what kind of input does this use? do you just plug your audio cable into it?
Bluesky0202 says: Dec 9, 2012. 12:57 AM
If I do it with arduino uno how can i change code for? And I don't understand audio ground be conected .
usbg3rd says: Feb 8, 2012. 9:50 AM
nice one buddy
there are 2 things i want to know
1- in which software u r simulating the avr chip
2- what is the general circutary for a reset switch that is active low
please reply indivusally and fast
cheesemarathon says: Jun 17, 2011. 12:32 PM
just the thing i was looking for but i am pretty much a beginner in the world of electronics so first of all how do i turn the egal files into a pcb and second of all what screen and what size did you use? thanks
postlife says: Apr 20, 2011. 4:33 AM
What is the actual size of this unit in inches?
godofal says: Dec 16, 2010. 3:28 PM
awesome project!
i was thinking of something like this, remembered a similar project here (other one than this one) but this is exactly what i was hoping to make :D
gotta get the parts someday, this is really something i wanna have :P
are there plans for making a kit?
tahi_instructables says: Mar 11, 2010. 11:26 PM
well done

This is exactly project what i thought and found a long time ago. In fact i don't know how to start, how to get audio signal...and display it via many ways...I can't user LED table, LED matrix, or laser beam to display the spectrum on any plane...

So that, audio output will connect to ADC module of MCU.. and then?  what is algorithm to make spectrum correspond with ADC value...?
Anybody can explain for me ?

Thanks
daonamthai@gmail.com
manekinen (author) says: Feb 9, 2010. 6:44 AM
Attachment updated, program codes in previous one contained a little bug, so please download it again.
Mikkel324 says: Jan 7, 2010. 6:33 AM
Hello.

Excellent project, I have been looking for something like this for a while.

I will try putting it together later today, I have a lot of Noritake VFDs that I need to put to use.

There's just one thing I'm wondering about. I notice it uses the display in 4-bit mode. I have had some trouble with Noritake VFDs in 4 bit mode before, are there enough free IOs to make it use the display in 8 bit mode?


A.M.
manekinen (author) says: Jan 7, 2010. 7:49 AM
Hi! There is no even one free pin left. I have problems with this VFD too, but i don't think that is 4bit bus mode fault. My VFD has problem with changing the definiable chars while running, i can change them on start with no problems. When i try to change them while working, display just don't release busy flag and program hungs up, as seen on my movie, its reseted by watchdog - and it happens very often. I have tried a lot of tricks to avoid this but vfd keeps hunging up :(

And what are yours problems with VFD's? Can you test this analyzer on your VFD's and tell me if you have the same problems as me?
Mikkel324 says: Jan 7, 2010. 9:40 AM
Hello.

I have had many strange problems with using the Noritake VFDs in 4 bit mode, also that it won't go out of busy, leading programs waiting for the VFD to crash and other strange stuff. I have had this problem with both new and very old HD44780-compatible Noritake VFDs. The problems have always gone away when I have switched to 8 bit mode. This is very frustrating, but I don't know about any other solutions.

Are PB0-5 used for buttons? Maybe you could multiplex the buttons onto the VFD data bus.

Anders M.
manekinen (author) says: Jan 12, 2010. 12:07 AM
You can throw away buttons and throw away two pins for selecting VFD and low prescaler - and you got 7 free pins. Maybe if i found some free time i will try to do this on 8bit mode and do more tests of these noritake vfd, which is, not 100% HD44780 compatible :( I don't know maybe there is some extra commands that pdf don't describes? I tried to switch off and on and do another init before sending definiable chars, i even edited compiler lcd library to make a little longer timings... same bug.
HuKePa says: Jan 11, 2010. 5:34 AM
Whats the name of 1st,2nd,3th song on the video?
DavidRobertson says: Jan 5, 2010. 2:08 AM
 You use AVR Burn-o-Mat!
gism says: Dec 28, 2009. 3:01 AM
 Hi, witch character are you using to print the bars in the display? have you reprogrammed the display eeprom? I hope not.
I try to read the code but I'm a C18 kid and I don't get it...
manekinen (author) says: Dec 28, 2009. 11:53 AM
Hi gism, you can define up to 8 your own chars in the HD44780 displays, you just send a proper command and display saves it into the ram memory. Look on the bottom of the program, there are these commands "deflcdchar" and data for it. The are saved in 0 - 7 cells. The code is in BASCOM AVR compiler.
gism says: Jan 2, 2010. 5:37 AM
thanks, I understand, I will have to read the datasheet to do this in C18.

guyfrom7up says: Dec 28, 2009. 12:55 PM
great job! have you thought about using nixie bargaphs, such as the in-13?
5 stars!
drbobbob says: Dec 28, 2009. 11:21 AM
I am just wondering but where did you get the VFD display?  I like how they look but I have not seen any cheap suppliers.
manekinen (author) says: Dec 28, 2009. 12:04 PM
I know, it's hard to get in decent price. Search on e-bay or similiar sites, i bought my for a 70PLN / 25$, and it's quite cheap.
manekinen (author) says: Dec 28, 2009. 11:58 AM
I have just reuploaded rar archive and don't know why server is changing its extension and name to something random, it's not my fault. You can download this files from my site http://diy.elektroda.eu/wp-content/uploads/2009/12/spectrum_analyzer_v2.rar

Oh, and project is quite simple, it only looks complicated :) You do not have to do calibration if you don't want to, but it will be better if you do, you get better frequency response.
geeklord says: Dec 27, 2009. 7:32 PM
What do I use to open a .rar file?
amishx64 says: Dec 27, 2009. 6:10 PM
@ Everyone

If you guys are having trouble getting the right project file downloaded 
all you guys need to do is change the file extension on file you downloaded from .tmp to .rar

so instead of FP3YICPG3KY0NSJ.tmp
it should say FP3YICPG3KY0NSJ.rar

If you can’t see the file extension, go to ‘Tools’ –> ‘Folder options’ –> UNcheck “hide file extensions for known file types”

Hope this helps.

amishx64

RazorConcepts says: Dec 27, 2009. 5:19 PM
The rar file doesn't seem to work for me? 
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!