Minecraft Ore Night Light

Minecraft Ore Night Light

thingiverse

EDIT: I added a base for the cube with mounting posts for the Trinket and Neopixel boards, and updated the cube to include a cutout for the USB power. Use MinecraftOre_A_v2.stl with the original MinecraftOre_B.stl, plus MinecraftOre_Base_v2.stl. The base should pressure fit into the cube with no need for glue or mounting hardware. I have also provided the combined A+B parts to save you a step when printing on a dual extruder. (MinecraftOre_AB_v2.amf.xml) Enjoy! This is a Minecraft Ore block that is illuminated from the inside with a Neopixel RGB LED module. By changing the color, you can make it look like iron, redstone, diamond, emerald, lapis, or even gold ore. The block is 64mm on a side. Printed on a dual extruder using natural PLA for the veins and grey for the body with 100% infill. Arduino Code (Adafruit Trinket Mini 5V) // // Adafruit Trinket with NeoPixel Night Light. // Meant to be embedded in a Minecraft Ore cube. // // Wire a pushbutton from GPIO #3 to GND. // NeoPixel DI connects to GPIO #2 // NeoPixel power to +5V and GND to GND (or GPIO #1 as a convenience.) // #include #ifdef __AVR_ATtiny85__ // Trinket, Gemma, etc. #include #endif #define PIN_DOUT 2 // #2 is connected to the DI pin on the NeoPixel #define PIN_GND 1 // #1 is used as GND for the NeoPixel, for convenience. #define PIN_BUTTON_A 3 // Initialize a string of one LED on pin #2 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(1, PIN_DOUT); #define N_COLORS (8) uint32_t colors[N_COLORS] = { 0xFF0000, // Red (Redstone) 0x7FFFFF, // Cyan (Diamond) 0xFF3F00, // Orange (Copper) 0x00FF00, // Green (Emerald) 0x0000FF, // Blue (Lapis Lazuli) 0xFF7F00, // Yellow (Gold) 0xFF00FF, // Magenta 0xFFFFFF, // White }; int nColor = 0; uint32_t fadeTime; uint32_t t; uint32_t pressTime; int buttonState = 0; // 0=released, 1=debounce, 2=pressed uint8_t r = 0; uint8_t g = 0; uint8_t b = 0; uint8_t r1 = 0; uint8_t g1 = 0; uint8_t b1 = 0; void advanceColor() { nColor++; // Next color if (nColor >= N_COLORS) nColor = 0; uint32_t color = colors[nColor]; r1 = 0xFF & (color >> 16); g1 = 0xFF & (color >> 8); b1 = 0xFF & (color); } void refreshColor() { if (r < r1) r = r + 1; else if (r > r1) r = r - 1; if (g < g1) g = g + 1; else if (g > g1) g = g - 1; if (b < b1) b = b + 1; else if (b > b1) b = b - 1; uint32_t color = r; color = (color

Download Model from thingiverse

With this file you will be able to print Minecraft Ore Night Light with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Minecraft Ore Night Light.