ESP8266 คือ โมดูล WiFi ที่มีขนาดเล็ก ใช้พลังงานน้อย และ รองรับการใช้งาน ได้หลากหลายรูปแบบทั้ง Client, Access Point และ Client+AP วันนี้ทางร้าน Elec2You จะมาสอนวิธีทดสอบ โมดูล ESP8266 ใช้คำสั่งควบคุมการทำงานแบบ AT Command ทำให้เขียนโปรแกรมเชื่อมต่อได้สะดวก
การทดสอบจะใช้ Serial Port ของ บอร์ด UNO R3 ผ่าน Serial Port Monitor ที่โปรแกรม Arduino ได้เลยทำให้ง่ายต่อการทดสอบ
การเชื่อมต่อ ESP8266 กับ Arduino UNO R3
VCC ต่อ +3.3 V ของบอร์ด Arduino UNO R3
GND ต่อ Ground ของบอร์ด Arduino UNO R3
UTXD ต่อ PIN1(TX) ของบอร์ด Arduino UNO R3
URXD ต่อ PIN0(RX) ของบอร์ด Arduino UNO R3
CH_PD ต่อ +3.3 V ของบอร์ด Arduino UNO R3
ก่อนที่จะใช้ Serial Port Monitor เราต้อง upload โปรแกรมไฟกระพริบลงไปก่อน เพื่อไม่ arduino uno r3 ใช้ serial port
จากนั้นเปิด Serial Port Monitor ของโปรแกรม Arduino
ทดสอบคำสั่ง AT Commard กันเลย คำสั่งแรก
AT+RSTrestart the module
คำสั่งต่อมา
AT+CWLAP list the AP ตรวจสอบว่า Module ESP8266 เจอ AP ตัวไหนบ้าง
AT+CWMODE? wifi mode 1= Sta, 2= AP, 3=both
นี่เป็น AT Commard เบื้องต้นที่ใช้ทดสอบการทำงานของโมดูล ESP8266 ศึกษาคำสั่งเพิ่มเติมได้จาก
https://nurdspace.nl/ESP8266
ข้อมูลเพิ่มเติม
ESP8266 Serial WIFI Module
http://wiki.iteadstudio.com/ESP8266_Serial_WIFI_Module
http://www.electrodragon.com/w/Wi07c
ตัวอย่างการใช้งาน
http://www.instructables.com/id/Using-the-ESP8266-module/
The ESP8266 Becomes a Terrible Browser - http://hackaday.io/project/3072/instructions
New Working GCC for ESP8266 - http://www.esp8266.com/viewtopic.php?f=9&t=224
http://blog.iteadstudio.com/esp8266-use-android-phone-to-control-itead-rboard/
SDK for ESP8266 - http://hackaday.com/2014/10/25/an-sdk-for-the-esp8266-wifi-chip/
An ESP8266 Based Smartmeter - http://hackaday.com/2014/10/25/an-sdk-for-the-esp8266-wifi-chip/
Demos for ESP8266
https://github.com/itead/ITEADLIB-ESP8266
ขอบคุณครับ ที่แวะมาอุดหนุนทางร้าน