RGB cube


Background

When we had our first baby in 2017 I wanted to create something personal for her while also doing something new, to add to my skill set. During the first weeks with her we used a small RGB lamp which cycled between the usual red-green-blue with some variations in between: yellow, orange, pink and purple. I thought it would be neat if we in stead had a lamp with low light output to have all night through in order for us to see enough to not trip when waking up to change diapers in the night.

Solution

My idea was a light cube which turned on if placed in the correct orientation. Using a gravity switch this would be feasible. Little did I know what journey I had begun!

Making a long history short: Several iterations of the electronics, and also several self designed PCBs, not to mention the cube 3D-printed in nylon to be strong and transparent(!), I could give my daughter a cool gadget: A beautiful night lamp, also serving as a toy. When it is turned over it toggles between stationary lights and a spinning blender light utilizing the adressing scheme of WS2812 RGB diodes fascilitating blinking in order. Every time it's turned over it also toggles the color in a 7 color sequence. I love this little lamp. It measures just 5x5x5 cm.

Below are some images of the cube itself and the circuit and pcb layout.

rgb cube pink stationary lights

rgb cube pink stationary lights

rgb cube pink stationary lights