100K Ohm Resistor (Pack of 10)
=============================
The 100K Ohm Resistor is a versatile electronic component used to control the flow of electric current in a circuit. This pack of 10 resistors provides a convenient and cost-effective way to implement resistance in various IoT projects. With a resistance value of 100 kilohms, these resistors are suitable for a wide range of applications, from voltage dividers to signal attenuation.
Specifications
---------------
Resistance: 100 kilohms (100,000 ohms)
Power rating: 1/4 watt
Tolerance: 5%
Temperature coefficient: 500 ppm/C
Package:-Pack of 10
Code Examples
----------------
### Example 1: Voltage Divider (Arduino)
In this example, we'll use the 100K Ohm Resistor to create a voltage divider circuit that reduces the voltage from a 5V power source to 3.3V, suitable for many IoT devices.
100K Ohm Resistor (R1)
22K Ohm Resistor (R2)
Breadboard
Arduino Board (e.g., Uno or Nano)
Jumper wires
R1 (100K Ohm) and R2 (22K Ohm) are connected in series between the 5V power source and ground.
Code:
```c
const int inputVoltage = 5; // 5V power source
const int R1 = 100000; // 100K Ohm resistor
const int R2 = 22000; // 22K Ohm resistor
void setup() {
pinMode(A0, INPUT); // Voltage divider output
}
void loop() {
int sensorValue = analogRead(A0);
float voltage = sensorValue (inputVoltage / 1023.0);
Serial.print("Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000);
}
```
### Example 2: Signal Attenuation (Raspberry Pi)
In this example, we'll use the 100K Ohm Resistor to attenuate a signal from a sensor, reducing its amplitude to prevent overwhelming the analog-to-digital converter (ADC) on a Raspberry Pi.
100K Ohm Resistor (R1)
Sensor (e.g., photodiode or potentiometer)
Breadboard
Raspberry Pi
Jumper wires
R1 (100K Ohm) is connected in series between the sensor output and the Raspberry Pi's ADC input.
Code:
```python
import RPi.GPIO as GPIO
import time
# Set up ADC input
GPIO.setup(18, GPIO.IN)
while True:
# Read ADC value
adc_value = GPIO.input(18)
# Calculate attenuated signal value
signal_value = adc_value (5.0 / 1023.0)
print("Signal value: {:.2f} V".format(signal_value))
time.sleep(0.1)
```
Note: In this example, we assume the sensor output is within the 0-5V range. Adjust the resistor values and code according to your specific sensor requirements.
Safety Precautions
--------------------
Handle the resistors with care to avoid damage or electrical shock.
Ensure the circuit is properly connected and powered down before making any changes.
Use protective equipment, such as safety glasses and a soldering iron stand, when working with electronic components.
By incorporating the 100K Ohm Resistor into your IoT projects, you can effectively control the flow of electric current and create reliable, efficient circuits.