Description
50PCS 20K ohm 20000 ohm 1/4w 1/4 w 5%
Tutorial: How to Use 20K ohm Resistor
20K ohm resistors are essential for regulating electrical currents in various circuits. This component is ideal for both beginners and more experienced makers, finding applications in Arduino projects, 3D printing, and prototypes.
What you need
- Arduino Uno
- Led
- Connectors
Steps
- Check the datasheet for the correct resistor to use in your circuit.
- Connect one end of the resistor to the output pin of the Arduino and the other end to one of the contacts of the Led.
- Write the Arduino code to turn the Led on or off through the resistor.
- Verify that the Led turns on correctly without burning out.
Example code
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Mini project
Create a simple home alarm system that turns on the Led when a door or window is opened.
Common mistakes
- Using a resistor that is too small, risking burning out the Arduino.
- Omitting the resistor in the circuit, causing damage to the LED or other components.
- Connecting the Arduino pin and the LED incorrectly.
- Failing to check the specifications of the resistor used on the datasheet.
Recommended accessories
- Connection for Arduino
- LEDs of various colors
- Resistors of various values
Frequently asked questions
Why does the resistor burn out?
The resistor can burn out if its value is too low or if there is no proper circuit to protect the components.
What value of resistor should I use with an LED?
Check the LED’s datasheet for its maximum voltage and current, then calculate the value of the resistor needed to limit the current to the LED’s maximum value.







Reviews
There are no reviews yet.