[아두이노] ESP8266와 아마존 알렉사 연동

ESP8266 Alexa자료 중 링크의 fauxmoesp의 Github를 참조, 보드는 저렴한 WeMos D1사용


dff591c28e414dff63ee6e9bbf52c4c6.jpg
 

1. fauxmoesp Git Hub 소스 다운로드


2. ESPAsyncTCP  라이브러리 설치


WeMos D1 (ESP8266) 보드 사용으로 ESPAyncTCP 설치

231f18ef8784b59754f73e52cd153b19.jpg

3. ESP Async Web Server 라이브러리 설치


ESPAyncTCP의 Gib Hub페이지 하단 사용 라이브러리 링크 참조 

cecf5d99f2bbafed43934d7fd1338eda.jpg

4. fauxmoesp/examples/fauxmoESP_External_Server


제공된 Code fauxmoESP_Base는 오류 없이 포팅 되나 Alexa가 디바이스를 찾지 못함

fauxmoESP_External_Server는 Alext가 디바이스 검색 되며 동작 메세지 확인 


c4fea5ef863d6cfd77abcbc8137b556d.jpg
 

5. WIFI_SSID / WIFI_PASS 설정


예제 코드에서 credentials.sample.h 파일을 credentials.h로 변경

해당 파일의 WIFI_SSID / WIFI_PASS 값을 본인의 Wifi Network 환경으로 설정

fauxmoesp/src 폴더 내 파일을 모두 복사하여 예제 폴더로 복사 

bd5e6021dad1d1075db9dce8538dbe6b.jpg
 

6. 알렉사 동작 확인


알렉사 "alexa Discover Devices" 음성 명령을 내리면 잠시 후 2개의 Devices찾는다


다음 명령어를 수행해 본다.

Alexa Tun on kitchen

Alexa Tun off kitchen

Alexa Tun on livingroom

Alexa Tun off livingroom

 

명령어 수행시 Serial Monitor에 해당 명령어 출력되는 것을 확인 할수 있다.

c4a90ff69d2a0cb04dd2ff4ec3104989.jpg
  

7. 다음 도전 과제


기구 작업 후 집안 전자 기기의 On/Off에 도전 !!!







0
0
이 글을 페이스북으로 퍼가기 이 글을 트위터로 퍼가기 이 글을 카카오스토리로 퍼가기 이 글을 밴드로 퍼가기

메이커 스토리

번호 제목 글쓴이 날짜 조회수
49 아두이노 양변기 자동 물내림 장치-2 절전 모드/저 전력 모드 +2 icon 양재동메이커 05-09 28,193
48 아두이노 DIY Longboard Electrification icon 양재동메이커 04-29 22,915
47 아두이노 Automatic Model Train Control with Arduino icon 양재동메이커 04-11 23,936
46 아두이노 Remote Control Forklift Moves Minuscule Masses icon 양재동메이커 03-13 23,465
45 아두이노 DIY Radio-Controlled Hovercraft icon HelloMaker 03-09 21,826
44 아두이노 Build a Touchless Toilet Flusher with an Arduino icon 양재동메이커 03-06 21,008
43 아두이노 Chopsticks and Spoon Case Turned Into Pen-Style Oscilloscope icon 양재동메이커 03-04 22,566
42 아두이노 Semi-Automatic Milling Machine Control icon 양재동메이커 03-02 20,566
41 아두이노 Beautiful Multi-Voltmeter Clock icon 양재동메이커 02-25 20,425
40 아두이노 Build Your Own Secret Knock Escape Room Puzzle icon 양재동메이커 02-22 21,386
39 아두이노 DIY Multimeter Takes Five Different Types of Readings icon HelloMaker 02-20 20,785
38 아두이노 DIY Capacitive Touch Switching with GreatScott! icon HelloMaker 02-18 21,653
37 아두이노 Digital Clock Display Made From 24 Analog Clocks icon 양재동메이커 02-13 21,482
36 아두이노 3D-Printed Digital Spirit Level from GreatScott! icon 양재동메이커 02-10 20,324
35 아두이노 A Simple CNC Sandblaster icon HelloMaker 02-05 21,462
34 아두이노 CNC Paper Cutting Machine icon 양재동메이커 02-03 22,432
33 아두이노 Wind Thread Automatically with This DIY Machine icon 양재동메이커 01-27 22,238
32 아두이노 The Glass Roof Washing Robot icon 양재동메이커 01-25 21,129
31 아두이노 Automatic 3D Wire Bending Machine icon 양재동메이커 01-23 22,193
30 아두이노 Miniature Drawing Machine (Almost) Fits on Your Hand icon HelloMaker 01-22 23,528