I'm starting a new project. I'm making a robot that will solve a Rubik's cube. I think i have every thing down on how I'm going to do it, but I'm stuck on one thing. I having trouble finding a way to detect the different colors on all the sides. When I search "Rubik's cube solving robot" I get plenty of results however, it seems a majority of them consist of Lego's and smartphones. I won't be using either of those things. I also found a robot made entirely of Lego's and it used the Lego color sensor and then a robot made entirely from scratch but it needed a computer to process the image from the camera and then think of a solution. So I want the use a camera but I don't it attached to a computer just do everything it self. Can a microcontroller process the image and make a solution from it? If so that leads to another question. I saw a post about color sensor vs camera and they said that a CCD camera would be better than a color sensor. So it did a little search and I'm sure they are for sale online but I only found the CMOS camera for sale. Will this work the same way as a CCD camera? All it needs to do is recognize a a 3 by 3 grid. Any help is appreciated. Also I'm new to the engineering portion of robotics but I'm not to bad at programming.