Rubik's Cube Robot can solve the rubik's cube around 90 seconds including detecting and solving. This project is made by 86duino, Maixduino, OV2640 camera, RS-1270 servo motors and ws2812 led strip. The mechanisms refer to OTVINTA and all of them are 3d printable. The solving algorithm was implemented by Muodov. He also made a great cube solving machine Meccano Rubik's Shrine.
You can find more detail here in Chinese.
Follow 86duino and Maixpy website to set the environment. Upload the main.ino and colorclassification.py into 86Duino and Maixduino respectively.
- OV2640 camera's maximum exposure time is 120190us. That's why we added the led strip.
- It's important to fix the lighting environment when detecting colors, so we added the cover on top of the camera. However, we should still avoid direct illumination of the lens.
- Color classification algorithm classifies color white first because white and black are in different dimension of color space than others. Therefore, rubik's cube must have the white color.