Skip to content

The HueCube is a small colorful, programmable cube, measuring 46x46x46mm.

Notifications You must be signed in to change notification settings

FabioBrondo/hue-cube

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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:

What do you need?

Soldering

To assemble the board you need to be able to solder SMD components (0603) and a few pins. I am using this and this.

Software

  • Blender3D, to design the 3d printed case:
    • USB Powered:
    • LiPo Powered:
  • KiCad, to design the PCB
    • Schematics:
    • Circuit Board:
  • 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 into Arduino/libraries/. I chose this library, due to the small flash size of the attiny85.

Hardware

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
  • LiPo Powered
    • 3D printer files: 1x BlenderModel/hc-v3-lipo-base.stl and 1x BlenderModel/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⚠️

How to Build?

Soldering

Manually soldering the LEDs

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:

SMD soldering the LEDs

If you have a hot airstation and liquid solder, it is a lot easier to solder the SMD components:

Video:

Pins

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:

Sensor + DigiSpark (USB Version)

The USB version only requires soldering the top parts

Video:

DCDC Booster + LiPo Charger

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:

Switch and Battery Connector

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.

3D Printing

TODO 😅

Programming

TODO

License

See the respective subfolders for their LICENSE.

About

The HueCube is a small colorful, programmable cube, measuring 46x46x46mm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%