Uploaded January 2020 | Updated November 2026, 2 days ago
In this video tutorial, I'll explain how you can "hack" a smart bluetooth-enabled Rubik's Cube (as advertised by Giiker, Xiaomi, etc.), using the BLE capabilities of an ESP32 to intercept and decrypt the data packets that are sent every time a side is twisted. The data packet describes the complete state of the puzzle, together with the last two moves made.
You could use this code to turn the Rubik's Cube into an input device for a home automation system - to control your smart speakers or lighting, or any other IoT connected device. I'll demonstrate how you could also use this as the basis for an escape room puzzle - by comparing the state of the puzzle to a known solution state and, if matched, energising a relay to release a maglock, sending a spectacular display of balloons into the sky to celebrate the solver's achievement...
You can buy a cube for about £12 from banggood.com/custlink/D3DvQbsa4f
Full Arduino code is available on my GitHub: github.com/playfultechnology/esp32-smartcube
Further resources about this and all my other escape room tech puzzles can be found on my Patreon: patreon.com/playfultech
In this video tutorial, I'll explain how you can "hack" a smart bluetooth-enabled Rubik's Cube (as advertised by Giiker, Xiaomi, etc.), using the BLE capabilities of an ESP32 to intercept and decrypt the data packets that are sent every time a side is twisted. The data packet describes the complete state of the puzzle, together with the last two moves made.
You could use this code to turn the Rubik's Cube into an input device for a home automation system - to control your smart speakers or lighting, or any other IoT connected device. I'll demonstrate how you could also use this as the basis for an escape room puzzle - by comparing the state of the puzzle to a known solution state and, if matched, energising a relay to release a maglock, sending a spectacular display of balloons into the sky to celebrate the solver's achievement...
You can buy a cube for about £12 from banggood.com/custlink/D3DvQbsa4f
Full Arduino code is available on my GitHub: github.com/playfultechnology/esp32-smartcube
Further resources about this and all my other escape room tech puzzles can be found on my Patreon: patreon.com/playfultech










