The HueCube is a small colorful, programmable cube measuring 46x46x46mm. You can play around with the example code using the Arduino IDE, and change it's behavior. By reading data from the embedded sensors, you can let the colors change by temperature, height, angle, tapping, tilting, dropping or humidity. See the following videos for a few examples:
To assemble the board you need to be able to solder SMD components (0603) and a few pins. I am using this and this.
- Blender3D, to design the 3d printed case:
- KiCad, to design the PCB
- Arduino IDE, to write the code and flash the device
- The light_ws2812 library to control the LEDs. Download the .zip from the
/light_ws2812_Arduino/
folder and place it intoArduino/libraries/
. I chose this library, due to the small flash size of the attiny85.
The HueCube is made of small, electronic modules that are soldered onto a PCB. You can order the PCB directly from AISLER, or use the KiCad project files form this repository to modify it. Currently, there are two design variant.
- USB Powered
- 3D printed parts: 1x
BlenderModel/hc-v3-usb-base.stl
and 1xBlenderModel/hc-v3-usb-cube.stl
- 1x ATTiny / DigiSpark
- 1x MPU-6050
- 1x ON/OFF Switch (I know, not the ideal switch, but I had those lying around, so I will be using them)
- 3x WS2812B you can use them for all sorts of projects ;)
- 3x 0603 100nF Capacitor (or you could search for a kit with multiple values)
- 3D printed parts: 1x
- LiPo Powered
- 3D printer files: 1x
BlenderModel/hc-v3-lipo-base.stl
and 1xBlenderModel/hc-v3-lipo-cube.stl
- 1x TP4056 LiPo Charger
⚠️ make sure to replace the PROG resistor⚠️ . The resistor value depends on your LiPo size. When using a 400mA battery, use 1x 10k Ohm 0603, this will give you around ~100mA charging current. (or you could search for a kit with multiple values) - 1x MT3608 DC-DC Step Up Converter
⚠️ set this to 5V output before soldering⚠️
- 3D printer files: 1x
First, solder the WS2812B to the PCB, note the corner with the triangle is GND, so this needs to be aligned to the bottom right pad. See the video for detais:
Video:
If you have a hot airstation and liquid solder, it is a lot easier to solder the SMD components:
Video:
After the LEDs and capacitors, you will need to solder the pins. Important: You need to know in advance if you want to build the LiPo version or not, otherwise you will not be able to add the respective pins for the DCDC booster and the LiPo charger module.
Video:
The USB version only requires soldering the top parts
Video:
Note, make sure you have the pins in place. Set the DCDC booster to 5V before soldering and replace the PROG resistor with a 10k resistor to make sure you only have small charging current of about 120mA.
Video:
I think you will figure these out on your own. The square pin hole (PCB rev.8) is GND (black cable), the other 3.7V (red cable). Solder the connector facing to the bottom, i.e. not on the side of the LEDs. The switch selects whether the LiPo charger is connected (=OFF or Charging) or the DCDC booster is conencted (=ON). Never connect the USB while the huecube is on. I have done it and nothing happened. But it is not designed to work this way.
TODO 😅
TODO
See the respective subfolders for their LICENSE.