Using Resistors in Electronics.

A resistor can be characterized by three parameters:
  • resistance
  • tolerance
  • power


To understand what resistance is, let's imagine a pipe with water flowing through it. Since nothing hinders the movement of water in the pipe, the pressure at the outlet of the pipe will equal the pressure at the inlet. Now let's mentally cut the pipe into two parts and place a mesh between them, like the one in the sieve we sift flour with. It's also desirable to imagine that this mesh has some thickness, but that's optional. Now the pressure at the outlet of the pipe will differ from the pressure at the inlet, and how much it differs will depend on the size of the mesh cells.
Using Resistors in Electronics.

If we draw an analogy with an electrical circuit, current is the water, the resistor is the mesh, and the cell size is the resistance. The function of the mesh is to restrict the water flow, and the main purpose of a resistor in electrical circuits is to limit current.

Tolerance shows how much the real resistance of the resistor can differ from the stated value. A 100 ohm resistor with a 5% tolerance can actually have a resistance of 95 to 105 ohms.

It's known that when current flows through a conductor, it heats up, i.e. electrical energy turns into heat. The power rating of a resistor determines how much heat it can dissipate. On the other hand, if you write the power formula as follows
P = U²/R

P = I²*R

it becomes clear that the power rating determines the maximum current through the resistor or the maximum voltage that can be applied to it. As a rule, higher-power resistors are larger.

Applications of resistors.

Current-limiting resistor.
Do you think you can connect an LED with a 2V voltage drop to a 9V battery?
Of course you can; you just need to limit the current through the LED, and a resistor will help us with that.
Using Resistors in Electronics.

Such a resistor is called current-limiting, because in this circuit it is intended to limit the current through the LED. Its resistance is easy to calculate using Ohm's law.

I = (Ubattery — ULED)/R

And the current through the LED must not exceed 20mA; then we get the following

R = (Ubattery — ULED)/I


R = (9 –2)/0.02 = 350 ohms

You can take a higher resistance, for example 470 ohms; the LED will just shine less brightly.

Pull-up resistor.
The picture below shows 4 chips: a button is connected to the upper two without a pull-up resistor, and to the lower two with a pull-up resistor.
Using Resistors in Electronics.

Let's look at the two upper chips: when the button is pressed, pin one of the left chip will be at 0V, or logic zero, and pin one of the right chip will be at the supply voltage, or logic one. It's impossible to determine the state of the chip's pin when the button isn't pressed: the pin simply floats in the air and picks up interference, which causes false triggering. The state of pin one of the lower chips is always defined: for the left chip, pin one is logic one when the button is not pressed and logic zero when it is pressed; for the right chip it's the other way round. If you replaced the pull-up resistor with a piece of wire, pressing the button would connect plus to minus and the current would tend to infinity.
To sum up, a pull-up resistor avoids an undefined state and limits the current.

Voltage divider.
With two resistors connected in series, you can divide the battery voltage into several parts, and the higher a resistor's resistance, the greater the voltage drop across it.
Using Resistors in Electronics.

Calculating the voltage drop across each resistor is very simple: use Ohm's law to calculate the current flowing through them and multiply it by the resistance of each resistor.

Setting the gain of an operational amplifier (op-amp)
In this circuit the resistors set the op-amp gain, but if you look closely, it becomes clear that the resistors in the circuit form an ordinary divider.
Using Resistors in Electronics.


Timing circuits.
Together with a capacitor, a resistor forms an RC network that can be used to measure time intervals. You can read more about this here.

Filters.
The same RC network can be used as a high-pass or low-pass filter.
Using Resistors in Electronics.

Such filters are called passive; depending on the resistor and capacitor values, they can pass some frequencies unchanged and attenuate others.

Besides the ordinary resistor described above, there are resistors that can change their resistance depending on external conditions. For example, a thermistor, which changes its resistance depending on temperature, or a photoresistor, whose resistance depends on illumination.