ArduinoStudio

Turn an LED on over Wi-Fi with an ESP32

Install the firmware from your browser, set up Wi-Fi once, then switch the LED from the App buttons. No code and no web server sketch.

The short answer

To turn an LED on over Wi-Fi with an ESP32 in ArduinoStudio, open the ESP32 Wi-Fi Lamp project, plug the board in over USB once, install ArduinoStudio-FW from Chrome or Edge and set up Wi-Fi. Then power it from a charger and press Lamp on in the App. Most classic DevKits have an LED on GPIO2.

Works today

  • On and off from the App buttons, with no cable after setup.
  • The built-in LED on GPIO2, or an external LED.
  • A preview with no board.

Not yet

  • Dimming. Over Wi-Fi the Standard LED is on or off only.
  • 5 GHz networks. The board needs 2.4 GHz.
  • Bench tests on the ESP32-S2, S3 and C3.

No web server sketch

Many ESP32 Wi-Fi LED guides start with a sketch that serves a web page. Here the board runs ArduinoStudio-FW and the App buttons reach it through the ArduinoStudio relay, so there is no sketch to write.

Starts with the built-in LED

Most classic ESP32 DevKits have an LED on GPIO2, so the first run needs only the board and a USB data cable.

One block per button

Lamp on and Lamp off are two sequences with one Standard LED block each. Change the pin, rename the buttons, or add a Wait and a Loop to make it blink.

Step by step

You need

  • An ESP32 DevKit (the classic ESP32 is tested on a bench)
  • A USB data cable
  • A computer with Chrome or Edge
  • A 2.4 GHz Wi-Fi network
  • A USB charger

Optional parts

  • An LED
  • A 220 Ω resistor
  • A breadboard and two jumper wires
  1. 1

    Open the ESP32 Wi-Fi Lamp

    Sign in to ArduinoStudio and open the ESP32 Wi-Fi Lamp project. It has two sequences, Lamp on and Lamp off, each with one Standard LED block on GPIO2, and an App panel with a button for each.

    Sign in and open the ESP32 Wi-Fi Lamp →
  2. 2

    Preview it without a board

    Press Play. With no board connected, the preview runs Lamp on. Open App and press Lamp on or Lamp off to watch the LED change.

  3. 3

    Plug the ESP32 in over USB

    Use a USB data cable and desktop Chrome or Edge. Click the plug icon in the toolbar, choose Cable (COM port), then Add a board…, and pick the board in the browser dialog.

  4. 4

    Install ArduinoStudio-FW

    The setup wizard installs ArduinoStudio-FW from the browser, with no Arduino IDE. On the classic ESP32 it is one click. On an ESP32-S2, S3 or C3 with native USB it may ask you to press RESET or to pick the port again. Installing replaces the program already on the board.

  5. 5

    Set up Wi-Fi

    Choose Set up Wi-Fi right after the install, or open Wi-Fi from the plug icon. Pick a 2.4 GHz network and enter its password. The board joins your account.

  6. 6

    Unplug it and keep it powered

    Unplug the cable from the computer and power the board from any USB charger.

  7. 7

    Press Lamp on in the App

    Open App and press Lamp on, then Lamp off. The buttons reach the board over Wi-Fi through the ArduinoStudio relay. If the board is not connected, open the plug icon, choose My devices and connect it. Keep the page open while you use the buttons.

  8. 8

    Optional: add an external LED

    Connect an LED and a 220 Ω resistor in series from GPIO2 to GND, with the long leg of the LED toward GPIO2.

  9. 9

    Erase the board before you give it away

    The Wi-Fi password and the board’s account key are stored on the board. While it is running, hold its BOOT button for 10 seconds or more: it erases its saved Wi-Fi networks and its account key, then restarts.

No board yet? Try a Wi-Fi app first

The Desk Status app is the same idea with two LEDs: buttons that switch lights. It opens with no account and runs in the preview.

Try the Desk Status app

Quick answers

Why GPIO2?

Because most classic ESP32 DevKits have a built-in LED on GPIO2, so the first run needs no extra parts. To use another pin, change the Digital pin on both Standard LED blocks; the app refuses a pin the ESP32 cannot drive before the run starts.

Why can’t I dim it?

Over Wi-Fi, the Standard LED block is on or off only. Brightness, Mode and Color are ignored, as over USB direct.

Does it work on an ESP32-S3 or ESP32-C3?

Yes, they are supported, but not yet tested on a bench. They install ArduinoStudio-FW the same way; on native USB the install may ask you to press RESET or to pick the port again. Some boards have their built-in LED on another pin, so check yours.

Why doesn’t my Wi-Fi network show up?

The ESP32 joins 2.4 GHz networks only. If your router offers separate 2.4 GHz and 5 GHz networks, pick the 2.4 GHz one. The setup tells you if a network or password does not work.

Do I need to write a web server sketch?

No. The board runs ArduinoStudio-FW, and the App buttons reach it through the ArduinoStudio relay. You never write or upload a sketch for this tutorial.

Do I need to keep the page open?

Yes. The browser runs the program and sends each step to the board, so keep the page open while you use the buttons.

Written for ArduinoStudio v6.0, released 2026-10-18.