Raspberry Pi 4 solves the Rubik's cube in one minute

Raspberry Pi 4 solves the Rubik's cube in one minute

A small robot built by Andrea Favero and appeared on Hackday, was able to solve a Rubik's cube in a minute using a camera, Python-based software and a special arm powered by two servo motors, all based on Raspberry Pi 4.

Raspberry Pi 4 Favero, who shared his method on Instructables, made use of common materials, such as plywood, along with 3D printed components, making building easy for anyone who wanted to create a own version. The camera used is a 5 MP Raspberry Pi Camera v1.3, which can be connected to the CSI port of the board through a flat cable (Favero recommends one with a length of 50cm). The 3D printed parts house the motors and the camera, while the small plywood case houses the Raspberry board, an on / off button and two LCD displays that show the time taken and messages as “cube made”. The power supply is managed by DC / DC transformers, which transform the 20V power supply current into a voltage suitable for the Pi 4 and electric motors.

if (jQuery ("# ​​crm_srl-th_hardware_d_mh2_1"). is (": visible")) {console.log ("Edinet ADV adding zone: tag crm_srl-th_hardware_d_mh2_1 slot id: th_hardware_d_mh2"); } The vision of the robot is managed by an AI software based on the Python CV2 (OpenCV) and Numpy libraries. By analyzing the images coming from the camera, the software is able to determine the colors and which side they are on, through an internal model where the faces are all on the same plane. Some parameters, such as automatic white balance and exposure, are left fixed to ensure that the information relating to colors is always consistent, to then be processed correctly by an algorithm specially written by Hegbert Kociemba. The algorithm then determines the movements to be sent to the motors that will make the cube rotate on the various axes, the arm will fix the upper segment allowing the robot to rotate the lower face.

The guide for the construction of the robot written by Favero is very detailed, but the most difficult part could paradoxically be finding a Raspberry Pi 4 board. The shortage of semiconductors and the continuous increase in demand that characterize the current period, have in fact also affected the availability of the small SBC.








Powered by Blogger.