# Electronics Basics: Resistance

If you connect the + and - poles of a battery with each other, the amount of current flowing will be too much and would damage the battery. The electrical flow is too much to handle.

We need to introduce the concept of resistance, a restriction to electrical flow.

Resistance limits the current flowing in a circuit. Every component in a circuit has some resistance. Even the wire has some resistance, but it’s very very low.

Resistance is measured in ohms (`Ω`).

1 ohm is defined as 1 volt divided by 1 ampere:

`1 Ω = 1 V / 1 A`

This is what we call Ohm’s law: `R = V / I`, where R is the symbol for resistance, V is the symbol for voltage and I is the symbol for current.

From this we can derive that:

• `V = R * I`
• `I = V / R`

A resistor is a component that’s created exclusively to provide a certain amount of resistance.

We have resistors of various values. Common ones you will find used in circuits are `220Ω`, `1kΩ`, `4.7kΩ`, `10kΩ`, and so on.

Given Omh’s law, we can calculate the current flowing in a circuit when you know the voltage provided by the battery, and the resistance that’s provided by the circuit components.

If the battery provides `5V` and the circuit provides a `1kΩ` resistance, The current flowing will be `5mA`.

THE VALLEY OF CODE

THE WEB DEVELOPER's MANUAL

You might be interested in those things I do:

• Learn to code in THE VALLEY OF CODE, your your web development manual
• Find a ton of Web Development projects to learn modern tech stacks in practice in THE VALLEY OF CODE PRO
• I wrote 16 books for beginner software developers, DOWNLOAD THEM NOW
• Every year I organize a hands-on cohort course coding BOOTCAMP to teach you how to build a complex, modern Web Application in practice (next edition February-March-April-May 2024)
• Learn how to start a solopreneur business on the Internet with SOLO LAB (next edition in 2024)
• Find me on X