The Rubik Solver Machine
The program supports the machine to solve a 3x3 rubik machine. Available functions include color detection, stepper motor controlling, and the usage of Kociemba algorithm. The code is written of Python3.7 and tested in Raspberry Pi 3B+.
You may visit my instagram's post for seeing how does my machine work and the finalized product.
Features
- Just one pressm then everything works automatically.
- The progen is used to control TI's DRV8825 chip.
- The camera uses Raspberry's original camera. Focus points for locating each cube cells can be altered by ajusting the x and y axises(variable stickers['main']) in the video.py.
Warnings
- Dependent libraries are required before running the program, such as PiCamera and Adafruit Neopixel.
- The color detection becomes more stable and accurate if installing a circular led ring besides the camera to eliminate environmental light noise.
- For some reasons, stepper motor won't rotate exactly 90 degrees when the machine boots in the first time. Just kill the program immediately, readjust the motor and rerun the program agiain. It should work fine. (I don't know why does the error cause.T-T)
Credits
Thanks to @kkoomen's open source code. Even though his program does not fit perfectly to my machine but still give a big fundation in this program.