# \[아두이노] 부저 코드

### 코드

```
@아두이노 {핀 번호}번 핀 부저 {주파수}울리기
```

***

### 설명

<mark style="color:purple;">`부저 울리기`</mark>는 아두이노와 연결된 부저의 소리를 울리는 코드예요.

***

### 주의사항

* Data 핀은 디지털 핀(2\~13번 핀)에 연결해야 하고, 디지털 출력으로 핀 모드 설정을 먼저 해야 해요.
* 부저는 끌 때까지 계속해서 소리를 울려요.
* 끌 때는 주파수 0을 울리게 하면 돼요.

***

### 파이썬 대응 코드

아두이노 코드는 파이썬에 대응되는 코드가 없어 제공되지 않아요.

***

### 예시

{% code title="예시 코드" %}

```
@아두이노 11번 핀 디지털 출력 설정
@아두이노 11번 핀 부저 312울리기
1초 기다리기
@아두이노 11번 핀 부저 0울리기
```

{% endcode %}

{% code title="예시 코드의 결과" %}

```
(1초동안 부저가 312 주파수의 소리를 울림)
```

{% endcode %}

***

### 검색 키워드

초음파 피아노, 소리 재생, 스피커, 수동 부저, 능동 부저, 주파수


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codebook.horang.it/arduino/033.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
