Coding

How to install the Stack Light firmware

21 October 2026 · about 10 minutes · Easy difficulty

Install the Stack Light firmware: red, amber and green lamps above the steps flash over USB, join the Wi-Fi and connect your printer

What you need

  • A LOLIN S2 Mini (ESP32-S2 Mini)
  • A USB cable that carries data (not a charge-only cable)
  • Google Chrome or Microsoft Edge on a computer
  • The firmware file StackLight_Pro_<version>.merged.bin from GitHub
Jump to a section
  1. The firmware files
  2. First install (USB)
  3. Set it up
  4. Update later (no cable)
  5. Problems

This guide installs the Stack Light firmware on the controller (the LOLIN S2 Mini), connects it to your Wi-Fi and your Prusa printer, and shows how to update it later without a cable. Nothing needs to be installed on your computer. If you haven’t built the tower yet, start with the Prusa Stack Light guide.

Overview of the Stack Light firmware install in three steps: first install over USB with the .merged.bin file, set up Wi-Fi and the Prusa printer, and update later over Wi-Fi with the .ino.bin file

The firmware files

You get two files with each version of the firmware:

  • StackLight_Pro_<version>.merged.bin is the first install, over USB. It is a full image, flashed at address 0x0.
  • StackLight_Pro_<version>.ino.bin is for later updates, over Wi-Fi. It is only the application.

Do not mix them up.

Download them from the Firmware folder in the GitHub repository. The firmware is free for personal use.

First install (USB)

  1. Plug the controller into the computer.
  2. Put it in flash mode: hold the 0 button, tap RST, then release 0. The board looks dead, and that is right.
  3. Open espressif.github.io/esptool-js in Chrome or Edge.
  4. Press Connect and choose the new port. It may be called “ESP32-S2” or “USB Serial Device”.
  5. Set Flash Address to 0x0 and choose the .merged.bin file.
  6. Press Program and wait until it is done. This takes about a minute.
  7. Press RST on the controller.

If no port shows up, use another USB cable and repeat step 2 before pressing Connect.

Set it up

  1. On your phone or computer, join the Wi-Fi network StackLight-XXXX. The password is stacklight.
  2. Open 192.168.4.1, choose your Wi-Fi, enter its password and press Connect.
  3. Note the address it shows, press Done, and open that address from your normal network.
  4. Under Printer, choose Prusa and enter the printer’s IP address and its PrusaLink API key. You find the key on the printer under Settings, Network, PrusaLink. Use the PrusaLink key, not the Prusa Connect token.
  5. Under Layout, enter the number of LEDs in each lamp and press Save.

Update later (no cable)

  1. Open the unit’s page and go to Unit, then Firmware update.
  2. Choose the new .ino.bin file and press Upload firmware.
  3. Confirm. The unit installs it and restarts. Your settings are kept.

Problems

Problem Try
No port appears Use another data cable and repeat the flash mode steps
Flashing fails half way Lower the baud rate to 115200 in the flasher
Does not start after flashing Press RST. The first start takes a few seconds
Start over On the unit’s page go to Unit and choose Reset all settings, or hold button 0 for 15 seconds

If you prefer the command line, you can flash with esptool.py --chip esp32s2 --port COM5 write_flash 0x0 StackLight_Pro_<version>.merged.bin.

Want to read or change the code? It is in the same repository, in Source/StackLight. See the Stack Light guide for how to build it yourself.

Want the files?

The firmware is free on GitHub, with the prebuilt files and the source code. If it is useful to you, you can support me on Buy Me a Coffee.