GithubHelp home page GithubHelp logo

hue-cube's Introduction

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.

hue-cube's People

Contributors

uvwxy avatar

Watchers

 avatar  avatar

Forkers

fabiobrondo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.