I want to create an Led Cube 4x4x4 with an ATMEGA 16 chip. Because is my first electronic project, I connect leds on layers(horizontally) with common anodes and vertically with common cathodes.

Can you tell me please, what's the differences and how can I continue(if is possible)? I have bought 16 resistors of 220 ohms and 4 transistors 2N222 instead of BC337. Can you tell me, please, if I can use these components without recreate the Cube? Thank you.

Edited: This is the schematic I followed at the beginning of the project but now I don't know if is possible anymore.I'm sorry that isn't in that format, but it takes a lot of time to add all leds and pins of uC.enter image description here

  • 3
    \$\begingroup\$ Welcome to EE.SE! Please draw a schematic diagram. \$\endgroup\$
    – winny
    May 12, 2019 at 17:22
  • 1
    \$\begingroup\$ A schematic is better than words. You can add one in using the CircuitLab button on the editor toolbar. Double-click a component to edit its properties. 'R' = rotate, 'H' = horizontal flip. 'V' = vertical flip. Note that when you use the CircuitLab button on the editor toolbar an editable schematic is saved in your post. That makes it easy for us to copy and edit in our answers. You don't need a CircuitLab account, no screengrabs, no image uploads, no background grid. \$\endgroup\$
    – Transistor
    May 12, 2019 at 17:58
  • \$\begingroup\$ If this is your first project, I recommend building a known working design, like this: jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html \$\endgroup\$
    – Mattman944
    May 12, 2019 at 18:20
  • \$\begingroup\$ I followed this tutorial for making the Led Cube. https://www.youtube.com/watch?v=0qYi1MYT5Lk \$\endgroup\$ May 12, 2019 at 19:32
  • \$\begingroup\$ And this is the complete tutorial instructables.com/id/LED-CUBE-4X4X4-USING-ARDUINO-UNO \$\endgroup\$ May 12, 2019 at 19:56

1 Answer 1


4 transistors 2N222 instead of BC337

The 2N2222 is 600 mA max and BC337 is 800 mA max.
Either will work fine, and with plenty of overhead.

Can you tell me, please, if I can use these components without recreate the Cube?

You do not need to make a cube out of the LEDs.
The 220 Ω resistors are what is recommended.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.