A resistor is a passive electrical component that limits or regulates the flow of electrical current in a circuit. It is characterized by its resistance value, measured in ohms (Ω). Resistors are fundamental components in electronics and are used to control voltage and current levels, divide voltages, and protect sensitive components from excessive current.
Resistors are non-polarized components, meaning they do not have a specific orientation in a circuit. They typically have two leads, as shown below:
Pin Number | Description |
---|---|
1 | First terminal for connection |
2 | Second terminal for connection |
Resistors often use a color code to indicate their resistance value. Below is a simplified chart:
Band Color | Digit Value | Multiplier (Ω) | Tolerance (%) |
---|---|---|---|
Black | 0 | 1 | N/A |
Brown | 1 | 10 | ±1% |
Red | 2 | 100 | ±2% |
Orange | 3 | 1,000 | N/A |
Yellow | 4 | 10,000 | N/A |
Green | 5 | 100,000 | ±0.5% |
Blue | 6 | 1,000,000 | ±0.25% |
Violet | 7 | 10,000,000 | ±0.1% |
Gray | 8 | N/A | ±0.05% |
White | 9 | N/A | N/A |
Below is an example of using a resistor to limit current for an LED connected to an Arduino UNO:
// Example: LED with current-limiting resistor
// Connect the LED anode (+) to pin 13 of Arduino through a 220Ω resistor.
// Connect the LED cathode (-) to GND.
int ledPin = 13; // Pin connected to the LED
void setup() {
pinMode(ledPin, OUTPUT); // Set pin 13 as an output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
Resistor Overheating:
Incorrect Resistance Value:
Circuit Not Working as Expected:
LED Not Lighting Up:
Q: Can I use multiple resistors to achieve a specific resistance value?
Q: How do I calculate the power dissipation of a resistor?
Q: What happens if I use a resistor with a lower power rating than required?
Q: Are resistors polarized?
This documentation provides a comprehensive guide to understanding and using resistors in electronic circuits.