LM358 microphone amplifier

used products:

1. LM358

content:

Çeşme https://lowvoltage.wordpress.com/2011/05/21/lm358-mic-amp/ https://lowvoltage.wordpress.com/2011/05/15/min-max-sketch/

Arduino:

const int analogPin = 0; void setup() { Serial.begin(9600); } void loop() { int mn = 1024; // mn only decreases int mx = 0; // mx only increases // Perform 10000 reads. Update mn and mx for each one. for (int i = 0; i < 1000*9*3; ++i) { int val = analogRead(analogPin); mn = min(mn, val); mx = max(mx, val); } // Send min, max and delta over Serial Serial.print("m="); Serial.print(mn); Serial.print(" M="); Serial.print(mx); Serial.print(" D="); Serial.print(mx-mn); Serial.print(" millis="); Serial.print(millis()); Serial.println(); }