top of page

Rubik's cube

kliu3758

Sometimes, projects don’t start with a big, exciting idea. This one started more as a curiosity just something to experiment with. Something to motivate you to turn it into a bigger project.

This was my first time using a Python Notebook before. My brother introduced me to this idea, and I thought it was an interesting project to undertake. In the beginning. We were messing around with using ChatGPT to give responses to questions we asked through the program. Eventually though, I thought it would be fun to see if ChatGPT could recognize a Rubik’s cube in an image, so I began to start working on that.

There were many different parts to this project, first an image had to be sent into ChatGPT to see if it could recognize a rubik’s cube. I used OpenCV to directly import the image into ChatGPT. While there were some steps to debugging and fixing the program, eventually it could recognize if a Rubiks Cube was in the Photo.



I could have stopped there, but I wanted to make the project more physical. Instead of just displaying the results on the screen, I decided to make a green LED light up if a Rubik’s Cube was detected, and a red one would shine if it wasn’t. To do this I had to connect a raspberry pi to my monitor to directly control it from there. I forgot the password to the raspberry pi, so I had to reset it through the wifi network and connect through it that way to reset the password. After wiring two LED lights to the raspberry pi, It was able to shine a different light for when ChatGPT found a rubik’s cube.



This project was far from easy. From learning Python Notebooks to debugging image recognition code and wrestling with hardware integration, every step seemed to come with its own set of challenges. But those challenges forced me to learn and improve, turning what started as a simple idea into a much more complex and rewarding project.

 


 
 
 

留言


bottom of page