0

I have an amplifier circuit for a microphone.The output of the circuit(the microphone signal amplified) is connected to the arduino A0 .Now the circuit works(I think ,the output voltage is 4.30 V) and the arduino serial monitor output 875 874... fluctuates with one or 1,2 or more points.The problem is that this value just goes down from 875....800.... .

Is it a correct value?(circuit taken from here http://wiring.org.co/learning/basics/microphone.html)

EDIT: If I put my finger on it the values go up a bit like 792 ,794,800

Nick Gammon
38.9k13 gold badges69 silver badges125 bronze badges
asked Sep 1, 2015 at 16:35
3
  • Please post your code (edit the question to do this). Commented Sep 2, 2015 at 0:59
  • When does the value "just go down" ? Have you checked for a dodgy ground connection? Why have you tied pin2 to ground? (Your code looks good) Commented Oct 2, 2015 at 12:08
  • While you may well have circuit problems, before investing in it realize that ADC samples from an Uno reported textually over serial won't be a very meaningful representation of audio. Commented Nov 1, 2015 at 17:08

2 Answers 2

0

The amplifier circuit you refer to puts out 2.5 volts even without input from microphone. The LM386 has internal circuitry to make the output 1/2 of the +5 volts. Then, audio signal goes above and below the 2.5 volts.

The amplifier circuit will only be putting out the PEAK of your audio signal (because D1 and C2 is a peak detector)

So, when all is quiet, take that ADC value as meaning zero microphone input.

answered Dec 31, 2015 at 16:48
0

This schematic contains also the OpAmp stage for a microphone. You could take it as reference against the design you are using. The LM386 is basically a more integrated version, iirc.

answered Sep 2, 2015 at 10:32

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.