The SparkFun ESP8266 Thing - Dev Board is a comprehensive development platform for the ESP8266, which is a highly integrated Wi-Fi SoC (System on Chip) that offers a self-contained networking solution. It enables users to add robust and versatile Wi-Fi capabilities to their projects with minimal hassle. Common applications include Internet of Things (IoT) devices, home automation, sensor networks, and Wi-Fi enabled prototypes.
Pin Number | Function | Description |
---|---|---|
1 | TX | UART transmit (connects to RX of USB-to-serial adapter) |
2 | RX | UART receive (connects to TX of USB-to-serial adapter) |
3 | RST | Reset (active low) |
4 | CH_PD | Chip Power-Down (active high) |
5 | GPIO0 | General-purpose I/O and bootstrapping 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 input |
18 | GND | Ground |
Powering the Board:
Programming the Board:
Connecting to Wi-Fi:
WiFi.begin(ssid, password)
function to connect to a network.Interfacing with Sensors and Actuators:
Board not connecting to Wi-Fi:
Board not recognized by the computer:
Unable to program the board:
#include <ESP8266WiFi.h>
const char* ssid = "yourSSID";
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.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Your code here
}
Remember to replace yourSSID
and yourPASSWORD
with your actual Wi-Fi network's SSID and password. This code initializes the Wi-Fi connection and, once connected, prints the local IP address to the serial monitor.