Hi,
Please post the schematic and code with the PIC details. Otherwise it might be waste of time for both of us.
Regards
Sougata
Hi,
Please post the schematic and code with the PIC details. Otherwise it might be waste of time for both of us.
Regards
Sougata
ADC for PIC is very stable!
I use 10bit ADC and max error ir one bit.
Need to use 7805 for stable 5V power, inductors and capacitors for smaller pulsation.
If You need simple Audio level meter, then use rectifier, resistor and capacitor. And Use Vref pin on PIC, to set max value. Thats all.
For More advanced level meter use OpAmp and create band filter or band filters and build up to 8 band spectrum analyser. With 16 OpAmps it is very simple to build. And for example 16F877 or 18F452 works fast. You can read all 8 channels and display. By software You can add peak detectation and build log scale.
I'm fairly new so be gentle, but could someone provide some sample code as a reference for me to build on? I'd really appreciate it.
IMHO, PIC are useless for that. LM3914, LM3915 OR LM3916 don't even require any software and are on the market since over 20 years.
http://www.national.com/VCatalog/vie...ircuits&tId=25
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
[QUOTE=mister_e]IMHO, PIC are useless for that. LM3914, LM3915 OR LM3916 don't even require any software and are on the market since over 20 years.
And Also Do not forget the U.S. NTE 150x series ... (1507 IS ~ LM 3914 )
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
How i build log scale.Originally Posted by ritvarsrizikovs
I use linear scale now.
You need to use the line in level (normally 1v peak to peak RMS) from a CD / Tape deck. You then need to make a filter fo that the peaks provide a cleaner input (well at least thats what I used form my disco light project).
The attached image shows the filter I used to input the signal into an 877 PIC. I can't post the code as it was written in JAL (before I discovered PBP) but works on the pinciple of converting the voltage to a value between 0 and 254, and then making pin on the output port go high, so for example, if the input equated to 120 the first four pins RB0 - RB3 would be made high. Its not quite a true VU or Peak level meter, and I'm sure with re-coding you could do something better, but the effect to a decent track with lots of quiet bits between the beat looks cool
The reason I'm doing this on a PIC and not a LM3914, LM3915 OR LM3916 is because I wrote software for LED light patterns and I simply want to use the music input to trigger the stages of the patterns I programmed.
If you want post the code or send to email.Originally Posted by malc-c
I know JAL.
I don't know if I still have it... I'll have a look on my archive to see if I can find it
Bookmarks