Using Resistors in Arduino
Part of the Arduino For Dummies Cheat Sheet
When building your Arduino projects, you use resistors to limit the amount of current going to certain components in the circuit, such as LEDs and integrated circuits. To calculate the resistance, you should use a modified version of Ohm’s Law.
In the following equation, R is resistance; VSUPPLY is the voltage supplied from the power source (this is 5V for a standard Arduino digital pin, but could be more or less if the Vin pin is used); VFORWARD is the voltage required by the component, and I is the current required by the component:
R = (VSUPPLY - VFORWARD) / I
Here is an example for powering an LED:
(5V - 2V) / 0.03A = 100Ω
After you’ve determined which resistor you need, the next task is to find it. Fixed-value resistors use colored bands to indicate the value of the resistor. To find the value you can use a multimeter on the ohms (Ω)
For example, a resistor with brown, black, brown, and gold bands is a 100Ù resistor with a 5% tolerance.