4x4x4 LED cube using AT89C2051

User avatar
DK Pramis
Posts: 4
Joined: Tue Oct 24, 2017 5:35 pm

4x4x4 LED cube using AT89C2051

Sat Oct 28, 2017 8:01 pm

6-4-800x472.jpg (68.57 KiB) Viewed 552 times
This 4x4x4 LED cube for use in science laboratories is very easy to assemble. Its LEDs light up in different patterns, creating mesmerising lighting effects.
Circuit diagram of 4x4x4 LED cube using AT89C2051.jpg
The cube uses 64 green LEDs to make a 4 rows×16 columns structure. All the LEDs are wired to 74HC154 decoder and AT89C2051 microcontroller. AT89C2051 is a 20-pin MCS-51 family controller having only two input/output ports.


The circuit is controlled using the software program loaded into the internal 2kB memory of AT89C2051. The program implements all the required functionalities. It is written in embedded C programming language and compiled using Keil µvision 4 IDE.

The code has five loops (stage1, stage2, stage3, stage4 and stage5) for demo purpose to show how you can control the 4x4x4 LED cube. You can include many more loops to create amazing lighting effects and patterns.

The hex code generated by the compiler is programmed into the microcontroller. At EFY Lab, ProgISP programmer was used to program the IC.

The Software and Template
4x4x4 LED Cube Using AT89C2051.rar
(1.69 KiB) Downloaded 47 times
(267.99 KiB) Downloaded 47 times
After assembling the circuit on the PCB, connect CON2 to row LEDs and CON3 to column LEDs using external wires. Testing is relatively simple and user-friendly. When you connect 230V AC mains power supply to the circuit, the LED cube automatically starts glowing with lighting effects.

The Parts List
parts-list-5-473x800.jpg (75.81 KiB) Viewed 552 times



In total there are 4 users online :: 0 registered, 0 hidden and 4 guests
Registered users: No registered users
Most users ever online was 156 on Sun Jun 17, 2018 7:42 am
Total posts 449
Total topics 328
Total members 62
Our newest member anonymous-kali
No birthdays today