3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED Cube 4x4x4

Step 6Choosing resistor values

Choosing resistor values
There are two things to keep in mind when choosing a resistor value for your leds.
1) The LEDs
2) The AVR

The AVR has a maximum combined current rating of 200 mA.
This gives us 12mA to work with per LED.

You also don't want to exceed the maximum current your leds are rated to.

I used 220 ohm resistors on my cube. This gave me about 12mA per led.
« Previous StepDownload PDFView All StepsNext Step »
8 comments
Dec 15, 2011. 2:36 PMbrujita038 says:
Do you use 220k ohms or 220ohms ? because these blue resistors looks like 220k, not 220
Jan 13, 2011. 2:49 PMRyan McDougall says:
Could I use 200 ohm resistors instead of 220 ohms for the LEDs


Nov 27, 2010. 8:30 AMFFNN says:
could u explain a bit more on choosing the resistor values?

In my understanding the resistor value should be obtained using this equation
( Source Voltage - LED Voltage Drop ) / Amps.

So for a blue LED with forward current 30mA and forward voltage:3.6V
The resistor shoud therefore be (5v-3.3v)/30mA = 56ohm?

Nov 27, 2010. 8:42 AMFFNN says:
Just saw this below

"Yeah, but if you light up all 16 LEDs in a layer at 25mA, you'd be pulling double the AVR's max rated curren"

isn't that avr is coded to light up the led one by one very quickly?
So that it seems to be lighted up at the same time?

May 9, 2009. 7:40 AMTadmen says:
I have green leds with the following specs:
Forward Voltage: 2, Reverse Current <=30mA, Forward Current: 30mA. Will they work and could you help with the resistor value here.
Thanks
May 24, 2009. 3:42 AMDanielIt says:
Well i calculated that for a 4.5V supply(counting the 0.5V drop inside the Atmega16), for a 2V led @ 25mA you get an 100 Ohm resistor @ 1/8mW. I am using the same Led's on my project and they look cool, just that i used a 47Ohm resistor to get them to light a little more,as in the daylight you cant see the effect.
Mar 28, 2010. 3:34 PMpiersg says:
 Yeah, but if you light up all 16 LEDs in a layer at 25mA, you'd be pulling double the AVR's max rated current. 
May 24, 2009. 3:47 PMTadmen says:
Thanks for your help. I'll try to build it soon.
Aug 25, 2009. 4:08 PMLetsExplodeSomething says:
i would like to build one but it all looks too complicated for me.
Jan 3, 2009. 10:07 AMforte1994 says:
what is the other port for?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
652
Followers
7
Author:chr
I like microcontrollers and LEDs :D