All projects

Connected device

Wi-Fi connected lamp (ESP32)

Intermediate40 min

A lamp controlled from a virtual phone: the ESP32 serves a page, receives commands and drives the output.

What you get

A switch and a brightness slider reachable from the simulated phone's browser.

Parts (simulated)

  • ESP32 board
  • LED and 220 Ω resistor
  • Net Lab virtual phone

Nothing to buy: every component here is simulated in the browser.

Project steps

  1. 01Connect the ESP32 to the simulated Wi-Fi network.
  2. 02Start a small server and serve the control page.
  3. 03Handle on/off and brightness requests.
  4. 04Drive the LED with PWM according to the command.
  5. 05Inspect the network exchanges byte by byte.

What you learn

  • Wi-Fi connection and IP addressing
  • Embedded HTTP server
  • PWM and light intensity

Other projects