.商品簡介:
這款轉接板用在ESP-01開發板上,把複雜的ESP-01接腳轉換為 TTL Serial界面,使其更容易把ESP-01接駁到Arduino上,板上還帶有 3.3V穩壓電路和電平轉換器,可以直接連上Arduino的5V接腳,它使ESP-01很簡單地成為Arduino的WiFi收發器,讓Arduino輕鬆連接WiFi無線網絡。
.主要用途:
把複雜的ESP-01接腳轉換為 TTL Serial
.延伸應用:
為Ardiuino輕鬆連接WiFi無線網絡
.商品特色:
板上帶有 3.3V穩壓電路和電平轉換器,可以直接連上Arduino的5V接腳。
.商品規格:
尺寸:42*24*11mm
重量:4g
運作電壓:4.5~5.5V
運作電流:0-240mA
.商品包含:
1 x ESP-01 to TTL Serial 轉接板
1 x ESP-01S (ESP8266 WiFi 開發板) (選購)
・示範短片:
・程式範例:
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();
}