Build Circuit Using PIC Microcontroller

Status
Not open for further replies.

young707082

New Member
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?)

All talents... Please help... Thanks in advance!
 
Last edited:
Use only one Pic chip - yes - use only one ic ?

Your mic will probably need an amplifier, as you show in your flowchart - this could be transistors or an op amp ic.

A Pic can drive a led directly but a dc motor ( size not given ) needs extra transistors or an ic to drive it.

Mic - Amplifier - PIC adc conversion, level control, output control - led / motor
 
Guys can you help me find a schematic diagram for PIC16F877A, based on the above project that I intending to do? Thanks!
 

please xplain what a oopic microcontroler is?????????? n hw can we learn matlab????????
 
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.
 
Last edited:
Colin, schematics for circuits that use PIC's are completely useless without the code that run's on it...
 
Colin, schematics for circuits that use PIC's are completely useless without the code that run's on it...

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.
 
i totally don't have idea...because i'm very fresh & fool in electronics & programming...hopefully can get some reference...
 
what is 4v2?
Just as 4K7 is 4700 ohm, I would guess 4v2 is 4.2 volts.

The logic (digital IO levels) of the PIC depends on what the PIC requires for VDD (power).

A PIC with 5V VDD will use 5V and 0V
In general the high IO voltage is the same as VDD
so a 3.3V PIC will use that as a logical 1.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…