WS2812B LED Cube 96 for Arduino Magic Colorful




Introduction: WS2812B LED Cube 96 for Arduino Magic Colorful

About: We're a group of fun-loving, electronic DIY'ers with We hope to share useful guides and tutorials as well as the cool things we think up every-once-in-awhile. Enjoy!

Hey,guys,this is the Fourth time we(smart prototyping) post an instructable here,
thanks for watching! We will keep on posting funny instructables. This is a LED magic cube,we hope it be helpful for you and we'd love to communicate with you guys!

Before making the Cube,let's have a overview:

This Cube was made by six 4x4 LED matrix board, LED light is WS2812B.What's amazing, it’s not just a Cube, you can control every LED light’s brightness on it by using a Arduino and GND/VCC/Single three port! In addition, the power supply should be 5V,600mA.If you use computer USB power suppply,you need to low down the brightness in code,because the computer USB ports is 500mA.

There are 16pcs WS2812B LED light, two input ports and two output ports on the WS2812B LED board unit.With the four ports, you can easily build a 3D structure, for example, a cube.

So how to control the LED,All the LED light’s signal on the unit boards are serial connected, and controlled by one-line protocol(the maximum quantity is 1024pcs LED light).You can freely control every single LED’s color, each pixel of the three primary color can achieve 256 brightness display, completed 16777216 full color display, and scan frequency not less than 400Hz/s.

Here is our product page


WS2812B LED Cube 96 for arduino magic colorful


WS2812B LED Cube 96 for arduino

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Determine the Connection Rules

Because every unit LED matrix’s signal are serial connected, and controlled by one-line protocol, you can treat the unit board as a big LED light, just make sure all the units follow the in/out rule, then you can easily control all the units and any single LED lights on the whole structure. To fix the units,we solder it with 2.54mm male headers,of course,you can use other methods.There are eight GND 1x3pin 2.5mm holes, you can solder them freely for constructing purpose .For general structure connecting purpose, you can solder either female headers or male headers.However,you should solder male header on these ports for construction purpose.

Step 2: Solding the Header(2.54mm),Connecting the Board2 and Board3

Now let's start to make it!

In order to make it more simple to understand,we numbered all the boards.

The tools you may needed:soldering machine,male headers and pliers.

Connecting the board2 and board3:putting the two sides of male header inset in the "in" ports (the holes with the" I " marking) and "out" ports (the holes with the" O" marking) respectively on the board2 and board3.

Attention:you need to dislodge the plastic on the male header.

Detail please refer to the pictures.

Step 3: Connect the Board2, Board3,board4,board5

You can use the same method to connect the board3 with board 4 and board 4 with board5.

Attention:you shoud not connect the board2 and board 5 with "in" port and "out" port,instead,you can connect them by jointing any two(1x3pin 2.5mm holes)corresponding GND holds respectively on the two board.

Step 4: Connect the Board1 and Board6

At the Step1,you have seen a picture showing you how to connect the board 1 and board 6,in order to make sure the structure more firmly,you can soldering the GND as well.

So far,a LED cube is finished.Here comes the most exciting moment! Just switching on the power,you will witness the beautuful shining Cube made by yourself shining as you wanted.

Step 5: Download the Code

Download the code

Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);

Change the number of LED lights.

Step 6:

Be the First to Share


    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    5 Discussions

    J. HilarioG
    J. HilarioG

    Tip 1 year ago

    Bonita idea, tanto me ha gustado que he intentado hacer algo parecido. Las matrices son algo diferentes pero funciona y se pueden programar divertidos juegos de luces.


    Reply 1 year ago

    Hello J. HilarioG,

    Yes, it is the same thing. Just curiously, in your PCB design, you also use the male header and THT holes to finish the construction? It would be hard to solder them together.

    Another idea is, maybe we can use half-cut holes to solder them together, no need pin headers! Let me know what you think!



    J. HilarioG
    J. HilarioG

    Reply 1 year ago

    No, en mi caso las matrices no venían con agujeros sino con puntos de soldadura, las conecté mediante cable flexible. La imagen te dará una idea.

    Saludos y suerte

    J. Hilario


    4 years ago on Step 5

    Great images, helps understand the concept and thanks for the code!