For my led cube i still need resistors. I'm going to make an 5x5x5 led cube with an arduino mega 1280.
Specifications:
Microcontroller ATmega1280
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 128 KB of which 4 KB used by bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
I bought 5mm leds without specifications.
based on some information found on the internet, a white led uses 3.2v, 32a, see: http://ledcalculator.net/
when i search on websites which resistor i have to use, i found a lot of different values. Can anyone give me the correct resistor value to be sure that it will work for the cube?
5v seems a bit high, but that maybe correct, im not sure. I used some while LEDs from cheapo flashlights, and they were running at 4.5v (3 AAA batteries).
Do you have any info in the LEDs? How much current do they support? most smaller LEDs (like 5mm) seem to be 20ma. You will need to know how much current you want to send them, and what voltage you are using to calculate the proper resistor size.
How are you driving the LEDs. If you are driving them with constant current drivers, you wont need resistors on the LEDs (but you will need to set the current with a resistor).
Are you running this off the power from the arduino, or do you have a separate power supply? if your power supply is running higher than 5v, you may need resistors based on the voltage from your power supply.
Search for LED calculator, and you will find websites that will help you figure out the proper resistor size.
To find out your forward voltage, you may need to hook up a resistor, and measure the volatage to calculate the current, then try the right size resistor and measure the current (to make sure its actually doing what you want).
Hippynerd:
5v seems a bit high, but that maybe correct, im not sure. I used some while LEDs from cheapo flashlights, and they were running at 4.5v (3 AAA batteries).
Maybe you can get a datasheet from the vendor. I looked, and didnt find any specs on the website, and I read a bunch (but not all 56 reviews), and found nothing of value.
If you get nothing from the vendor, you can still figure it out yourself, but it may take an hour out of your life, to learn, and apply the information you learn, to calculate the specs for yourself.
Nobody here will be able to do that for you. The only thing you could hope for is that someone reading your thread bought the exact same LEDs from the same vendor, and did the calculations themselves, and even then you would have to trust a stranger. It seems to me, you will be better off just doing it yourself.
Hook up an LED with a 220 ohm resistor using +5 & Gnd.
Measuse the voltage across the LED when it is on, that will tell you Vf.
Measure the voltage across the resistor (= 5V - Vf) and divide by the resistor value, that will tell you much current was going thru:
V/R = current
so for example (5 - 3.2)/220 = ~8.2mA
Do not power the LED from 9V and try to control it from an arduino pin.