Thinking Different




 

 

아두이노와 WIFI 모듈을 활용한 무선 인터넷 통신을 해보도록 하겠습니다.

 

일반적인 아두이노 wifi 모듈에는 ESP-01 이 있으며 이를 편리하게 사용하기 위한 인터페이스 어뎁터로 ESP-8266 이 있습니다. 

 

esp-01 모듈을 사용하면 5v 전압을 인가해주어야 하며, wifi 모듈을 따로 펌웨어 업데이트를 할 필요는 없습니다.

 

 

 

회로도

아두이노 wifi 모듈 연결 배선

아두이노

ESP-01 어댑터

5V

VCC

GND

GND

2

TX

3

RX

 

코드

 

결과

 

위 명령어중 AT+CWMODE 에 대해서 간단히 설명합니다.

 

1. Station mode: 공유기(AP)에 접속하는 기기로 동작하는 모드 입니다.

2. AP mode: ESP8266 모듈이 Access Point(공유기)가 되는 모드입니다.

3. AP + Station mode: AP와 client 둘 다 됨 (1, 2) 둘다 되는 모드입니다.

 

 




위 명령어는 기본적으로 사용되는 명령어로써 좀 더 자세한 AT 명령어는 아래 링크를 통해서 확인해보시기 바랍니다.

room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/#AT

 

ESP8266 - AT Command Reference · room-15

ESP8266 - AT Command Reference 26 Mar 2015 | by fuho ESP8266, in it’s default configuration, boots up into the serial modem mode. In this mode you can communicate with it using a set of AT commands. I will present to you a reference of all known AT comma

room-15.github.io

github.com/espressif/ESP8266_AT/wiki/AT

 

espressif/ESP8266_AT

This project is not maintained, please use https://github.com/espressif/esp-at. - espressif/ESP8266_AT

github.com