Skip to content

xoseperez/wisblock-smartcube-companion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WisBlock Smart Cube Companion

This repository holds the code for the WisBlock Smart Cube Companion. A BLE device to be used with Smart Magic Cubes like GAN 356 i3, GoCube, Giiker and Xiaomi cubes, that also supports an analog timer connection or good old fingertip start/stop.

WisBlock Smart Cube Companion

Features

  • Support for GAN, Giiker i3, Giiker i2 and GoCube smart cubes (tested with GAN 356 i3, original Giiker cubes and GoCubeX cube). Should work with Xiaomi (Giiker), Monster (GAN) and Rubik's Connected (GoCube) cubes as well.
  • Support for StackMat timer using an stereo male-to-male audio cable.
  • Support for manual interface (swipe to move from menu to menu, tap to start/stop timer)
  • Cube actions
    • 4U to go to scramble page, 4U again to start inspect without scrambling
    • Any movement after solving the cube to see stats
  • Stores statistics for 4 different users (PB, Ao5, Ao12 and last 12 individual solves) and 6 different puzzles (3x3x3, 2x2x2, Pyraminx, Skweb, Megaminx and Megaminx2)
  • Reset user/puzzle stats (long tap on the screen while at the user's stat page)
  • Visual representation of the cube state in 2D and 3D (only for smart 3x3x3 and 2x2x2 cubes)
  • 20 movements scramble generation (9 movements for 2x2x2) following WCA rules
  • Automatic start/stop timer for smart cubes
  • Built-in LiPo battery for several hours of usage

Required hardware

These are the components required for this project:

The whole list is between $60 and $70 at the moment (but you should also consider shipping and customs costs). On top of that you will need a smart cube if you want to use the smart cube link. Mind right now it only supports GAN, GoCube and Giiker/Xiami cubes like these ones (these are affiliate links):

Or you can use a StackMat like the QiYi Timer Magic Cube Speed Timer (also affiliate link) with a regular cube.

Connecting the hardware

There is very little complexity in the setup. Read about the WisBlock platform to know more. You only need to know that the code expects the buzzer to be on slot A and the audio jack is connected to the secondary hardware serial in the J10 header. This is optional, of course, but it will require some soldering if you want support for a StackMat.

Detail of the WisBlock Smart Cube Companion

Building the firmware

The firmware has been prepared to be compiled using PlatformIO (https://platformio.org/), but the WisBlock RAK4631 is not yet supported by default so you will first have to add support for it manually after installing PlatformIO. You can follow the instructions to do so here: https://github.com/RAKWireless/WisBlock/tree/master/PlatformIO.

Once PlatformIO and RAK4631 support installed you will only have to build the firmware (from the VSCore extension or using the command line: pio run).

To flash the WisBock connect it to your computer and select build & flash on the IDE or type pio run -t upload on the command line.

Gallery

A small gallery to know more about the project.

Enclosure top USB connector hole (power and flash) Components inside Configuration menu Puzzles menu GAN Smart Cube pairing 2D 3x3x3 cube sync 3D 3x3x3 cube sync 3D 2x2x2 cube sync Scrambling a smart cube Scrambling a regular cube to use a StackMat Timing uing a StackMat User stats Giiker and Gan Smart cubes

License

Copyright (C) 2023 by Xose Pérez (@xoseperez)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Bluetooth timer for Smart Cubes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published