Sunday, September 29, 2019

Testing the Installation of ESP32

ทำการเชื่อมต่อ ESP32 board ไปยัง computer ของคุณ และทำการเปิด Arduino IDE แล้วทำตามเป็น step by step

1. เข้าไปเลือก Board ของคุณ โดย Tools > Board menu (เลือกชื่อบอร์ดนี้ DOIT ESP32 DEVKIT V1 )



Arduino IDE select the ESP32 board in Tools menu
2. ทำการเลือก Port (ถ้า COM Port ของคุณมองไม่เห็น คุณต้องติดตั้ง COM Port ของ Arduino โดย download จาก link นี้ CP210x USB to UART Bridge VCP Drivers):


Arduino IDE select the ESP32 Port in Tools menu
3. เปิดตัวอย่างต่อไปนี้ File > Examples > WiFi (ESP32) > WiFiScan


Arduino IDE open WiFiScan example for ESP32
4.  Arduino IDE จะเปิดหน้าต่างพร้อม code ตัวอย่างออกมา


Arduino IDE uploading WiFiScan example to ESP32
5. กดปุ่ม Upload ใน the Arduino IDE  รอสักไม่กี่นาที code สมบูรณ์แบบและ upload ไปยัง board ของคุณ
6. หากทุกอย่างเป็นไปตามคาดคุณควรเห็นข้อความ “Done uploading.” message.


Arduino IDE done uploading ESP32 WiFiScan sketch
7. เปิด Arduino IDE Serial Monitor ขณะที่ baud rate เป็น 115200
Open Arduino IDE Serial Monitor at baud rate 115200
8. กดปุ่ม Enable (EN) บนบอร์ด ESP32 และคุณควรเห็นเครือข่ายพร้อมใช้งานใกล้กับ ESP32 ของคุณ

No comments:

Post a Comment