Website title

Computing: The Details
Lex's blog of curious computer-related shenanigans.

Blog post

Giant LED Rubik's Cube V2: Part 1, planning and software stuff

Published: 2026-03-09

This blog post is also available in video form! Watch it on YouTube

I built a Giant Playable LED Rubik's Cube, and I took it to EMF Camp in 2022.

That cube had a single LED per facelet, for a total of 45 LEDs across the cube (because the bottom face is not there, and 5 times 9 is 45). They were powerful LEDs, each one was 3W. That's big for one LED, but not that big for the amount of area covered.

Cube V1 was not playable during daylight hours. It was just a white box. It was only playable after the sun had gone, and the lights were visible. I want to fix that.

EMF 2026 is soon! Perhaps before then I can get enough LED matrix panels to make cube V2 with about 100,000 LEDs this time, rather than just 45. That might actually be capable of combating the sun if I do!

A Giant Rubik's Cube in my living room

The Plan

I have all the old parts from the version 1 cube. Some of them broke in 2022, some of them have deteriorated in the weather as they were stored outside. Some of them are still in good condition.

One of the paddles from the original cube. Warped, rusty, and covered in diry and cobwebs

For the structure of the cube: my plan is to build a new frame for the cube, but to reuse the edge sections. I will need to replace the switch mechanisms on all of the edges, since those were just bare plywood and they all swelled up and seized in the rain in the field in 2022.

By the way, these are very expensive, so if you want to help out then please send me some money on Patreon or YouTube (links in the sidebar). Or, even better, if you know someone who has lots of these panels spare then please tell them I want them!

For the software: most of the software will still work for the new cube, I just need to add in something to generate the video signal for the LED panels.

For the hardware: again, some parts are reusable, but I need some additional hardware for driving the LED panels.

The Panels

There's lots of generic LED panels available, mostly from manufacturers in China, which are all fairly similar in their operation and construction. They tend to be mounted in chassis that lock together in a grid, and have sockets to daisy-chain power and data between the panels. Power is normally from a Neutrik Powercon connector, and data via a thing that is essentially ethernet, and also uses RJ45 connectors.

The LED panels I'm planning to use are square, 0.5m on an edge, and need to be rated for outdoor use.

I currently have one panel. I need 45.

The front of a 48x48 LED panel. The back of an LED panel, showing the connectors. From left to right: Power in, data in, power out, data out.

Phase 1: Software fixes

The first thing I'm doing towards making this new cube exist is to make the software output the right thing.

I can put whatever image I like on each face of this cube, so I'm planning to have a small Linux computer with a modest graphics card to generate the graphics for the cube. I have experience with OpenGL shader programming, so I'm going to have some fancy shaders on the cube hopefully.

The software is currently in 3 parts:

  1. Device: the software running on the Raspberry Pi Pico to read the input switches and (in V1) output data to the WS2811 LED string.
  2. Service: basic game logic. Also handles sound output. Runs on a Linux computer. This part connects to the Device layer via serial-over-USB.
  3. Controller: the GUI that is shown on a small PC monitor near the installation, shows the timer, and the button for starting a new solve. It talks to the Service layer over TCP.

Each layer has a copy of the state of the cube. In the case of the Controller, it displays the current cube state on the screen. In the case of the Service program, it only really needs it for if the Controller connects mid-game and requests to know the current state. For the Device layer, it needs to drive the LEDs, so it needs to know the state to be able to do that.

Because each layer maintains this state, they need to stay in sync. The Device and Service almost never get out of sync, since the USB serial connection is fairly reliable. The Controller can get out of sync if it is connecting over unreliable WiFi, for example.

Regardless of how well these all stay in sync, it's best to make sure that whatever the player sees is considered the canonically correct state. That's why the Device layer is what decides when the user has solved the cube. Even in the worst possible desync state, the game still works correctly.

In version 2 of the cube, it will no longer be the Device code that creates the visual output. I'll be adding in the graphics generation feature to the Service layer, since that's running on a Linux PC with a graphics card, it has the processing power for the task, while the Pico does not. Since it is now what's generating the output, it will also need to become the canonically true model of the game state.

The hardware for the LED panels takes input from DVI or HDMI just like any other display, but comes with configuration software that allows you to specify where each panel is within the resulting frame buffer. I will have a fullscreen OpenGL window displaying on the output, and render the 45 tiles in a grid somewhere on that framebuffer, and then configure the drivers to extract each one to a tile.

Since it's easy enough to do, I will likely have my normal calibration workflow include a step that can move the tiles around in the Service program, so I don't have to deal with reconfiguring the LED hardware in the field.

I've got the basics working. Here's an example of what the framebuffer looks like so far, along with a rendering of a frame mapped on to a cube in Blender.

A grid of coloured squares in the top left corner of a large black rectangle. A rendering of a shuffled Rubik's cube.

What's next

I still need to add animations, and make it look prettier. Then I need to build a case to hold the computer, and build a new frame for the LED panels, since the old frame is too flimsy.

oh, and also obtain a whole lot of LED panels.