There is no better way to learn electronics and robotics than building and programming your own robots. The BricKuber is a fun project that involves building a LEGO Rubik’s Cube solving robot with a Raspberry Pi. You can complete this open source bot with a LEGO Mindstorms EV3 kit, BrickPi3, Pi camera, and SD card with Raspbian for robots.
The design has 3 moving parts: a cradle to hold the puzzle, a shuffler, and a camera arm. You can find the instructions here.