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?

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

Last updated at Posted at 2024-09-16

x 過去ログを見ょ!!

参考

o_coq411.jpg

Grove Starter Kit for BeagleBone Green

販売コード 109796

結果

o_coq414.jpg

o_coq415.jpg

o_coq416.jpg

プログラム
pinAdcを変更した



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

const int pinAdc = 15;

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?