- Fri Oct 02, 2009 6:35 pm
#82237
I want to read values from an LM386. The circuit is from "Physical Computing" p.357. I have made this a number of times with the same results; inconsistent figures, mostly 1~20. I assume the problem lies with the sketch. ADC is something of puzzle, even though I have read a number of descriptions. Would you please advise an alternative to: Code:
Code: Select all
void setup() {
Serial.begin(9600);
}
void loop() {
int soundLevel = analogRead(0) ;
Serial.print( "soundIn = ");
Serial.println(soundLevel, DEC);
delay (1000);
}