3d Printed Light and USB Cube

by PhilipT3 in Living > Life Hacks

508 Views, 10 Favorites, 0 Comments

3d Printed Light and USB Cube

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

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

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
boxschem.png
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
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.