I know this has been beaten to death but I am messing something up on my math when calculating voltage drop with resistors. I have a 12v supply and I need to drop it to 3v to power a red led. What resistor should I use?
no no no... The red LED will drop 3V across it... it's the nature of semiconductors... what you need to do is calculate the resistor size to set the current in the LED...
(12V-3V) / desired current. If you use current in mA, the resistor will be in Kohms.
The amount of desired current is dependent on the particular LED, and how it's used (if high temp. environments you have to lower the current to ease back on power dissipation).
Just because the LED's current is 20mA there is no need to illuminate it at the full current. Using half the current the LED is almost always plenty bright. I use a lot of LED indicators on approximately 12V DC. I use a 1k 1/4watt resistors. The extra resistance gives some latitude if the voltage is higher than 12V.
You need to know the forward voltage of the LED and the current required.
As I said above, I doubt your red LED is really 3V, just because you might've got away with connecting it to a 3V battery for a short period of time without it failing, it doesn't mean it's nominal voltage is 3V, it's far more likely a high current flowed and clamped the battery voltage to around 2V, probably slightly more.
I've been seeing higher drops lately... 2.0-2.9 for red/yel and up to 3.2-4.0 for blue... damn pretty but expensive blue LEDs... even higher for the really bright ones
Higher voltage drops are generally for shorter wavelengths and higher powered LEDs. I think the highest voltage drop red LED I've seen is 3V but it was a power LED rated at 350mA, not a little 5mm indicator.
Anyway with a power supply voltage of 12V it doesn't matter as long as the current isn't calculated for the maximum current rating.