소리센서

BABY CAT·2023년 7월 17일
0

Arduino

목록 보기
20/28
const int SOUND_SENSOR_PIN = A0;

int sensorValue;

 

void setup() {

 Serial.begin(9600);

}

 

void loop() {

 sensorValue = analogRead(SOUND_SENSOR_PIN);

 Serial.println(sensorValue);

 delay(500);

}

1개의 댓글

comment-user-thumbnail
2023년 7월 18일

유익한 글 잘 봤습니다, 감사합니다.

답글 달기