10k Ohm Resistor - Pack of 10
10k Ohm Resistor - Pack of 10
The 10k Ohm Resistor - Pack of 10 is a set of ten fixed value resistors with a resistance value of 10 kilohms (10,000 ohms). These resistors are designed to restrict the flow of electrical current in a circuit, providing a precise and stable resistance value to ensure reliable operation.
The primary function of a 10k ohm resistor is to |
Limit the amount of electrical current flowing through a circuit
Divide voltage levels in a circuit
Provide impedance matching and signal attenuation
Act as a pull-up or pull-down resistor in digital circuits
Reduce electromagnetic interference (EMI) and radio-frequency interference (RFI)
3.5 mm to 6.5 mm (0.14 in to 0.26 in)
1.5 mm to 2.5 mm (0.06 in to 0.10 in)
The color code of a 10k ohm resistor is typically brown-black-red, indicating a resistance value of 10 kilohms.
When handling the resistors, it is essential to follow proper static electricity precautions to prevent damage.
The resistors are suitable for both prototyping and production purposes.
Datasheets and specifications may vary depending on the manufacturer and specific product. Always verify the documentation provided by the supplier or manufacturer.
10k Ohm Resistor - Pack of 10
Overview
The 10k Ohm Resistor is a passive electronic component that reduces the voltage or current in a circuit. It is a fundamental component in various IoT projects, such as sensor circuits, voltage dividers, and signal attenuation. This pack of 10 resistors provides a convenient supply of 10k Ohm resistors for your IoT projects.
Specifications
Resistance: 10k Ohm 5%
Power rating: 1/4 watt
Tolerance: 5%
Operating temperature: -55C to 155C
Using the 10k Ohm Resistor in IoT Projects
Here are three code examples that demonstrate how to use the 10k Ohm Resistor in various IoT projects:
Example 1: Voltage Divider with Arduino
In this example, we'll use the 10k Ohm Resistor as part of a voltage divider circuit to measure the voltage of a battery using an Arduino board.
Circuit Diagram
R1 (10k Ohm) - Vcc (5V) - R2 (2k Ohm) - GND
| |
| |
| Vin (Battery Voltage)
Arduino Code
```c
const int vinPin = A0; // Analog input pin for voltage measurement
int vinValue = 0; // Variable to store voltage value
float vinVoltage = 0.0; // Variable to store calculated voltage
void setup() {
Serial.begin(9600);
}
void loop() {
vinValue = analogRead(vinPin); // Read analog value from pin A0
vinVoltage = (vinValue 5.0) / 1023.0; // Calculate voltage using voltage divider ratio
Serial.print("Battery Voltage: ");
Serial.print(vinVoltage);
Serial.println(" V");
delay(1000);
}
```
Example 2: Pull-up Resistor for a Switch with Raspberry Pi
In this example, we'll use the 10k Ohm Resistor as a pull-up resistor for a switch connected to a Raspberry Pi.
Circuit Diagram
R1 (10k Ohm) - GPIO Pin (Raspberry Pi) - Switch - GND
Python Code (Raspberry Pi)
```python
import RPi.GPIO as GPIO
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define the GPIO pin for the switch
switch_pin = 17
# Set up the GPIO pin as an input with a pull-up resistor
GPIO.setup(switch_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
# Read the state of the switch
switch_state = GPIO.input(switch_pin)
if switch_state:
print("Switch is ON")
else:
print("Switch is OFF")
time.sleep(0.5)
```
Example 3: Signal Attenuation for a Sensor with ESP32
In this example, we'll use the 10k Ohm Resistor to attenuate the signal from a sensor connected to an ESP32 board.
Circuit Diagram
R1 (10k Ohm) - Sensor Output - R2 (2k Ohm) - ESP32 Analog Input - GND
C Code (ESP32)
```c
#include <WiFi.h>
const int sensorPin = 32; // Analog input pin for sensor
int sensorValue = 0; // Variable to store sensor value
float sensorVoltage = 0.0; // Variable to store calculated voltage
void setup() {
Serial.begin(115200);
}
void loop() {
sensorValue = analogRead(sensorPin); // Read analog value from pin 32
sensorVoltage = (sensorValue 3.3) / 4095.0; // Calculate voltage using voltage divider ratio
Serial.print("Sensor Voltage: ");
Serial.print(sensorVoltage);
Serial.println(" V");
delay(1000);
}
```
These examples demonstrate how the 10k Ohm Resistor can be used in various IoT projects to perform tasks such as voltage measurement, switch debouncing, and signal attenuation.