3d Printed Light and USB Cube
by PhilipT3 in Living > Life Hacks
521 Views, 10 Favorites, 0 Comments
3d Printed Light and USB Cube
![Light and USB Cube](/proxy/?url=https://content.instructables.com/FDU/9IN8/J70QPL67/FDU9IN8J70QPL67.jpg&filename=Light and USB Cube)
A device that lights up or provides USB power (or both) depending on Cube orientation.
I found it useful to charge my phone and/or to provide dim soft light.
Electronic Parts
![IMG_20170831_082045.jpg](/proxy/?url=https://content.instructables.com/F8G/QF75/J70QPL7S/F8GQF75J70QPL7S.jpg&filename=IMG_20170831_082045.jpg)
Parts needed:
- Piece of protoboard
- 2 tilt switches
- 2 Resistors, 4k7 & 1k.
- 2 NPN transistors
- 1 USB light cluster
- 1 USB Female connector
- 1 5V power source
- (Optional) 4 2.8mm x 15mm self tapping screws
3D Print It
![cubeproj.png](/proxy/?url=https://content.instructables.com/FNO/42GC/J70QPL7V/FNO42GCJ70QPL7V.png&filename=cubeproj.png)
Files attached here. I used:
- PLA
- Perimiters - 1 (for the box)
- Top and Bottom layers - 2
- Infil at 20%
Your 3D printer settings may vary .
Assembly
![IMG_20170830_132256.jpg](/proxy/?url=https://content.instructables.com/F57/8D6W/J70QPL7P/F578D6WJ70QPL7P.jpg&filename=IMG_20170830_132256.jpg)
![boxschem.png](/proxy/?url=https://content.instructables.com/FT2/PJMB/J70QPLFD/FT2PJMBJ70QPLFD.png&filename=boxschem.png)
![IMG_20170830_132232.jpg](/proxy/?url=https://content.instructables.com/FZK/KGI8/J70QPL7L/FZKKGI8J70QPL7L.jpg&filename=IMG_20170830_132232.jpg)
Build as per the schematic. The switches are the tilt switches.
Operation: The Circuit works buy closing the tilt switches by gravity depending on their orientation. I found that arranging the tilt switches at a spacing angle of 80 deg allows triggering in the correct plane of rotation. Test before committing to final assembly.
Each switch allows current to flow to the NPN transistor which in turn allows current to flow to either the light or the USB port.
Attach the light facing inwards of the cube and use hot glue to support in place. There is a space for the USB port which needs attaching too. (see stl files in next step).
Power comes from the 5v source (Any old phone charger for eg. will do). Connect the plus to VCC and negative to ground.
Enjoy
![cubeproj3.jpg](/proxy/?url=https://content.instructables.com/F5Z/95BE/J70QZHJE/F5Z95BEJ70QZHJE.jpg&filename=cubeproj3.jpg)
![cubeproj4.jpg](/proxy/?url=https://content.instructables.com/FEP/M5UA/J70QZHNL/FEPM5UAJ70QZHNL.jpg&filename=cubeproj4.jpg)
The End.
Possible Hack
If you would like more USB current replace the transistor with a MOSFET or IGBT. The resistor to the Gate/Base may need changing too.
Current is also limited by the power supply chosen.