LED – CUBE

What happens when electronics, programming, physics and mathematics come together? LED-CUBE – the final project of Honza Hřebec from the subject “Laboratory of Industrial Electronics and Sensors” from the Cybernetics and Robotics study program. Six panels, each with 64 Neopixel LEDs, are connected to a Raspberry Pi Pico microcontroller along with a three-axis AMR magnetic field sensor (MMC5883) and an accelerometer (MPU-6050, gyro currently not used). The program is written in MicroPython and the result of the dot product of the measured quantity vector (acceleration, magnetic field) and each individual LED vector is used to control the shine of the individual LEDs.https://youtu.be/yxiaCXfDeU4

CZ: Co vznikne, když se spojí elektronika, programování, fyzika a matematika? LED-CUBE – závěrečný projekt Honzy Hřebce z předmětu Laboratoře průmyslové elektroniky a senzorů z programu KyR. Šest panelů, každý s 64-mi Neopixel LEDkami, je připojeno k mikrokontroléru Raspberry Pi Pico spolu s tří-osým AMR senzorem magnetického pole (MMC5883) a akcelerometrem (MPU-6050, gyroskop se aktuálně nepoužívá). Program je napsán v MicroPythonu a pro řízení svitu jednotlivých LED slouží výsledek skalárního součinu vektoru měřené veličiny (zrychlení, magnetické pole) a každé jednotlivé LED.

8×8 Neopixel LEDs modules + MMC5883 AMR magnetometer + MPU6050 inertial sensor
Raspberry Pi Pico with a piece of universal PCB and eight 3D printed corner joints, the cable was later replaced with a flat one in order to squeeze it between the LED panels
Building the cube… (non-magnetic screws should be used ideally…)
Almost finished, the PCB fixation is very improvised one….
Corner joint model – three nuts were embedded into each suuport after the 3D printing
The circuit is very simple… power comes from USB, in-built accu would be nice, but the cable somehow limits the movements of the cube and thus helps it survive a play of curious kids…

Source files in Micropython (zipped, no warranty of any kind…):