Electronics Fundamentals: My Self-Study Notes
I wanted to look at a circuit board and say what each part is doing. These are the notes I built up from zero. By the end you should be able to say why an LED needs a resistor in front of it, what a capacitor does that a resistor cannot, and why the current into a point equals the current out.
Note: Images are for educational and self-study purposes only.
The Water Analogy: A Decent Starting Point
The fastest way to get a feel for the three basic quantities is a water pipe.
- Voltage (V): the push, in volts. Like water pressure.
- Current (I): how much charge flows past a point per second, in amps. Like litres per second.
- Resistance (R): how much something fights the flow, in ohms. Like a narrow pipe.
Ohm’s Law: V = I × R
Read it as: same resistance, more voltage means more current. Same voltage, more resistance means less current. The water picture is not perfect, but it is close enough.
Deeper Understanding: What Actually Happens When You Flip a Switch
Flip a switch and the bulb lights up at once. So the electrons must race from the battery to the bulb at the speed of light, right? They do not. This was the most counterintuitive thing I learned.
Why the light comes on instantly if the electrons crawl
A copper wire is already full of free electrons. They sit between the metal’s atoms, like water in a full pipe.
Apply a voltage and those electrons start to drift, but they keep bumping into the metal’s atoms. Their net speed is only tens of micrometres per second, slower than a snail.
So why does the light come on at once? Because the energy does not travel inside the electrons. It travels as an electric field, which spreads through the whole circuit almost immediately, at 60 to 90 percent of light speed. Every electron in the wire is pushed at the same moment.
What we call electricity is mostly the field moving, not the electrons.
So what is voltage, really?
A battery uses chemical energy to push negative charge to one end and positive charge to the other. That separation sets up an electric field through the circuit. As charge moves through it, the field does work. Voltage is that work divided by the amount of charge.
Kirchhoff’s Laws
These two rules come from two things that cannot be created or destroyed: charge and energy. They are the most useful facts in circuit analysis.
Kirchhoff’s Current Law (KCL)
Why the current going in equals the current coming out
Take any point where wires meet. The current flowing in must equal the current flowing out. Charge cannot pile up there: if more flowed in than out, negative charge would build up, and charges of the same kind push each other away. That push drives the extra charge straight back out. So the rule holds exactly.
Kirchhoff’s Voltage Law (KVL)
Why the voltages around a loop cancel out
A battery is like a lift for charge: it spends chemical energy to raise charge to a higher energy level. Flowing through the rest of the circuit, that charge gives the energy away, mostly as heat. By the time it returns to the battery, nothing is left. So the voltage rises and drops around a closed loop cancel out exactly.
Resistor

A resistor is the simplest part in electronics: it makes current harder to push through. Two uses: limiting current so an LED does not burn out, and splitting a voltage into a smaller one.
What is inside a resistor?
- A ceramic rod. The solid core.
- A carbon film. A thin carbon layer on the rod. This is what resists.
- A spiral cut. A laser cuts a groove into the film. A short, wide path resists less; a long, thin path resists more.
- End caps and legs. Metal caps on both ends, with wire legs welded to them.
- Paint and stripes. Insulating paint, plus coloured stripes that code the value.
The value depends on the material and the shape: a long thin path resists more than a short wide one. The film material also decides how much the value drifts when it warms up, and how much electrical noise the resistor adds.

Why does an LED need a resistor?

An LED is a lamp made from a semiconductor. Left on its own it pulls as much current as the supply can give, until it destroys itself. A resistor in series sets the current to a safe value.
Picking the resistor for one LED: Say the LED wants 3V and 13.5mA (thousandths of an amp), and you feed it from 5V.
- The resistor has to take the difference: 5V - 3V = 2V.
- Resistance is volts divided by amps: 2V ÷ 0.0135A = 148Ω. Use the nearest standard value, 150Ω.
One more check: the resistor turns that 2V into heat. That is about 27mW, and an ordinary ¼W resistor handles ten times that.
How do two resistors make a smaller voltage?
Put two resistors in a row and the voltage splits between them. The bigger resistor takes the bigger share. That is how you make a smaller voltage out of a bigger one.
Can an LED Work as a Resistor?
No. A resistor follows a simple rule: double the voltage, double the current. An LED does not. Below a certain voltage it conducts almost nothing, and just above it the current shoots up. That is why you cannot treat one as the other.
How do you tell which of two voltages is bigger?

Which resistor should I buy?

There are several kinds: carbon film, metal film, wire-wound for high power, and tiny surface-mount chips for factory boards. Four things matter: how much power it can burn, how close its real value is to the printed one, how much it drifts when it warms up, and how much noise it adds. For analog circuits I default to metal film.
What to remember about resistors

Capacitor

A capacitor stores energy in the electric field between two plates. Think of it as a buffer: it fills when there is spare voltage and empties when the voltage sags. Current only flows while the voltage across it changes, so it passes fast changes and blocks steady ones. That is why it smooths supplies and sets timing intervals.
Inductor

An inductor is a coil of wire. It stores energy in a magnetic field and fights any change in current. Its rule mirrors the capacitor: the voltage across it depends on how fast the current through it changes. Coils and capacitors are the two halves of most filters.
How do a coil and a capacitor smooth a supply?

In a power supply they work as a team. The bridge rectifier turns AC (current that keeps reversing) into DC (current that flows one way), but the result is bumpy. The coil flattens the bumps in the current, and the capacitor flattens the bumps in the voltage.
The same happens at battery scale. An inverter pulls current from a battery in pulses, 100 times a second. In the cable, those pulses become a wobbling voltage, because the cable resists the current. Short, thick cable keeps the wobble small. Victron sets the alarm at 2.25V RMS on a 24V system, and RMS is a kind of average for a wobbling voltage.
Diode

A diode is a one-way valve for current. It conducts from one leg, the anode, to the other, the cathode, and blocks the reverse direction. A silicon diode costs about 0.7V to pass; a Schottky diode, built for a smaller drop, costs 0.2 to 0.4V. Diodes turn AC into DC and protect against a battery connected the wrong way round.
How four diodes turn AC into DC

Wire four diodes in a ring and you get a bridge rectifier. Whichever way the AC swings, two conduct, so the current leaves in the same direction every time. A capacitor after it smooths the bumps. Almost every linear supply starts this way.
Transistor
🚧 Coming soon: transistor content in progress.
MOSFET
🚧 Coming soon: MOSFET content to follow.
Linear vs Switching Power Supplies

A power supply turns what comes from the wall or the battery into the steady low voltage your circuit needs. There are two ways.
- Linear supply: a transformer lowers the voltage, then a chip burns off the rest as heat. Simple and quiet, but wasteful.
- Switching supply (SMPS): the voltage is chopped into high-frequency pulses, transformed, then smoothed. More parts, but far less heat and much smaller.
What is inside a 230V to 12V supply?

Walking through a real schematic stage by stage is the fastest way to see how the pieces fit: the mains filter, the bridge rectifier, the switching chip, the transformer, the output rectifier, and the feedback loop that keeps the output steady.
Practical Skills

The skills that matter are physical: building a circuit on a breadboard, soldering, using a multimeter, reading a schematic, and hunting down a fault. Theory only gets you so far. The day I found a loose ground wire with a multimeter, a lot of theory suddenly clicked.
References
- LED Resistor Calculator
- Resistor Heat Calculator
- Pull-Up and Pull-Down Resistors
- LM393 Voltage Comparator Datasheet | TI.com
- How to Build a Voltage Comparator Circuit Using an LM393
- LC Filter Calculator
- Voltage and Current Explained
- 25 Types of Capacitors & Their Uses
- Linear Regulated Power Supply Block Diagram & Circuit Diagram
- How to Build a Linear Power Supply
- Power Supply Basics: Part 1
- Isolated vs Non-Isolated Power Supplies
- Gallium Nitride Power Devices in Power Electronics
- How Mobile Phone Chargers Work | SMPS
- Modular AC Line EMI Filters Explained
- Bridge Rectifier With Capacitor Filter
- Understanding Carbon Film Resistors
- Resistor Color Codes: Color Band Meanings
- Victron Wiring Unlimited
