Abstract: A sensing device, a ball shaft for smart magic cube, and a smart magic cube are provided. By optimizing the sensing device of the smart magic cube, only two circuit boards are needed to sense rotation states in six directions, thereby changing a current technology that requires setting PCB boards and sensors in each direction of the smart magic cube. The smart magic cube has a simple structure and is easy to assemble, which may reduce production costs.