ESP-01S (ESP8266 WiFi 開發板)

現在科技產品已經離不開網絡,這款ESP8266 WiFi 模組能夠把你的Arduino,添加上無線網絡功能,把Arduino製作成各種物聯網產品,也能夠把你的智能小車、機械人添加Wifi功能,透過無線網絡進行操控。

HK$30.00

庫存量: 尚有庫存

- +
貨號: esp-01s-esp8266-wifi-module 分類: , ,

.3D模型:

.商品簡介:
現在科技產品已經離不開網絡,這款ESP8266 WiFi 模組能夠把你的Arduino,添加上無線網絡功能,把Arduino製作成各種物聯網產品,也能夠把你的智能小車、機械人添加Wifi功能,透過無線網絡進行操控。

.主要用途:
– 為Arduino加上Wifi無線網絡功能
– 製作物聯網科技產品
– 為智能小車、機械人添加Wifi功能,透過無線網絡進行操控

.商品特色:
– 價格便易,性格比高
– 體積細少,方便嵌入到任何產品
– 商用級芯片,穩定性高

.商品規格:
尺寸:14*25*12mm
重量:2g
品牌:AI-thinker
型號:ESP-01
芯片:ESP8266
電壓:3.3v

.商品適用:
Arduino, Raspberry Pi

.商品包含:
1 x ESP-01S (ESP8266 WiFi 開發板)

・示範短片:

 
.程式範例:

#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> #ifndef STASSID #define STASSID "AP SSID" //The name of AP #define STAPSK "xxxxx" //Password #endif const char* ssid = STASSID; const char* password = STAPSK; ESP8266WebServer server(80); void handleRoot() { //Content displayed when a visitor enters the main page server.send(200, "text/plain", "Hello From ESP8266 !"); } void handleNotFound() { //The content displayed when the page is not found server.send(404, "text/plain", "File Not Found"); } void setup(void) { Serial.begin(115200); WiFi.mode(WIFI_STA); WiFi.begin(ssid, password); Serial.println(""); // Waiting for WiFi connection while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.print("Connected to "); Serial.println(ssid); Serial.print("IP address: "); Serial.println(WiFi.localIP()); //Display the IP in the monitor window if (MDNS.begin("esp8266")) { Serial.println("MDNS responder started"); } server.on("/", handleRoot); //Bind the program that will be triggered by the main web page server.onNotFound(handleNotFound); //Bind the program that will be triggered when the web page is not found server.begin(); Serial.println("HTTP server started"); } void loop(void) { server.handleClient(); MDNS.update(); }

您可能也喜歡…

購物車