Quote Originally Posted by malc-c
Thanks for the reply,

Yes, I've been playing with making a colour organ (or sound to light unit) for some time. I originally made a basic unit using a 16F877 with code written in JAL (sory for swearing on the PBP forum ) - I then discoverd PBP and ported the basics over to a 16F628a, but never got around to doing the music side, and was limited by the number of pins so i couldn'l use the LCD.

Now I'm determined to build the filters, get a decent bass beat peak circuit made, and include a normal sound to light based. This is really my first advancement from the simple "flash a LED" and combined with the factI've not coded for a while its a steep learning curve

I'll swat up on the ADC section of the manual. I have used RA2 and RA3 for switches, but as these are AN2 and AN3 I will change them to RA4 and RA5 so that will leave RA0/AN0, RA2/AN2, and RA3/AN3 for use with the audio side.

No doubt I'll probably need a helping hand to debug the code, but I'll see how far I can get on my own first, hopefully without blowing up the PIC (or the CD player !)

I've got a decent FFT running on an 18F4620 that pulls data from 0hz - 20khz at about 15 times per second onto the lcd. Check the video file at

http://web.ndak.net/~jdgrotte/picalyzer/picalyzer.htm

It works pretty good except the input filter that I had on it sucked bad. I was trying to cut off everything above 20khz to keep out the artifacts (or is it anti-aliasing? I forget), it never quite worked right, I gave up. But the digital part works great.
JDG

EDIT:
I forgot to mention....TURN DOWN YOUR SPEAKERS! Or at least get the dog out of the room!