ARDUINO TO AVR
Forums
Hi is anyone able to help me convert this arduino code to avr. Trying to make a sound pressure level meter using the same idea as this link https://circuitdigest.com/microcontroller-projects/arduino-sound-level-measurement just need to change the code to avr. I am using the atmega 164p.
const int MIC = 0; //the microphone amplifier output is connected to pin A0
int adc;
int dB, PdB; //the variable that will hold the value read from the microphone each time
[original story: Circuit Digest]