This project demonstrates how to connect an ESP32 to a WiFi network and display the connection status along with the assigned IP address on an SSD1306 OLED display.
The project is simulated using Wokwi and can also be deployed on a physical ESP32 board.
- Connects ESP32 to a WiFi network
- Displays connection progress on the OLED screen
- Shows WiFi connection status
- Displays the assigned IP address
- Prints connection details to the Serial Monitor
- Compatible with Wokwi simulation
| Component | Quantity |
|---|---|
| ESP32 DevKit V1 | 1 |
| SSD1306 OLED Display (128x64, I2C) | 1 |
| Jumper Wires | As Required |
| OLED Pin | ESP32 Pin |
|---|---|
| VCC | 3.3V |
| GND | GND |
| SDA | GPIO 21 |
| SCL | GPIO 22 |
- WiFi.h
- Wire.h
- Adafruit GFX Library
- Adafruit SSD1306 Library
- The ESP32 initializes the OLED display.
- A "Connecting WiFi..." message is shown.
- The ESP32 attempts to connect to the configured WiFi network.
- Once connected:
- The OLED displays "WiFi Connected".
- The assigned IP address is shown.
- The same information is printed to the Serial Monitor.
OLED Display:
WiFi Connected
IP:
192.168.1.100
Serial Monitor:
WiFi Connected
192.168.1.100
This project can be simulated using Wokwi.
- Create a new ESP32 project in Wokwi.
- Add an SSD1306 OLED display.
- Connect the OLED according to the circuit table above.
- Upload the code.
- Run the simulation.
- IoT device status monitoring
- Network connectivity indication
- Smart home projects
- ESP32 learning and experimentation
- OLED display interfacing practice
Kritish
