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 720 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 61 times
(267.99 KiB) Downloaded 60 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 720 times



In total there are 6 users online :: 0 registered, 0 hidden and 6 guests
Registered users: No registered users
Most users ever online was 33 on Sat Mar 09, 2019 8:21 pm
Total posts 489
Total topics 371
Total members 70
Our newest member Mirasoida
No birthdays today