The idea is to have a cube which looks like minecraft ore http://minecraft.gamepedia.com/Ore To make it more fancy it is illuminated from the inside. The main purpose of it is to use it as a nightlight. In Minecraft there are 8 different ores. Without coal (black) and nehter quartz (which has a differnt texture) there are 6 different ores which can be distinguished by their color. This fits to the 6 sides of a cube. The idea is to use an arduino board and an acceleration sensor to detect the orientation of the cube and light up the whole cube with one of the colors according to the orientation of the cube. This could look like this:
What is it good for? Fun, learning to build an computerized object and as a birthday present for my son.
What do I need
A transparent cube as the hull and main structure. I used a foto cube of acrylic glass which is made of two parts which can be fitted together.
The texture of the minecraft block to use as outside texture. This is just a word document which needs to be printed on both sides. Since the cube has two parts, two copies are needed.
The electronics needed as follows:
Li-Ion battery IMR 18350
Li-Ion charging board with mini usb socket (not seen on photo) based on TP4056
Pin connector as programming interface
Arduino Pro Mini controlling everything
Acceleration sensor based on MPU 6050 (Photo shows ADXL345), but MPU6050 looks almost identical
LED Strip WS2812B. These can be bought as a reel from 1 to 5 meters. Only 6 are needed…
On/Off switch. To switch off when there is no recharging possible and the battery goes down
Some kind of mechanical frame to hold all this stuff especially the battery. The following is important:
- There should’nt be any shadows on any of the sides of the cube
- The center of mass should be in the center of the cube
- Outside access to recharge the battery and to reprogram the arduino without the need to disassemble
Therefore I 3D printed a frame which should hold all these parts.
Next Part: Project: Minecraft Cube part II: Internals and Software