I'm trying to build a circuit using a PIC microcontroller to convert the analog signal from a microphone.
PIC microcontroller decide to use: PIC16F877A. Compiler: MPLAB (Is PIC16F877A suitable for this kind of project?)
Objective:
Light up an LED & activate the DC motor if the sound level is above a certain dB (Need to differentiate at lease 2 different level of dB). (Only use 1pc. of PIC16F877A without any other IC, is it feasible?)
Draft Flow Chart:
Microphone---> Amplifier--->LED/ DC Motor (This flow correct?)
Here is a circuit that converts the analogue output of a microphone to a digital signal. **broken link removed**
The level can be controlled by the voltage-dividers on the base of the second transistor. If you want two different levels, you will need two "second stages" with the appropriate adjustments on the bases.
I realise that, but I am not going to waste more time in providing code etc when 90% of the time the original poster doesn't even have the decency to reply to anything that is presented on this forum.
Then don't post anything, that junk circuit does nothing without junk code. You have successfully wasted the time of EVERY user that read your post, not just the original poster.
I might openly mock a person here, I would however never do it in the guise of information.