Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
No. Please do EXACTLY what I asked or stop wasting my time.
At this point I'd be more concerned with getting valid ADC readings in a range you can deal with, which I'm not sure you've proved yet.the formula responds very well to different volume levels using 128 samples of audio the converting to dB using the regression method.
This works but not as close to the actual value of decibels as using the regression method
ADC=(11.003 * db)-83.2073
dB=(ADC + 83.2073)/11.003
Maybe he do not understand it. After many failures, he will accept it. Its part of learning process.Everyone suggesting the same thing and the OP completely ignoring. I'm still of my opinion.
Mike.
[code]
/*
modified on Sep 8, 2020
Modified by MohammedDamirchi from Arduino Examples
https://electropeak.com/learn/
*/
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
}