How to install the Stack Light firmware

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
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.

The firmware files
You get two files with each version of the firmware:
StackLight_Pro_<version>.merged.binis the first install, over USB. It is a full image, flashed at address0x0.StackLight_Pro_<version>.ino.binis 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)
- Plug the controller into the computer.
- Put it in flash mode: hold the 0 button, tap RST, then release 0. The board looks dead, and that is right.
- Open espressif.github.io/esptool-js in Chrome or Edge.
- Press Connect and choose the new port. It may be called “ESP32-S2” or “USB Serial Device”.
- Set Flash Address to
0x0and choose the.merged.binfile. - Press Program and wait until it is done. This takes about a minute.
- Press RST on the controller.
If no port shows up, use another USB cable and repeat step 2 before pressing Connect.
Set it up
- On your phone or computer, join the Wi-Fi network StackLight-XXXX. The password is
stacklight. - Open 192.168.4.1, choose your Wi-Fi, enter its password and press Connect.
- Note the address it shows, press Done, and open that address from your normal network.
- 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.
- Under Layout, enter the number of LEDs in each lamp and press Save.
Update later (no cable)
- Open the unit’s page and go to Unit, then Firmware update.
- Choose the new
.ino.binfile and press Upload firmware. - 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.


