Hello forum
I have a few questions if anyone got the time to correct me or answer some.
I have some knowledge of hardware, but mostly software(programming). I don't have much time for my hobby's. Due to work and family, so please excuse me for being rusty.
Ohms law is V=IxR, I=V/R, R=V/I.
If i have a 5 volt supply and want to power a led. To get the resistor value I would use:
voltage_source - led_voltage / 20 mA = Resistor_value
In parallel it would be:
voltage_source - led_voltage /(20 mA x number_of_leds) = Resistor_value
I have seen resistors in series with leds coming out of a micro. The micro can only output 25mA. So the resistor is pretty much there for the voltage drop?
5v - 2v / 25mA = 120 ohm
I have a few questions if anyone got the time to correct me or answer some.
I have some knowledge of hardware, but mostly software(programming). I don't have much time for my hobby's. Due to work and family, so please excuse me for being rusty.
Ohms law is V=IxR, I=V/R, R=V/I.
If i have a 5 volt supply and want to power a led. To get the resistor value I would use:
voltage_source - led_voltage / 20 mA = Resistor_value
In parallel it would be:
voltage_source - led_voltage /(20 mA x number_of_leds) = Resistor_value
I have seen resistors in series with leds coming out of a micro. The micro can only output 25mA. So the resistor is pretty much there for the voltage drop?
5v - 2v / 25mA = 120 ohm