In this instructable, we are going to make a led cube (3 * 3 * 3) using arduino uno. In total, we require a total of 27 leds.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Things Required
- Arduino uno
- 27 LEDs
- 8 220 ohms resistor
- Jumper wires
Step 2: Connections
Make connections as given in the diagram
In 3*3*3 led cube, basically there are three layers. In first layer, ground is common for 9 leds and same for layer 2 and layer 3.
There are 9+3 output pins, 9 for anode and three for 3 layers.
We are using ULN2003 IC, since arduino can't provide enough current to drive all the 27 led simultaneously.Anode pins are connected from pin no. 2 to 10.
Upload the code given below to your arduino board