1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

M5NanoC6でコンデンサーマイク入力、Grove - Sound Sensorで遊ぶ

Last updated at Posted at 2024-10-03

x 過去ログを見ょ!!

参考

o_coq411.jpg

結果

o_coq481.jpg

o_coq482.jpg

プログラム

pinAdcを変更した



// test code for Grove - Sound Sensor
// loovee @ 2016-8-30

const int pinAdc = 1;

void setup()
{
    Serial.begin(115200);
    //Serial.println("Grove - Sound Sensor Test...");
}

void loop()
{
    long sum = 0;
    for(int i=0; i<32; i++)
    {
        sum += analogRead(pinAdc);
    }

    sum >>= 5;

    Serial.println(sum);
    delay(10);
}



1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?