2주 차 Arduino IDE 2.0 설치, ESP32연결, 내장 LED 점멸 실습 - park-02/2024-1_Smart-Devices GitHub Wiki
- Arduino IDE 설치방법
- ESP32연결 방법
- LED 점멸 실습
- 실습내용
- 소스코드
- 실행
- 결과
- 번외-시간을 바꾸면 어떻게 될까?
- 후기
1. 사이트에 들어가 줍니다.
https://www.arduino.cc/en/software
![](https://private-user-images.githubusercontent.com/163229907/312454274-6d0a4770-a9ba-46b9-8555-1ee8c8177420.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDU0Mjc0LTZkMGE0NzcwLWE5YmEtNDZiOS04NTU1LTFlZThjODE3NzQyMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zOTQxYzBkOGNmOWU5NWU5YzhhODg3ZmVjYjZmZmRlYWExNzBjMDEzZmMwMWM3MWYzNmNiMGMxMzZkNGY3YWFjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8hBQAMWLCXrsvDrHMws8y5Oe9WtopXH2gZ-M_IvY1sA)
2. JUST DOWNLOAD 눌러줍니다.
![](https://private-user-images.githubusercontent.com/163229907/312456397-2648d847-6ae8-4ba0-b8d3-e09f4d81b579.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDU2Mzk3LTI2NDhkODQ3LTZhZTgtNGJhMC1iOGQzLWUwOWY0ZDgxYjU3OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZWQ0YTdiMTJhMWUzYmY4ZmQwYTg2Zjc0Zjk5ZWJlZGY1ZjZlMzc5MzcxMzcxMWJiOGUzYWM0YzllOWNjZjI5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.E_nob5HroDJG3r25R9vg0nwYTkcxyd_prFYb18Zu7Z8)
3. JUST DOWNLOAD 누르면 자동으로 다운로드 됩니다.
![](https://private-user-images.githubusercontent.com/163229907/312457276-7545c3f8-9afc-422f-967b-952954e04c8d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDU3Mjc2LTc1NDVjM2Y4LTlhZmMtNDIyZi05NjdiLTk1Mjk1NGUwNGM4ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZDkxNDExNDAyYzkxZjg3ZjYzNDM3ZWY1NTM0MWNlYmExMWY2ZjFlZDZhZjQ1OWM2ZGZjMTU0ZWZhZjBkZmNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.TZpLl-i2Zf5-LRJQa2RHXeNQnilL2NwLcZA_wKH1UIA)
4. 다운로드가 완료되면 동의함을 눌러줍니다.
![](https://private-user-images.githubusercontent.com/163229907/312458226-0255d698-da5e-437e-b8d5-dac30f7717ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDU4MjI2LTAyNTVkNjk4LWRhNWUtNDM3ZS1iOGQ1LWRhYzMwZjc3MTdhZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NjRmODVmNzQ5NGVmMzU5Y2JhMzkzNTYwOTBjNDM1NzJlODRiNjc4OWE5NTY1MjE4ZTI3ZjU4Y2UxMDRjNmI5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.uKFhc6Xf25v0UgyliIRPA80UUrNWsI7AjP2MFJbOTzk)
5. 전용에서 모든 사용자로 변경 후 다음 버튼을 눌러줍니다
![](https://private-user-images.githubusercontent.com/163229907/312459448-7f4eef83-0ec9-4554-9dc3-d84819d11b9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDU5NDQ4LTdmNGVlZjgzLTBlYzktNDU1NC05ZGMzLWQ4NDgxOWQxMWI5Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05YWU2ZDliYzQzOTFjMzY5ODE5ZTZiYzlmYTU1YmJkZDlmOTNjMWJhNjYwZDU1Y2U4YjI1M2U4NmUxODMxOGM0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.c8UQ_QlVDzX3GVSbhgBoaB9llX1WHmtTrVH9rb39pZI)
5. 동의함을 눌러줍니다.
![](https://private-user-images.githubusercontent.com/163229907/312460085-29f844a7-bd58-4078-a24e-9c1d5c5de294.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDYwMDg1LTI5Zjg0NGE3LWJkNTgtNDA3OC1hMjRlLTljMWQ1YzVkZTI5NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjEzMzVhMjI4NTMxMGViY2UzNjc0NzU4NmMyOTdkYjVhMTEzYTU5NWUxZmJmZDhlMTM4NGQ1NDE4OTA4NzkyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.SwFgroiHfdb99UgG0YW4Hoywc7iqKyBgBPoSSPG_NYA)
6. 설치를 눌러줍니다
![](https://private-user-images.githubusercontent.com/163229907/312461441-6ae641d4-4b28-4e22-b5dd-4b7bfe448a3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDYxNDQxLTZhZTY0MWQ0LTRiMjgtNGUyMi1iNWRkLTRiN2JmZTQ0OGEzYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMTUxMmVlZjk4ZDM0N2I5NWFhZGU0MmEzZmFiYjJhYzQwOWJiMGQ1NjYzNjJiN2Y1N2I1MDQwZmY5ZDViYjAxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tF2vnsR277g4U7B07gfsoccqTCIhntnYAWJApmuP7qc)
7. 설치가 끝나고 마침을 누르면 설치하기 4번이 더 뜨고 다 설치를 누르면 Arduino IDE가 자동으로 실행이 됩니다.
![](https://private-user-images.githubusercontent.com/163229907/312462723-63c73f9a-f140-4df0-8fc4-67beda3418a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDYyNzIzLTYzYzczZjlhLWYxNDAtNGRmMC04ZmM0LTY3YmVkYTM0MThhNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3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yBdUdBbVaRre5Rs_95vG-Z_NKhFfge1Ka8CHR_7Q)
2. 에디터 빠른 제안 체크 후 추가 보드 관리자 URL에 "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" 입력해 줍니다.
![](https://private-user-images.githubusercontent.com/163229907/312466360-aa4d0cca-b439-47d5-8345-9aab833b9f3f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDY2MzYwLWFhNGQwY2NhLWI0MzktNDdkNS04MzQ1LTlhYWI4MzNiOWYzZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNTM4NTE1NTI5ODFjMmQxN2VlYTE0YTgwMTcyMzVmODg0MGE4ODhjZjQ0ZTZhNjRlYjZiNmQ0MjFlOWQwNDgxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ZwHpc3XPD8fhRv6zaWgtGm3a7loNGoIwXtc8Zir_bag)
3. 사이드 탭에서 보드 매니저 선택.
![](https://private-user-images.githubusercontent.com/163229907/312467147-34371c48-b9ea-4cf1-b3d7-b2776fe1b53e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDY3MTQ3LTM0MzcxYzQ4LWI5ZWEtNGNmMS1iM2Q3LWIyNzc2ZmUxYjUzZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjNjNjliNmM4ZjMxMTNhZmFhN2EyYWJkYTY5YzE4NDEwNGEyYzlkOWFjZTg5MzEyOTE3NmE5ZDc1ODM1NTcyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Bcx27D67FDPKrFkffNrwAC8zHvOVVYk94WFdF0TSihs)
4. 필더 검색에 "esp32 검색 후 꼭 "esp32 by Espressif" 설치하기.
![](https://private-user-images.githubusercontent.com/163229907/312467946-a71e6660-6096-4fc7-8e2a-e3132fbdac1b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDY3OTQ2LWE3MWU2NjYwLTYwOTYtNGZjNy04ZTJhLWUzMTMyZmJkYWMxYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NjkxYzY3OGIzOWM1Yjc4YzE1MGIyYmNjZTYyMWJiMmFmZGE2NTI4NmEwMjU1NmQ0ZWEyOTg0MTBiNzM4OGI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ni9zh6iI74jcPkpeepWnXdMH_8Tu89SQwAU2jrfLi0c)
5. 아래 사이트에 들어가서 CP210x 드라이버 다운로드하고 압축을 풀어 줍니다.
https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads
![](https://private-user-images.githubusercontent.com/163229907/312471683-34a2d610-6e85-43ef-9669-d0c3f6035477.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDcxNjgzLTM0YTJkNjEwLTZlODUtNDNlZi05NjY5LWQwYzNmNjAzNTQ3Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kYWI1NjU2NzBlZTZhZWEzYjAxMWU2MmY0OGUyZjkxNjg4ZWJlODE0MDJkMGY1MDA1NDFlYWE4ODdmZDg3YmY4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.unre0O1b5Asmduc_Czla8pZanQcu-Aiy40_SNj-ADm0)
6. 장치 관리자에 들어가 기타 장치 (CP2102 USB to UART Bridge Controller) 우클릭 후 드라이버 업데이트를 눌러 줍니다.
![](https://private-user-images.githubusercontent.com/163229907/312473111-d287459f-8755-41d1-978d-fec598b51748.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDczMTExLWQyODc0NTlmLTg3NTUtNDFkMS05NzhkLWZlYzU5OGI1MTc0OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZDJiNTk0YTMxMzgzZjBhMDlkMTllOGViMjdmYTU3YTIxMTYxMDU3NjIzYzI0YzQ0MGUxODU4NDgzODQ4YTVlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.LjL_wyW6uBS1v4ve9K7q_xsPMzlD3p_rnCxLk5-eURs)
7. 내 컴퓨터에서 드라이버 찾아보기 .
![](https://private-user-images.githubusercontent.com/163229907/312473750-3946d645-9a3a-476a-bd97-60f1fec7750c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDczNzUwLTM5NDZkNjQ1LTlhM2EtNDc2YS1iZDk3LTYwZjFmZWM3NzUwYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNjA1NTBkMmNiNzMyMWQ5MDU1NjBkY2I4MDhjNDg4NGM0YzEwNDdkYWUzZjcxZmQ3YTM0ZGZjMDc0OTIzYTI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0wLBIsRxupBKAToCukWJt5zzmn4_U2cn2sZhn_3d7Oc)
8. CP210x 드라이버 다운로드하고 압축 푼 파일을 찾아서 확인을 눌러 줍니다.
![](https://private-user-images.githubusercontent.com/163229907/312474984-c651dcd1-0a15-4bd7-9733-1728cffa41f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDc0OTg0LWM2NTFkY2QxLTBhMTUtNGJkNy05NzMzLTE3MjhjZmZhNDFmMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZjYxNTBiN2ZlMDg2NGNhN2FkMzIzMDBlZjhiNWMyYWZlNGJlOGM2MTE5Njk1MWZiMDYxMTE0YzhiNDhjYWIyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.inRsuQ7gxlduraFc4sdd1CGDGrrcCkRHQOSEQYN1mVs)
9. 다음을 눌러 주면 설치가 끝납니다.
![](https://private-user-images.githubusercontent.com/163229907/312475420-5e4c044a-2c26-4084-8164-b40440fa6ece.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDc1NDIwLTVlNGMwNDRhLTJjMjYtNDA4NC04MTY0LWI0MDQ0MGZhNmVjZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZh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cG9faWQ9MCJ9.TnKT65UZ1LDkMGoC2whWF9WUJ_7e7n75-PLTzlgipiA)
11. 검색에 doit 검색 후 DOIT ESP32 DEVKIT V1 -> COM3 Serial Port(USB) -> 확인.
![](https://private-user-images.githubusercontent.com/163229907/312477195-1146c2ea-4f9a-4d6a-b1a5-1269d0717190.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxODYwMTIsIm5iZiI6MTcyNTE4NTcxMiwicGF0aCI6Ii8xNjMyMjk5MDcvMzEyNDc3MTk1LTExNDZjMmVhLTRmOWEtNGQ2YS1iMWE1LTEyNjlkMDcxNzE5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMDE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mY2VjYzNlMTI1ZjQwMjIyYjhlNDc0NjE0ZGY5MThkNTBiOTNhMjdmYWNjMjZlZGU3Yzk1NzE4ZWZjNzQ5YmMwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ABZsE_tc1YHizV8Kwh4SujDaeQdRt3EuZSGJNwG0rUU)
오늘 해볼 실습은 Arduino IDE를 활용하여 소스 코드를 작성하고 ESP32의 내장 LED가 일정 시간 동안 켜지고 꺼지는 것을 반복하는 것입니다.
int LED_BLUE = 2; // LED가 연결된 핀 번호는 2입니다.
void setup() {
pinMode(LED_BLUE, OUTPUT);
}
void loop() { // 반복 실행합니다.
digitalWrite(LED_BLUE, HIGH); // LED를 켭니다.
delay(1000); // 1초 동안 대기합니다.
digitalWrite(LED_BLUE, LOW); // LED를 끕니다.
delay(1000); // 1초 동안 대기합니다.
}
- 이 코드는 setup() 함수에서 LED_BLUE 핀을 출력으로 설정하고, loop() 함수에서 LED를 1초 간격으로 깜박입니다. 처음에 LED가 켜지고 1초 후에 LED가 꺼지며, 다시 1초 후에 LED가 켜지고 이를 반복합니다.
- ESP32 보드를 컴퓨터에 연결합니다.
- Arduino IDE에 소스코드를 컴파일하고 업로드합니다.
- LED가 1초 간격으로 켜지고 꺼지는 것을 반복합니다.
KakaoTalk_20240313_230707736.mp4
- LED가 1초 간격으로 켜지고 꺼지는 것을 확인합니다.
1초가 아닌 3초와 0.5초도 해봤습니다.
소스코드
int LED_BLUE = 2; // LED가 연결된 핀 번호는 2입니다.
void setup() {
pinMode(LED_BLUE, OUTPUT);
}
void loop() { // 반복 실행합니다.
digitalWrite(LED_BLUE, HIGH); // LED를 켭니다.
delay(3000); // 3초 동안 대기합니다.
digitalWrite(LED_BLUE, LOW); // LED를 끕니다.
delay(3000); // 3초 동안 대기합니다.
}
KakaoTalk_20240318_191716929.mp4
결과
- LED가 3초 간격으로 켜지고 꺼지는 것을 확인합니다.
소스코드
int LED_BLUE = 2; // LED가 연결된 핀 번호는 2입니다.
void setup() {
pinMode(LED_BLUE, OUTPUT);
}
void loop() { // 반복 실행합니다.
digitalWrite(LED_BLUE, HIGH); // LED를 켭니다.
delay(500); // 0.5초 동안 대기합니다.
digitalWrite(LED_BLUE, LOW); // LED를 끕니다.
delay(500); // 0.5초 동안 대기합니다.
}
KakaoTalk_20240318_191709121.mp4
결과
- LED가 0.5초 간격으로 켜지고 꺼지는 것을 확인합니다.
ESP32를 활용하여 내장 LED가 켜지고 꺼지는 동작을 확인하면서 LED 점멸 실습을 통해 기초적인 하드웨어와 소프트웨어 개념을 익히고, 하드웨어를 제어하는 것을 체험할 수 있었습니다. 이러한 실습을 통해 하드웨어 프로그래밍에 대한 지식을 습득하고, 앞으로 더 복잡하고 심화적인 내용에 도전해 보고 싶습니다.