Labels

Friday, 26 April 2013

MDDN 251: Audio Input

So i got an electret Mic with a 100x amplifier attached that i can connect up to create the audio input. When connected to the arduino however, there is an issue with the digital output in the serial monitor. the numbers it outputs are as follows:


814
815
814
820
818
819
814
814
814
813
816
813
814
816
814
816
814
814
813
815
813
814
815
814
814
811
811
813
811
809
812
809
810
810
809
809
810
809
808
811
809
808
809
811
810
808
809
810
810
811
809
812
811
813
809
812
810
812
810
810
813
811
811
812
811
809
813
812
809
811
811
809
812
811
809
808
808
807
810
810
811
808
806
807
806
809
806
809
806
808
809
812
806
806
808
809
809
808
807
808
807
806
808

Now this is good, its actually picking up something, but at the same time, its picking up nothing. During that bracket out output, i shouted, i clapped, i turned on loud music, and yet the numbers remain the same. The code im using for it is a simple serial monitor output code:

int sensorValue;

void setup()
{
   Serial.begin(9600);
}

void loop()
{
    sensorValue = analogRead (0);
    Serial.printIn (SensorValue, DEC);
    delay (100);
}

This code seemed simple enough, and it should show results right? But no matter what i do right beside the microphone, the number output doesn't change so it isn't registering what i'm doing.. Also, i copied the diagram that it showed me on how to wire up this particular microphone to the wire. I'm stuck..

No comments:

Post a Comment