Pages: [1]   Go Down
Author Topic: led cube question  (Read 570 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm building a led cube and the guide I'm following says to use 150 ohm resistors. They are using 5mm leds but I am using 3mm leds. Would the resistors values be the same for 3mm leds as for 5mm leds? Also the guide doesn't mention the power rating or tolerance of the resistors to use. Should I get 1/4 W 150 ohm resistors?
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 518
Posts: 26366
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Resistor value depends on Forward Voltage Rating (Vf) of the LED and how much current you want to flow.
Vf changes with color - red can be as low as 2V, blue & green higher, up to  3.6V.
Ohms law determines the value. Voltage (V)/current (I) = resistance (R), so V=IR
(Vsource - Vf)/current = resistance
Driving from Red LEDs from Arduino pins at LED maximum current?
(5V - 2V)/20mA = 150 ohm

Green/Blue?
(5-3.3)/.02 = 85 ohm

Power dissipated by resistors: Power = Current * Voltage, and V=IR
so power dissipated can be P=I*I*R.
20mA * 20mA * 150 =  .06W, or 60mW.
1/8W or 1/4W resistors will be fine.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: