RGB LEDCUBE Using NEOPIXEL LEDs and PCB

by EDISON SCIENCE CORNER in Circuits > Electronics

1602 Views, 9 Favorites, 0 Comments

RGB LEDCUBE Using NEOPIXEL LEDs and PCB

RGB PIXELCUBE | DIY | JLCPCB
IMG_20220212_144826.jpg
IMG_20220212_124120.jpg
IMG_20220212_143633.jpg
IMG_20220212_144354.jpg

Hello there

LEDs are one of the fascinating and attractive electronic components. We usually use LEDs for decoration. LED cubes are such a 3-dimensional decorative item. I have already built some led cubes like 2*2, 4*4 even build a 4*4 RGB LED cube using Charlie plexing method. These are interesting stuff but it took days to build a good looking LEDCUBE. Here once again I am going to make a 4*4 RGB LED cube but this time I am gonna use PCBs to build the cube that will magically reduce the time of making. Also i am going to use WS2812B Neopixels, this gives more colours and easy programming. So let's see how to make this.

MATRIX LAYER CIRCUIT DIAGRAM

Schematic_neo pixel cube_2022-04-22.png
IMG_20200708_162905-01.jpeg

As always everything starts from a circuit. So first I decided on the type of LEDs. I am going with this WS 2812B Neopixels because these LEDs are capable of delivering RGB colours also we can control thousands of LEDs using a single input. This neopixel has 4 leads 5v, gnd, data in and data out. You can find more details from the datasheet The circuit is pretty simple we are making 4*4 matrixes. later we use 4 of these matrixes stack and make the 4*4*4 led cube. So this is the 4*4matrix we are just connecting the dout of first led to the second and so on.

PCB DESIGNING AND FABRICATION

Screenshot (87).png
Screenshot (89).png
Screenshot (88).png
Screenshot (90).png
Screenshot (91).png
Screenshot (93).png
IMG_20220108_223819.jpg
IMG_20220108_223921.jpg

After designing the circuit I converted the design into a PCB and arranged the LEDs in a 4*4 matrix pattern and designed the PCB. I removed most of the PCB to get a better look. After finishing the design our PCB looks something like this. Now I generated the Gerber files and went to JLCPCB for PCB fabrication. JLCPCB gives 5 PCBs for just 2 dollars and PCB assembly starts from 0 dollars. I uploaded the Gerber and selected the colour and placed the order. After two weeks I received the PCBs and the look PCBs are nice and the quality is superb.

order your PCBs from JLCPCB only $2 for 5pcs 1-4 layer PCBs ;PCBA from $0

download the Gerber file from here

COMPONENTS REQURED

IMG_20220108_223712.jpg
IMG_20220202_162445.jpg
IMG_20220202_162243.jpg
IMG_20220202_162453.jpg
IMG_20220202_162433.jpg

1. WS 2812B Neopixel led*64

2. Arduino pro mini

3.tp4056 charging module

4.3.7volt lithium-ion battery

5. on/off switch

6. button switch

7. copper wire

8.3d printed base

9. custom PCBs

Making the Matrix Layer

IMG_20220108_151404 - Copy.jpg
IMG_20220108_152138 - Copy.jpg
IMG_20220108_153010 - Copy.jpg
IMG_20220108_223549.jpg
IMG_20220108_223835.jpg
IMG_20220108_223903.jpg
IMG_20220108_223851.jpg

I grabbed the Neopixel LEDs and placed them on the PCB using a tweezer. After placing I solder the LED to the PCB using the normal soldering iron. You can use a hotplate for this process. After finishing the soldering of the first led I repeated the process for the remaining LEDs. After finishing the matrix I tested the matrix. And worked without any problem. Similarly, I made 3 more layers.

Making the LEDCUBE

IMG_20220108_230244.jpg
IMG_20220108_230840.jpg
IMG_20220108_231158.jpg
IMG_20220108_233032.jpg
IMG_20220202_162221.jpg
IMG_20220202_162225.jpg

Now it's time to stack matrixes one over the other for that I am using 1mm thick copper wire. We need four of them. First, I connected the 4 wires to the first layer and then inserted the other layers through the copper wire. and soldered the layer to the copper wire. I checked everything with the multimeter and tested once again after finishing all the layers our cube looks like this.

Controller Circuit

Schematic_neo pixel cube_2022-04-26.png

Now let's build the controller circuit that we need an Arduino pro mini, a tp4056 with a li-ion battery, a button switch and an on/off switch.

3D Desinging

Screenshot (94).png
Screenshot (95).png

To enclose everything I designed a base box and its cover using tinkercad. also, I added slots for push button and on/off switch.

3D Printing

IMG_20220202_162504.jpg
IMG_20220202_162539.jpg
IMG_20220202_165200.jpg
IMG_20220202_164922.jpg
IMG_20220202_165211.jpg

I 3d printed the design using my ender 3. here I used black PLA and 20% infill. After 3 d printing, first I connected flexible wires to the switch and button. Then I inserted the switches into its socket and secured them with hot glue. After that, I placed the tp4056 and the battery. now let's place the cube on top of the base and finally, I placed the Arduino pro mini inside the enclosure.

Controller Circuit Making

IMG_20220203_203149.jpg
IMG_20220203_203200.jpg
IMG_20220203_203151.jpg
IMG_20220130_175803.jpg
IMG_20220130_175810.jpg
IMG_20220212_121646.jpg
IMG_20220212_121650.jpg

After placing everything inside the box I started soldering. I connected all grounds together, VCC of Arduino and Neopixel connected through the switch. finally, I placed the neopixel cube on top of the enclosure and connected the data in pin to D9.

Programming

IMG_20220203_203327.jpg
IMG_20220203_203329.jpg

after finishing the soldering I uploaded the code to pro mini through a USB to TTL converter. So finally I printed the cap of the base and closed it. That's the end of the long build. Rest is testing Now you can see the mesmerizing animations and colour patterns. You can make your own patterns with your ideas. Now enjoy the show.

Downloads

HAPPY MAKING

IMG_20220212_144823.jpg
IMG_20220212_144535.jpg
IMG_20220203_205946.jpg
IMG_20220212_143703.jpg
IMG_20220212_144448.jpg
IMG_20220203_205918.jpg
RGB PIXELCUBE | DIY | JLCPCB

So guys this is how I made an led cube using PCBs. you can download the circuit, code, and STL files Hope you enjoyed and learned something from my tutorial if so please like share and comment all up to you I will see you next time.....