The SparkFun ESP8266 Thing is a versatile development board that harnesses the capabilities of the ESP8266 Wi-Fi module, enabling Wi-Fi connectivity for a wide range of projects. This board is particularly useful for Internet of Things (IoT) applications, wireless sensor networks, and any project requiring remote data communication. Its compact design and powerful onboard processing make it ideal for prototyping and small-scale production.
Pin Number | Function | Description |
---|---|---|
1 | TX | UART transmit |
2 | RX | UART receive |
3 | RST | Reset pin |
4 | CH_PD | Chip power-down |
5 | GPIO0 | General-purpose I/O and programming mode pin |
6 | GPIO2 | General-purpose I/O |
7 | GPIO4 | General-purpose I/O |
8 | GPIO5 | General-purpose I/O |
9 | GPIO12 | General-purpose I/O |
10 | GPIO13 | General-purpose I/O |
11 | GPIO14 | General-purpose I/O |
12 | GPIO15 | General-purpose I/O |
13 | GPIO16 | General-purpose I/O, deep sleep wake-up |
14 | A0 | Analog input |
15 | SDA | I2C data line |
16 | SCL | I2C clock line |
17 | VCC | 3.3V power supply |
18 | GND | Ground |
Powering the Board:
Programming the Board:
Connecting to Wi-Fi:
WiFi.begin(ssid, password)
function to initiate a connection.Board not connecting to Wi-Fi:
Board not recognized by the computer:
Unable to program the board:
Q: Can I use the ESP8266 Thing with a battery?
Q: How do I update the firmware on the ESP8266?
Q: What is the maximum current draw of the ESP8266 Thing?
#include <ESP8266WiFi.h>
const char* ssid = "yourSSID"; // Replace with your network credentials
const char* password = "yourPASSWORD";
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.println("WiFi connected.");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Your code here
}
Remember to replace yourSSID
and yourPASSWORD
with your actual Wi-Fi network credentials. This code initializes the Wi-Fi connection and, once connected, prints the local IP address to the Serial Monitor.