← Back to projects

Projects

Solarium control system

I am designing the PCB, enclosure, firmware and web application that the receptionist will use to control the solarium.

I am replacing an old solarium controller with a new unit based on the ESP32. The receptionist will manage everything from a browser, the client will see how much time they have left on screen, and the solarium will switch off on time even if the network goes down, the reception PC freezes, or even if the control unit itself develops a fault.

  • Firmware for the ESP32 (WT32-ETH01): session management, relay and triac switching with output monitoring, user accounts and roles, audit log, sales statistics, signed over-the-air updates with rollback support.
  • Web interface over HTTPS for reception staff and administrators, in English and Czech, plus a read-only customer dashboard.
    administration interface administration interface
  • Safety watchdog: a second microcontroller ensures the session cannot run longer than the configured time, even if the main firmware hangs. It runs a self-test before every sale.
  • Hardware: a four-layer main board with safe isolation from 230 V, and a top board carrying indicator LEDs and a STOP button.
    Main board Top board
  • Mechanical design: an enclosure with a printed overlay, indicator lights and a STOP button.
    enclosure with transparent lid enclosure with printed overlay

October 2026

The brain of the future product on a breadboard. WT32-ETH01 on a breadboard The WT32-ETH01 module is capable of running a TLS-secured web server and can connect to the network over either Wi-Fi or Ethernet. The module can be programmed and debugged via a USB-UART adapter, and a diagnostic console is available on the UART at runtime. Initial configuration of the finished product will be possible from a mobile app over Bluetooth.

What remains is to study the standards relating to solariums, design the schematic, simulate individual circuits in SPICE and lay out the board.

November 2026

One of the measures to avoid frying someone alive is not to drive the switching element directly from an MCU signal in a simple high = on, low = off (or vice versa) fashion, but to use a charge pump instead. The MCU feeds it a square wave which — as long as it oscillates — keeps the switching element closed. The moment it stops oscillating, regardless of which level it is stuck at, the switching element opens.

Charge pump

Another scenario in which someone could theoretically receive more UV than they paid for would be failure of the ceramic capacitor at the charge pump input. MLCCs typically fail short. It is paranoid, but it costs nothing, so instead of a single capacitor there are two at the input, rotated 90° relative to each other (in case failure occurs due to board flex):

The paranoid capacitors

30th November

The boards have been manufactured and populated, and are making their way from Hong Kong. I still need to fit the remaining through-hole components, bring the boards up, measure them, make any necessary tweaks, and finish the firmware. Then it will be time to assemble everything into the enclosure and install it at the client’s site.