Using the BS2 to make a graphic equilizer - no idea where to start...
Good day! For a school project, I wanted to make a graphic equalizer using the availible BS2 stamp and BOE. As of now, I have been doing research and learning how to even program the stamp (no previous coding knowlege). However, my research has come up blank as I cannot find any resources on a similar project. What I plan to do is have an audio input (like an iPod through a jack) and have a series of LEDs light up similarly to a graphic equalizer. I would like some info to help me get on the right path and make this project work (using the BS2 stamp)
Comments
1. Don't say your doing a project for school, otherwise people will probably just ignore your post.
2. I'm not familiar with the peripherals on the BS2 stamp, oh wait it's a PIC16C57C, something seem's fishy here.
3. Perhaps use one of the dsPIC's from Microchip, the BS2 is just a PIC16C57C from Microchip.
Your project seems to require quantifying analog signals and making decions based on those quantifications. I have yet to really jump into the dsPIC's from Microchip (I think the dsPIC's are the PIC33 line) but I'd definetly suggest checking those out. It'll cost you probably about $100 for the dev board and a programmer. Then you would have to learn how to program in either C or Assembly, and do surface mount soldering if you want to port the PIC over to a board. These languages give you a lot more power over the CPU architecture that your programming, unlike BASIC, but BASIC is in the sense of the word basic. I'm not making fun of the BASIC Stamp, I think Parallax offers a product that can appeal to a much wider audience then Microchip, through the use of their BASIC compiler and the pre-engineered projects it makes theing easier and faster. You do sacrifice some control you would otherwise have over the target CPU. I don't know exactly how capable the BASIC compiler is for the BS2, and in combination with the capabilities of the PIC16 they use for the Basic Stamp. Looking at it from the angle of a PIC16, I'd say that it doesn't have the necessary peripherals to do the project you mentioned, but it's no like I'm a pro at this stuff either(yet, heh). So in otherwords take everything I've said with a grain of salt.
But if you want it to give you the ability to adjust the volumes of those frequencies and re-output the data as real-time audio, that "snapshots" thing is a killer. I often see people here say that the Stamp isn't fast enough to do real-time audio processing, which is of course what a real graphic EQ does.
Do you have access to some test equipment, especially a function or audio generator and a scope?·
My suggested approach, use a low-pass filter (bass), band-pass filter (mids), and high-pass filter (highs).· You can google for several op-amp based circuits.· Feed the output of each of these filters into a multi-channel ADC (you shouldn't need a high-bit ADC for this, 8-bit should be fine), read by the Stamp.· This should give you the relative voltage level of each frequency band.· From here, the display method is up to you.
Understand that your display will be simple and limited, as the Stamp can only process data so quickly, but it should also be a challenging and worthwhile project.· Break it up into simple pieces, get that to work properly, then move on to the next.· I'd start with getting the ADC to work, then your display, finally the filters.
Depending on your skill level, you may also want to consider adapting an existing color organ kit or project.· Try to tap off just after the filters, in order to feed your ADC.· I think that you'll learn more if you can design and build everything yourself, but I don't know your overall skill level, time frame or budget for this project.·
Myself, I'm really weak with the analog side of electronics, so I don't think I'll be of much further help with your project, but the other forum members here may be able to help.· Good Luck!·
The BS does not have enough pins to drive each led seperatly.
You could probably make a smaller version of this circuit or even maybe multiplexing somehow. Maybe some else could help with that.
This definatly would NOT be a good choice for a beginer to tackle, allthough I dont think its impossible.
http://www.national.com/an/AN/AN-435.pdf
http://www.geofex.com/Article_Folders/EQs/paramet.htm
Also google/yahoo "gyrator"
A gyrator is a simulated inductor made from a capacitor(s) and a resistor(s) and an op-amp.
When you add a series capacitor to the gyrator, you form a tuned circuit.
SJW