Wi-Fi · lesson 2 of 3
Control the bench from your phone and your Mac
Its own firmware (wifi-lab-w2): everything from W1, plus a small web server: a REST API, a live WebSocket, a phone page at bench.local and a set-up network for joining Wi-Fi without a cable. A React + Node dashboard in esp-labs/apps/dashboard gives the same controls on your Mac, with live charts and firmware updates.
On the board
You will learn
- REST API
- WebSocket
- async web server
- captive portal
- OTA updates
- admin token
- React + Node
uv run pio run -d labs/wifi-lab-w2 -e wifi-lab-w2 -t uploadParts required
Parts library- ESP32-S3-DevKitC-1 + USB-C data cable
- 1.9″ ST7789 screen
- 2.4 GHz Wi-Fi network
- Smartphone (Bluetooth)
- Optional: Push button
How the pieces talk
Architecture diagram showing SoftAP + STA Wi-Fi mode, mDNS .local resolution, and an HTTP server on the ESP32-S3.
- Key concepts: REST API, WebSocket, async web server, captive portal, OTA updates, admin token, React + Node.
- Signals & pins: 3V3 (VCC), GPIO7 (BLK), GPIO8 (RES), GPIO9 (DC), GPIO10 (CS).
Interactive diagram loads after page initialization.
Steps
0 of 7 ticked. Ticks are saved in this browser.
Everyday controls are open to anyone on your home network: it's a bench toy. Reboot, forget Wi-Fi and firmware updates need the token, which lives on the chip and in the dashboard's .env (git-ignored), never in the browser. Page won't open? Type http://; on a FRITZ!Box tick “WLAN devices may communicate with each other”; on the Mac allow the browser under Privacy & Security → Local Network.
Preview: what you should see
Interactive phone and desktop browser control simulator communicating with the ESP32-S3 web server over Wi-Fi.
- Key concepts: REST API, WebSocket, async web server, captive portal, OTA updates, admin token, React + Node.
- Signals & pins: 3V3 (VCC), GPIO7 (BLK), GPIO8 (RES), GPIO9 (DC), GPIO10 (CS).
Interactive diagram loads after page initialization.
ESP32-S3 peripherals used in this lab
Open interactive GPIO pinoutExplore the hardware blocks, pin rules, and registers behind this experiment.
- GPIO and IO MUX
45 pins, and a matrix that routes almost any signal to almost any pin
- SPI
Fast four-wire bus for screens, card readers and flash
- Wi-Fi
2.4 GHz 802.11b/g/n, as a station, an access point or both
- UART
Three serial ports, the one you see in the serial monitor
- CPU
Two Xtensa LX7 cores at up to 240 MHz
- SRAM
512 KB of fast on-chip RAM for your code and data
Troubleshooting & hardware gotchas
See all 17 ESP32-S3 hardware gotchas- What if it does not work or behaves unexpectedly?
- Everyday controls are open to anyone on your home network: it's a bench toy. Reboot, forget Wi-Fi and firmware updates need the token, which lives on the chip and in the dashboard's .env (git-ignored), never in the browser. Page won't open? Type
http://; on a FRITZ!Box tick “WLAN devices may communicate with each other”; on the Mac allow the browser under Privacy & Security → Local Network. - Four pins are read at reset
- GPIO0, GPIO3, GPIO45 and GPIO46 are sampled the moment the chip comes out of reset: they pick the boot mode, the flash voltage, the ROM log and the JTAG source. Anything wired to them must not pull them the wrong way at power-up. After reset they are normal pins again.
- GPIO3 has no pull resistor at reset
- GPIO0 has a weak pull-up and GPIO45/46 weak pull-downs, but GPIO3 floats. When the eFuses make it choose the JTAG source, an outside circuit has to hold it at a clear level.
- ADC2 stops working while Wi-Fi is on
- The ADC2 channels (GPIO11-20) cannot be used at the same time as Wi-Fi: the radio shares ADC2 through an arbiter. Put analog sensors on ADC1 (GPIO1-10), as the sound labs do with GPIO6.
- GPIO47 and 48 run at 1.8 V on R16V modules
- Modules with the ESP32-S3R16V chip set the flash voltage to 1.8 V, and GPIO47/48 share that supply. A 3.3 V part on those pins sees the wrong levels.