This project demonstrates how to set up an ESP32 as a Wi-Fi Access Point that hosts a web server. The server allows you to remotely control GPIO 15 (connected to pin 13 in code) via a simple HTML interface with ON/OFF (HIGH/LOW) buttons.
When connected to the ESP32 Access Point and visiting its IP address, youβll see a web page with buttons to control GPIO 15:
[ HIGH ] [ LOW ]
markdown Copy Edit
- ESP32 runs in Access Point mode β no external Wi-Fi network needed.
- Built-in web server on port 80.
- Simple HTML interface to control a GPIO pin.
- Useful for basic home automation or IoT control experiments.
- ESP32 development board
- LED, Relay module, or any output device connected to GPIO 15 (pin 13 in code)
- USB cable for programming
- WiFi.softAP(): Sets up the ESP32 as an access point with SSID
ESP32_APand password12345678. - WiFiServer: Hosts a basic HTTP server.
- GPIO 15: Controlled based on HTTP requests
/HIGHand/LOW.
- Flash the Code to your ESP32 using Arduino IDE or PlatformIO.
- Connect to ESP32 Wi-Fi Network
- SSID:
ESP32_AP - Password:
12345678
- SSID:
- Open a browser and go to:
http://192.168.4.1 - Click the buttons to toggle GPIO 15 HIGH or LOW.
main.inoβ Source code for the ESP32 web serverREADME.mdβ Project documentation
- GPIO 15 (pin 13 in the sketch) is used for control. Modify
controlPinif you want to use another pin. - Web interface is minimal and responsive; can be expanded for more GPIOs.
This project is open-source and available under the MIT License.
Made with β€οΈ using ESP32