The D1mini with Power Adapter is a compact development board designed by Wemos, which integrates the ESP8266 WiFi module. This board is particularly suitable for Internet of Things (IoT) projects due to its wireless capabilities and ease of use. It can be powered through a micro USB port, which allows for convenient connection to a power adapter or a computer.
Pin | Function | Description |
---|---|---|
TX | TXD | UART transmit pin, used for serial output |
RX | RXD | UART receive pin, used for serial input |
A0 | Analog Input | Analog input, max 3.2V input |
D0-D8 | GPIO | General Purpose Input/Output pins |
G | Ground | Ground connection |
5V | 5V Input | 5V power input from USB or power adapter |
3V3 | 3.3V Output | 3.3V power output to external components |
RST | Reset | Resets the microcontroller |
#include <ESP8266WiFi.h>
// Replace with your network credentials
const char* ssid = "your_SSID";
const char* password = "your_PASSWORD";
void setup() {
Serial.begin(115200);
// Connect to Wi-Fi
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to WiFi network with IP Address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Put your main code here, to run repeatedly:
}
Q: Can the D1mini be powered by batteries? A: Yes, it can be powered by batteries, but ensure the voltage is regulated to 5V for the USB input or 3.3V if directly supplying the board.
Q: Is the D1mini compatible with all Arduino libraries? A: Most libraries that do not rely on specific hardware features of other Arduino boards should work with the D1mini. Always check the library documentation for compatibility.
Q: How do I reset the D1mini to factory settings? A: You can reset the D1mini by uploading an empty sketch or by using the on-board reset button.
For further assistance, consult the Wemos community forums or the extensive online resources available for the ESP8266.