> For the complete documentation index, see [llms.txt](https://omorobot.gitbook.io/manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://omorobot.gitbook.io/manual/product/omo-r1mini/esp12/undefined-1.md).

# ESP12와 PC의 연결

## 아두이노와 최초 연결

먼저 [아두이노 공식 사이트](https://www.arduino.cc/)에서 아두이노를 다운로드 받아서 실행합니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2LimIpOWsVUod8BKA%2F-MP2NrUSrdLhdIPJnvde%2Fimage.png?alt=media\&token=70241aa0-01bb-4c2f-a46a-4bcfaa806a48)

Preferences를 열고, 아래 그림에서 추가적인 보드 매니저 URLs의 표시된 부분을 클릭한 다음

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2LimIpOWsVUod8BKA%2F-MP2OfaGZL5NhWV_9Z6s%2Fimage.png?alt=media\&token=540fd40e-4356-4b06-a9da-e4622da65d5e)

json 파일의 경로를 아래 그림처럼 추가합니다.

```
http://arduino.esp8266.com/stable/package_esp8266com_index.json
```

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2LimIpOWsVUod8BKA%2F-MP2OZTkWd4Aiyo5rNZ-%2Fimage.png?alt=media\&token=6caf6ca2-3722-4098-a29d-179a7865335a)

이제 보드 매니저를 엽니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2LimIpOWsVUod8BKA%2F-MP2PJnHITYw4umHNhmR%2Fimage.png?alt=media\&token=09386e69-0355-45c5-b959-4e27a9de38fa)

esp8266을 검색한 다음 설치해줍니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2LimIpOWsVUod8BKA%2F-MP2PV8flDC9DNd80_yA%2Fimage.png?alt=media\&token=586f7a12-3f88-47c1-bb0a-814b6b52fda8)

그 후 생성 된 보드 매니저의 ESP 항목에서 NodeMCU 1.0 ESP-12E를 선택합니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2LimIpOWsVUod8BKA%2F-MP2Q-E1pcDGDL2WtU-7%2Fimage.png?alt=media\&token=c1f26a49-7661-4496-a54a-e15e1bdefeb3)

그리고 여러분의 PC와 연결된 포트를 지정해 줍니다.

## Hello World - LED Blink

아두이노와 PC가 연결된 상태에서 파일 -> 예제 -> ESP8266 -> Blink를 선택합니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2T0os50w0Wg1E8ozp%2F-MP2YpZey_Q2L-tEAsqi%2Fimage.png?alt=media\&token=70a65afe-2d6b-4cd9-87c9-b7ce43c54111)

그리고 컴파일 & 업로드를 선택해서 프로그램을 업로드 합니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2T0os50w0Wg1E8ozp%2F-MP2Z9Rywp1cuSKr_MPa%2Fimage.png?alt=media\&token=3c1f70be-fa4a-49d1-bd08-b18ebdb8dbea)

성공하면 아래 그림처럼 **업로드 완료**라는 글자가 나타납니다.&#x20;

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2T0os50w0Wg1E8ozp%2F-MP2ZKLmApcYTlLszWkJ%2Fimage.png?alt=media\&token=64168ab9-6956-45e2-b3ce-f225c1393dbc)

그러면 ESP12보드의 내장 LED가 깜빡거리는 것을 확인할 수 있습니다.

![](https://491696592-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK7gxD_6rkqAewni4tk%2F-MP2T0os50w0Wg1E8ozp%2F-MP2_7_LvpDcj13VfLsM%2Fscreencast%202020-12-21%2013-34-31.gif?alt=media\&token=455d9d69-9176-42d0-8542-552e3a3b5ec0)

이제 R1mini를 ESP12보드를 통해 아두이노로 제어할 준비가 되었습니다.
