An LM386 power amplifier circuit works perfectly when it is built with all the important parts on a pcb. It might oscillate if it is built all spread out or built on a breadboard.
but o'm juz trying to light 3 LEDs according to the sound level...would the oscillation affect it so much? ..im hoping to finish prototyping bfore doing it on da PCB
A breadboard doesn't work for high frequency circuits because its capacitance is much too high. The LM386 audio amplifier has plenty of gain at 1MHz so it needs to be soldered on well designed stripboard or on a pcb.
played around with da coding today and found out ONE of the prob....i've configured the ADC wrongly (A/D Conversion Clock Select bits = Fosc/2) .... changed it to Fosc/8 and it works fine (for DC inputs ha ha ha-.-)
do u all know about the "A/D Acquisition Time" and "A/D Conversion Clock" ? what would be the ideal configuration for my current circuit? ....i've tried reading the datasheet of the PIC and did not understand these.... would be most grateful for any links for me to read up on these
A breadboard doesn't work for high frequency circuits because its capacitance is much too high. The LM386 audio amplifier has plenty of gain at 1MHz so it needs to be soldered on well designed stripboard or on a pcb.
do u all know about the "A/D Acquisition Time" and "A/D Conversion Clock" ? what would be the ideal configuration for my current circuit? ....i've tried reading the datasheet of the PIC and did not understand these.... would be most grateful for any links for me to read up on these
Hi,
Hopefully it's not too late to reply
Acquisition time is the time taken for the sampling capacitor to be charged up (find "sample and hold" for more info). So the source impedance is to keep minimum to ensure minimum acquisition time.
As for A/D conversion clock, it's just another clock for ADC. This clock is derived from the microcontroller oscillator or internal RC. For some PIC, it is between 2 us to 6 us, so based on the oscillator frequency of the system, select the scale according to the table given in the datasheet.
*EDIT: Time taken for one cycle of ADC is acquisition time + conversion time. Conversion time is usually 11 AD clock cycles, to convert the analog value across the charged capacitor to digital format.