603Views8Replies

### Author Options:

Ok, I want to have a thing where ive got a battery pack, and then 3 toggle switches and one button switch, each one that is flipped/pushed lights up an LED and then the last one (button) lights up both the led and powers a small hobby motor or something like that. My question is, What do I need resistor-wise? (quantity, location, strength..)

Thanks!

Amendment I want to have the same idea going, but kind of have an extension cord running through it, so I plug the box in, and then plug something into a cord coming from the box.

## Discussions

I have a large LED and a usb bendable two wire extension thingy. What size resistor should I use when I solder the led to the wires. One black and one red. I am making a bendable keyboard illuminator thingy! Is there a correct way to wire the led to the red or the black wire?

Well your resistor solely depends on the amount of voltage coming from the batteries and the the amount of voltage the LED can handle. Are you wiring this is series or parallel?

Actually, the resistor is dependent on the current rating of the LED. It's there to prevent overdriving and frying the LED. I've seen 3v LEDs connected to 120v with an appropriate resistor to limit the current. You calculate the resistor based on the voltage used and the current rating of the LED. IE: 120VDC / 30mA = 4Kohm Resistor.

I think parallel, my conflict is that one resistor would limit the final motor/whatever, so would i need to spilt the wires, and then have a resistor for each led? Im installing a diagram program now, and ill put up one for my plan.

I'm not sure yet..but can you answer this: Does the resistor go on the + or - wire? If i want to power (pulling a number out of my head..obviously not correct) two leds that require 2volts, would i just use a 2volt resistor?

What is your source voltage and the forward voltage for the LED?