ESP32, with an MPU6050, 3 Nidec24 motors and a whole lot of frustration. This balancing cube can balance on it's edge or a vertex. Very satisfying in the end. Want to make one?, go see remrc's repository here: https://github.com/remrc/Self-Balancing-Cube/tree/main