4*4*4 LED Cube

1578
4X4X4 LED Cube
4X4X4 LED Cube

4*4*4 LED Cube In this Post. We show you how to make a 4*4*4 LED Cube for 8051 in just rs 300 to 400rs. In The cube, we use four led in 1 line, and one floor contains 4 LED line, so we need 16 led in each, so we need four levels to make 4*4*4 LED Cube, so total 64 led required to make this cube. Regularly glow this cube we need an operating system, so we make operation system using 8051, These are all wired to an Arduino Uno. An Arduino is a single-board microcontroller. Here we use 8-bit 8051 microcontrollers for a drive this cube. We also need Code for a ride this Circuit that code also given in the description.

This 4x4x4 LED Cube is used as a decorative piece also, so you have to make this.

4*4*4 LED Cube

Watch This video for making this project step by step and Download This Video From Click on 4*4*4 LED Cube Video

step1: Arrange all Component of the led cube

we need some component whose list given below

  1. 64 LED(Any Color)
  2. 6*4 Copper Plate(PCB)
  3. 40pin IC Base
  4. AT89s51 Controller
  5. 1000uf 25v Capacitor
  6. 10uf Capacitor
  7. 33pf Capacitor
  8. 11.0592 Mhz Cristal
  9. Indication LED(Red and Green)
  10. 1k resistance 20
  11. 10k resistance 1
  12. 1n4007 Diode
  13. BC557 transistor 4

if you want to buy this component in just 800/- Rs (With Code Loaded Controller) Please Leave Comment in Comment Box

step2: Make a led cube

This video, we show you that how to make this cube in step by step and step are as follow

  1. make all 64 LED Blur for clear vision
  2. Male Line of 4 LED For Creating a floor
  3. Make Flor of 4 Line of led
  4. Connect all 4 floor for make Cube Perfectly
  5. after Completion of making LED Cube, we need PCB For Mount Cube on it So we give you layout Diagram For This Circuit hear and you can download it from a click on it4*4*4 LED Cube LayoutYou can download the rational image by click on it
  6. Print This Image On PCB (If You Don’t Know How to Print This Layout on PCB, Please SHOW This Video) PCB Printing Process.
  7. After Etching, Drilling we Assemble the Component On PCB Which shown in First Video
  8. Load A Code into Controller Threw Loader And Code file is Given hear

You Can Download This Code By Click Hear 4*4*4 LED Cube Code

#include<reg51.h>
#include<stdio.h>

sbit f1=P1^0;
sbit f2=P1^1;
sbit f3=P1^2;
sbit f4=P1^3;
sbit l=P3^5;
void dl()
 {
 int x,y;
  for(x=0;x<100;x++)
   {
    for(y=0;y<100;y++);
   }
 }

void dl2()
{
 int x,y;
  for(x=0;x<50;x++)
   {
    for(y=0;y<100;y++);
   }
 }

void dl3(int x)
 {
 int y;
  while(x>0)
   {
    x--;
    for(y=0;y<10;y++);
   }
 }

void pat1()
{
f1=0;P0=(~(0xff));P2=(~(0xff));dl();P0=0xff;P2=0xff;f1=1;
f2=0;P0=(~(0xff));P2=(~(0xff));dl();P0=0xff;P2=0xff;f2=1;
f3=0;P0=(~(0xff));P2=(~(0xff));dl();P0=0xff;P2=0xff;f3=1;
f4=0;P0=(~(0xff));P2=(~(0xff));dl();P0=0xff;P2=0xff;f4=1;
f3=0;P0=(~(0xff));P2=(~(0xff));dl();P0=0xff;P2=0xff;f3=1;
f2=0;P0=(~(0xff));P2=(~(0xff));dl();P0=0xff;P2=0xff;f2=1;
}

void pat2()
{
f1=0;f2=0;f3=0;f4=0;
P0=(~(0x48));P2=(~(0x12));dl2();P0=0xff;P2=0xff;
P0=(~(0xc8));P2=(~(0x13));dl2();P0=0xff;P2=0xff;
P0=(~(0xc0));P2=(~(0x03));dl2();P0=0xff;P2=0xff;
P0=(~(0x30));P2=(~(0x0c));dl2();P0=0xff;P2=0xff;
P0=(~(0x31));P2=(~(0x8c));dl2();P0=0xff;P2=0xff;
P0=(~(0x21));P2=(~(0x84));dl2();P0=0xff;P2=0xff;
P0=(~(0x23));P2=(~(0xc4));dl2();P0=0xff;P2=0xff;
P0=(~(0x22));P2=(~(0x44));dl2();P0=0xff;P2=0xff;
P0=(~(0x44));P2=(~(0x22));dl2();P0=0xff;P2=0xff;
f1=1;f2=1;f3=1;f4=1;
}

void pat3()
{
f1=0;f2=0;f3=0;f4=0;

P0=(~(0x44));P2=(~(0x22));dl2();P0=0xff;P2=0xff;
P0=(~(0x22));P2=(~(0x44));dl2();P0=0xff;P2=0xff;
P0=(~(0x23));P2=(~(0xc4));dl2();P0=0xff;P2=0xff;
P0=(~(0x21));P2=(~(0x84));dl2();P0=0xff;P2=0xff;
P0=(~(0x31));P2=(~(0x8c));dl2();P0=0xff;P2=0xff;
P0=(~(0x30));P2=(~(0x0c));dl2();P0=0xff;P2=0xff;
P0=(~(0xc0));P2=(~(0x03));dl2();P0=0xff;P2=0xff;
P0=(~(0xc8));P2=(~(0x13));dl2();P0=0xff;P2=0xff;
P0=(~(0x48));P2=(~(0x12));dl2();P0=0xff;P2=0xff;

f1=1;f2=1;f3=1;f4=1;

}

void pat4()
{
f1=1;f2=1;f3=1;f4=1;
P0=(~(0xff));P2=(~(0xff));
f1=0;dl();
f2=0;dl();
f3=0;dl();
f4=0;dl();
f4=1;dl();
f3=1;dl();
f2=1;dl();
f1=1;dl();
}

void pat5()
{
f1=1;f2=1;f3=1;f4=1;
P0=(~(0xff));P2=(~(0xff));
f4=0;dl();
f3=0;dl();
f2=0;dl();
f1=0;dl();
f1=1;dl();
f2=1;dl();
f3=1;dl();
f4=1;dl();
}

void pat6()
{
f1=1;f2=1;f3=1;f4=1;
P0=(~(0xff));P2=(~(0xff));
f4=0;dl3(5);
f3=0;dl3(5);
f2=0;dl3(5);
f1=0;dl3(5);
f1=1;dl3(5);
f2=1;dl3(5);
f3=1;dl3(5);
f4=1;dl3(5);
}

void patfin(unsigned char x11,unsigned char x12,unsigned char x21,unsigned char x22,unsigned char x31,unsigned char x32,unsigned char x41,unsigned char x42,unsigned char x)
{
f1=1;f2=1;f3=1;f4=1;

while(x>0)
{
f1=0;P0=~x12;P2=~x11;dl3(10);f1=1;
f2=0;P0=~x22;P2=~x21;dl3(10);f2=1;
f3=0;P0=~x32;P2=~x31;dl3(10);f3=1;
f4=0;P0=~x42;P2=~x41;dl3(10);f4=1;
x--;
}

}

void fullon()
{
f1=0;f2=0;f3=0;f4=0;P2=0;P0=0;
}

void fulloff()
{
f1=1;f2=1;f3=1;f4=1;P2=0xff;P0=0xff;
}

void main()
{
unsigned char x,y,z,m,tmp,n;
unsigned char all[64]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
unsigned char print_char[8];
tmp=0;
for(y=0;y<8;y++){print_char[y]=0;}
P1=0xff;
while(1)
 {
  for(x=0;x<3;x++)
  {pat1();l=!l;}
  for(x=0;x<5;x++)
  {pat2();l=!l;}
  for(x=0;x<5;x++)
  {pat3();l=!l;}
  for(x=0;x<5;x++)
  {pat4();l=!l;}
  for(x=0;x<5;x++)
  {pat5();l=!l;}
  for(x=0;x<5;x++)
  {pat6();l=!l;}
  for(m=0;m<1;m++)
{
 for(n=0;n<62;n++)
 {
  if(tmp>62){tmp=0;}
  while(all[tmp]!=0)
  {
   l=!l;
   tmp++;
   if(tmp>62)
    {tmp=0;}
  }
  all[tmp]=1;tmp+=13;
  for(x=0;x<8;x++)
   
  z=  
  for(y=0;y<8;y++){z<<=1;z+=all[(x*8)+y]  
  print_char[x]=  
   
  patfin(print_char[0],print_char[1],print_char[2],print_char[3],print_char[4],print_char[5],print_char[6],print_char[7],15);l=!;
 }

for(n=0;n<5;n++){
 fullon ();dl3(2000);l=!;
 fulloff();dl3(2000);l=!l;
}
//LED_Cube_by_Abhishek_Patel_From_Learn_With_Fun_28_march_2018

for(n=0;n<62;n++)
{all[n]=0;}
}
}

}

You Can Download This Code By Click Hear 4*4*4 LED Cube Code

SHARE
Previous articleHow to make IR Sensor
Next articleLED Blinking Circuit

LEAVE A REPLY

Please enter your comment!
Please enter your name here