---
title: "Upgrading my EleksTube clock"
description: "How I turned a sketchy EleksTube clock into a nice one"
canonical_url: "https://www.loisboubault.dev/blog/upgrading-my-elekstube-clock"
---

> Index of every page on this site: [llms.txt](https://www.loisboubault.dev/llms.txt)

For Christmas in 2024, I got an **EleksTube clock** from my dad. I didn't ask where he got it, since it is not an official model but a clone called **PunkCyber IPS**.

<photo height="2000" src="/img/blog/6-upgrading-my-elekstube-clock/clock-disassembled.jpg" width="1500" loading="eager">



</photo>

> I would have liked to talk about this clock before, but I didn't have a good opportunity to do so. I am doing so now because I needed to update its software and had the chance to take pictures of it while disassembled.

At a glance, a USB-powered device with six small LCD screens and network connectivity seems really cool. However, I immediately noticed some problems: I needed to download a sketchy app to configure it, and all the instructions were in Chinese. The physical buttons could not be used to set the time and so only via Wi-Fi...

## Time for investigation

This was not a great start for simply setting the time on a clock. So I immediately searched online to see whether alternative software existed that I could install to run open-source firmware on it. I first looked at the [official firmware](https://www.elekstube.app), but it was impossible to connect the clock to it via Wi-Fi. Since this is a clone version, using the official firmware did not seem like a good idea anyway.

I found [EleksTubeHAX](https://github.com/aly-fly/EleksTubeHAX), a popular project with cool features: Home Assistant connectivity, synchronisation with the correct time zone via IP, and more. It also contains a wealth of information about all clock versions, including [my PunkCyber IPS](https://github.com/aly-fly/EleksTubeHAX#81-punkcyber-ips-clock-no-ch340-chip-soldered-on-pcb-of-newer-editions).

This version has one problem: it has an empty soldering header and is missing a CH340 chip. As you might guess, this chip is necessary to communicate with a PC for downloading and updating the software.

The project's README describes two solutions: use an external UART-to-USB adapter or solder the missing components. I chose the first option because it was easier. I was not very confident in my soldering skills, and I didn't want to break a Christmas gift.

## Soldering and connection

I already had a soldering iron, but I still needed a few parts: it was time to place an AliExpress order! I got a [FT232RL module with USB-C](https://fr.aliexpress.com/item/1005006445462581.html) and some [pin headers](https://fr.aliexpress.com/item/1005005258694395.html) for a neat setup.

There is not much to explain here: I soldered the pin headers underneath so that they are not visible from the top. They will only be useful when I want to update it, so I will need to disassemble the device to connect the external module.

<photo height="1000" src="/img/blog/6-upgrading-my-elekstube-clock/clock-pin-header-front.jpg" width="1500" caption="The pin headers in place, not visible because they are underneath">



</photo>

<photo height="1000" src="/img/blog/6-upgrading-my-elekstube-clock/clock-pin-header-back.jpg" width="1500" caption="Don't look at the big pile of tin">



</photo>

Now I can connect the PCB to the UART board. Ensure that you follow the table below carefully.

<table>
<thead>
  <tr>
    <th align="center">
      Pin PCB
    </th>
    
    <th align="center">
      Pin UART
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td align="center">
      G
    </td>
    
    <td align="center">
      GND
    </td>
  </tr>
  
  <tr>
    <td align="center">
      R
    </td>
    
    <td align="center">
      Rx
    </td>
  </tr>
  
  <tr>
    <td align="center">
      T
    </td>
    
    <td align="center">
      Tx
    </td>
  </tr>
</tbody>
</table>

<photo height="1500" src="/img/blog/6-upgrading-my-elekstube-clock/clock-uart-connected.jpg" width="1500">



</photo>

The board needs to be put into download mode. To do that, short and then release the BOOT pin while the device is powered via USB-C. To make this work reliably, I reproduced the setup described in the README with a simple button.

<photo height="1500" src="/img/blog/6-upgrading-my-elekstube-clock/clock-whole-setup.jpg" width="1500" caption="If the clock is in the download mode, screens are not turned on.">



</photo>

## Back up and install the new software

I will not go into all the installation details, since they are documented in [the project's README](https://github.com/aly-fly/EleksTubeHAX/blob/main/README.md). However, I encountered a few problems worth knowing about. I did the installation on Windows, but I expect it can also be done easily on macOS or Linux.

First, download the latest version of the project's source code. It includes scripts to back up the existing firmware, which is important if something goes wrong. Go to the `firmware` folder and edit the command file corresponding to your model.

<table>
<thead>
  <tr>
    <th align="center">
      File
    </th>
    
    <th align="center">
      Clock model
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td align="center">
      _ESP32 save flash 4MB.cmd
    </td>
    
    <td align="center">
      All clocks with 4MB flash
    </td>
  </tr>
  
  <tr>
    <td align="center">
      _ESP32 save flash 8MB.cmd
    </td>
    
    <td align="center">
      IPSTube
    </td>
  </tr>
  
  <tr>
    <td align="center">
      _ESP32 save flash 16MB.cmd
    </td>
    
    <td align="center">
      MarvelTubes, MarvelTubes Gen2
    </td>
  </tr>
</tbody>
</table>

Open **Device Manager** to find the COM port number, then adjust the command file to use the same number.

<photo height="447" src="/img/blog/6-upgrading-my-elekstube-clock/backup-port.png" width="556">



</photo>

Now run the command file. If everything goes well, you should see something like this:

<photo height="545" src="/img/blog/6-upgrading-my-elekstube-clock/backup-success.png" width="1100">



</photo>

Install [VS Code with the PlatformIO IDE plugin](https://platformio.org/install/ide?install=vscode). Open the project folder and rename the file `include/_USER_DEFINES - empty.h` to `_USER_DEFINES.h`. Then adjust the settings to match your needs. I only enabled the Home Assistant feature, using the IP address of my Raspberry Pi (which runs Home Assistant OS) and the MQTT settings from the Home Assistant MQTT integration.

Choose the environment corresponding to your model in VS Code's bottom bar, then build and upload the firmware and data. Finally, reboot it by unplugging and reconnecting it.

<photo height="1800" src="/img/blog/6-upgrading-my-elekstube-clock/clock-updated.jpg" width="1500">



</photo>

---

This was not a big modification or side project, but I enjoyed turning an imperfect device into something that fits better with my existing setup. I am really happy with the result: a nice clock sitting below my monitor.

<photo height="1500" src="/img/blog/6-upgrading-my-elekstube-clock/clock-on-my-desk.jpg" width="1500">



</photo>

## Sitemap

See the full [sitemap](https://www.loisboubault.dev/sitemap.md) for all pages.
