Teaching unit

Electronics

Ages: 14-15 Subject: Technology and Digitalization Sessions: 11-12 Curriculum: Region of Murcia (Spain)
▸ Step 0 · Unit map

What is this unit about?

Electronics is inside almost everything you use: your phone, the remote control, the street light that switches on by itself at dusk. Before looking at the components one by one, look at the whole map: it will help you understand how they are classified and what each family is for. Come back here whenever you get lost.

🎮 Can be built in the simulator
Passive
Semiconductors
Active
Society

ELECTRONICS

The part of technology that uses electric current to handle information and control other devices, not just to carry energy.

Passive components

They do not amplify anything: they just let the current through · 5 components + how to read them

A passive component cannot increase the current or the voltage: at most it limits, stores or shares it out. They are the ones you will use most.
Fixed resistor

Limits the current. Its value does not change

Color code

The bands tell you its value

LDR

More light, less resistance

NTC and PTC

Their value changes with temperature

Potentiometer

A resistor you adjust with a knob

Capacitor

Stores charge and takes time to fill up

Semiconductors

Neither conductors nor insulators: they conduct when it suits them · 6 ideas

A semiconductor conducts poorly on its own, but if we add impurities on purpose (doping) we can decide under what conditions it lets current through. All of modern electronics is built on that idea.
Silicon and germanium

The two classic materials

N-type and P-type doping

Free electrons or holes

P-N junction

Where they meet: the key to the diode

Diode

Only conducts in one direction

LED

A diode that also gives light

Zener

Keeps its voltage fixed

Active components

They do amplify: with very little they control a lot · 5 ideas

An active component can amplify: a tiny current controls a much bigger one. The transistor is the classic example, and it is what sets electronics apart from electricity.
Transistor

Base, collector and emitter

BJT and MOSFET

The two families there are

NPN and PNP

Depending on how the layers are stacked

As a switch

Switches on without touching anything

The microprocessor

Billions of them, together

Electronics and society

Why chips are in the news · 6 topics

Semiconductors are not just a school topic: they are a strategic resource. Whoever makes them has a huge advantage, and when they run short, whole factories stop.
Strategic resource

Few countries know how to make them

The 2020-22 shortage

Cars left unfinished for lack of chips

Moore's law

Twice as many transistors every 2 years

Miniaturization

From a whole room to your pocket

Saving energy

The LDR that switches street lights off by day

In the Region of Murcia

What is made near here

Where do I start? With lesson 1, which explains what electronics is and how it differs from electricity. The ones on the left of the map are the components you will use most; the one on the right tells you why this matters outside the classroom.

Lesson 1

What is electronics?

💡

A light bulb and a phone both run on electric current. But the bulb only uses it to heat a filament, while the phone uses it to decide things: switch the screen on, ring when someone calls you, switch off when you put it away. That difference —using current to carry energy or to carry information— is the border between electricity and electronics.

Definition

Electronics is the part of technology that uses electric current to handle information and control other devices, not just to carry energy.

1.1 · Electricity and electronics: the same current, a different job

In the Electricity unit you saw circuits that move energy from one place to another: the battery supplies it, the wire carries it and the bulb turns it into light and heat. That is electricity.

In electronics the current is small, and what matters is not how much energy it carries but what it says: whether it flows or not, whether it goes up or down, whether it arrives sooner or later. Decisions are made with that.

Electricity

Large currents (amperes). The goal is to carry energy: turn a motor, give light, heat.

Example: the wiring in your house

Electronics

Tiny currents (milliamperes). The goal is to handle information: measure, decide, control.

Example: the TV remote control

Key idea

A milliampere (mA) is a thousandth of an ampere. Almost everything you will build in this unit works with between 1 and 30 mA: a thousand times less than your kitchen oven.

1.2 · Passive and active components

All electronic components fall into two groups, and the difference is a single question: can this component amplify?

Passive

They do not amplify. At most they limit, store or share out what reaches them. Never does more come out than goes in.

Resistor · capacitor · LDR · coil (a wound wire)

Active

They do amplify. A tiny signal can control a much bigger one. They need their own power supply to do it.

Transistor · integrated circuit · microprocessor

Tip

If, when you remove the battery, the component keeps doing the same thing (a resistor keeps resisting), it is passive. If it needs a power supply to do its job, it is active.

1.3 · Ohm's law, which you already know

This whole unit rests on a formula you already saw in Electricity. Here you will use it all the time to protect components, especially the LED.

V = I · R
V voltage in volts (V) · I current in amperes (A) · R resistance in ohms (Ω)

Rearranging it, the other two forms you will need:

I = V / R   ·   R = V / I
Watch the units: if you work in mA, convert them to amperes by dividing by 1000
✔ Worked example · what resistor does an LED need?
The problem: you have a 9 V battery and an LED that burns out above 30 mA. If you connect it directly, it will certainly burn out. Let's design it so that about 20 mA flow, which is the normal brightness of an LED and leaves plenty of margin. What resistor do you put in series with it?
1️⃣ The LED keeps its share. A red LED uses about 1.8 V, and that does not change. So the resistor gets 9 − 1.8 = 7.2 V.
2️⃣ Convert the current to amperes. 20 mA is 0.020 A.
3️⃣ Apply Ohm's law, solving for R. R = V / I = 7.2 / 0.020 = 360 Ω.
4️⃣ Choose a real value. You will not find 360 Ω resistors in just any shop; you take the next one up. With 470 Ω, 15.3 mA flow: the LED shines well and has plenty of margin.
Result: 470 Ω. Checked in the simulator: with 470 Ω, 15.3 mA flow, and with 330 Ω, 21.7 mA — both below the limit, so both are fine. With 220 Ω, 32.5 mA flow, it goes over 30 and the LED is damaged. The exact breaking point is at 238 Ω.

1.4 · Build it yourself

Open the simulator and build the circuit from the example: the battery, a resistor and an LED in series. Tap a component in the palette and then the two holes where it goes. Try lowering the resistance and watch what happens.

Electronics lab · Challenge 1 Tap to load the interactive simulator

When you have it, try the second challenge, which is pure calculation:

Challenge 2 · Ohm's law: get 10 mA to flow →

▸ Check what you have understood

Practice: 6 exercises

They cover the three ideas of the lesson: electricity versus electronics, passive versus active and Ohm's law.

Ideas

1. What is the main difference between electricity and electronics?

2. Of these four components, which one is active?

Match

3. Match each component with what it does. Tap one on the left and then its partner on the right.

Fill in the blanks

4. Fill in the blanks:

Electricity is mainly used to carry , and electronics to handle . A component that can amplify is called .
Put in order

5. Put in order the steps to calculate the resistor that protects an LED:

Convert the current you want to amperes (20 mA → 0.020 A).
Look at how much voltage the LED keeps (about 1.8 V).
Divide: R = V / I.
Subtract that voltage from the battery's (9 − 1.8 = 7.2 V).
Calculation

6. You connect a 9 V battery to a 900 Ω resistor, with nothing else. How many milliamperes flow through the circuit?

mA
Lesson 2

Resistors

🌗

The street lights on your street switch on by themselves at dusk. Nobody switches them on: there is a component that notices whether there is light and changes its value. That is a non-linear resistor, and in this lesson you are going to build one.

Definition

A resistor is a passive component that limits the flow of current. Its value is measured in ohms (Ω), and there are two kinds: those that always have the same value (fixed) and those that change with something in their surroundings (non-linear).

2.1 · Fixed resistors and the color code

A fixed resistor is a cylinder with two leads. Since they are tiny, there is no room to write the value: it is marked with colored bands. Each color is a digit, and one of the bands tells you how many zeros to add.

brown 1 black 0 red ×100 gold ±5 % 1 0 × 100 = 1000 Ω = 1 kΩ
Key idea

The first two bands are digits; the third tells you how many zeros to add. The fourth (gold or silver) is the tolerance: how far the real value can be from the marked one.

✔ Worked example · reading brown, black, red
1️⃣ Hold the resistor with the gold band on the right. You always read it from the side opposite the tolerance band.
2️⃣ First band, brown = 1. It is the first digit.
3️⃣ Second band, black = 0. Now you have the number: 10.
4️⃣ Third band, red = ×100. Add two zeros: 10 × 100 = 1000.
Result: 1000 Ω = 1 kΩ, with a tolerance of ±5%. In other words, between 950 and 1050 Ω.

2.2 · Resistors that change on their own

These are the interesting ones: their value depends on the surroundings. They are the simplest way a circuit has of finding out what is happening outside.

LDR · light-dependent resistor

More light → less resistance. In the simulator it goes from 100 Ω in full light to 1 MΩ in the dark: ten thousand times more.

NTC · thermistor

More heat → less resistance. Measured in the simulator: 28.7 kΩ at 0 °C and 987 Ω at 100 °C.

PTC

More heat → MORE resistance. The opposite of the NTC. It is used for protection: if something gets too hot, it cuts off. Watch out: the symbol is the same as the NTC's and only the mark changes, −t or +t.

Tip

The N in NTC stands for negative: resistance goes the opposite way to temperature. The P in PTC stands for positive: they go together. And the LDR is «negative» with respect to light, like the NTC.

2.3 · The potentiometer: the one you adjust

A potentiometer is a resistor with three leads: the two ends and a wiper that moves with a knob. By turning it you decide how much resistance there is between the wiper and each end. It is the good old volume knob.

2.4 · Build them yourself

Four challenges, one per component. Cover the LDR with the light control and watch how the current changes:

Challenge 3 · Color code →
Challenge 4 · The LDR: light that switches on →
Challenge 5 · The NTC: heat that switches on →
Challenge 6 · The potentiometer: adjust the brightness →

▸ Check what you have understood

Practice: 6 exercises

They cover the color code, non-linear resistors and the potentiometer.

Symbols

1. Which of these symbols is the LDR's?

Ideas

2. You cover an LDR with your hand. What happens to its resistance?

Match

3. Match each resistor with what makes its value change:

Fill in the blanks

4. Fill in the blanks:

In an NTC, if the temperature goes up, the resistance . In a PTC, if the temperature goes up, the resistance . A potentiometer has leads.
Put in order

5. Put in order the steps to read the color code:

Read the first two bands: they are the two digits.
Look at the fourth band to find the tolerance.
Turn the resistor so the gold band is on the right.
Add the zeros the third band tells you.
Calculation

6. A resistor has the bands yellow (4), violet (7) and red (×100). What is its value in ohms?

Ω
Lesson 3

Capacitors

📸

A camera flash gives off a very powerful burst of light, and it does it with a small battery that could never give so much current at once. The trick: there is a component that fills up slowly and then lets it all out in one go. That is a capacitor.

Definition

A capacitor is a passive component that stores electric charge. Inside it there are two metal plates very close together separated by an insulator: the charge stays held there until you give it a path to get out.

3.1 · What it stores, and how much: the farad

Capacitance is how much charge fits inside. It is measured in farads (F), and there is a catch: the farad is a huge unit. A 1 F capacitor would be a monster. The ones you will use are measured in submultiples.

SubmultipleSymbolEqual toWhere you see it
microfaradµF0.000001 F (a millionth)Electrolytics: 100 µF, 2200 µF…
nanofaradnF0.000000001 FCeramics: 100 nF is the typical one
picofaradpF0.000000000001 FRadio, tuning, high frequency
Key idea

From µF to nF and from nF to pF you always jump by a thousand. So 1 µF = 1000 nF = 1,000,000 pF. In the simulator you can type the value in any of the three units: the component's box accepts them all.

3.2 · Two kinds: with polarity and without it

Not all capacitors are fitted the same way. Some do not care which way round you plug them in; others have a positive side and a negative side, and if you fit them the wrong way round they really break (in the lab, by bursting).

Ceramic · NOT polarized

The two straight plates, the same. It does not matter how you fit it. They are the small ones, in pF and nF. In the simulator it is the «Capacitor», with 100 nF by default.

Electrolytic · POLARIZED

One straight plate (+) and the other one curved, with the − mark. It stores much more: µF and even mF. In the simulator it is the «Electrolytic», with 2200 µF by default.

Watch out

The curved plate is the negative, and on the real component that side is marked with a stripe and the shorter lead. The simulator draws the − mark so you get used to looking for it, but it does not punish you if you fit it the wrong way round: save that for the workshop, where it really does burst.

3.3 · A capacitor does not fill up all at once

Here is the interesting part, and what makes the capacitor useful: it takes time to charge. And how long it takes depends on two things: the resistance in front of it (the narrower the tap, the slower) and its own capacitance (the bigger the tank, the longer it takes to fill).

At first a lot of current goes in and the voltage rises fast; as it fills up, it gets harder and harder. That is why the curve starts steep and then flattens out:

63 % 99 % τ 5τ t = 5·R·C time capacitor voltage

That curve never quite ends: it gets closer and closer to the battery voltage without ever reaching it. That is why a practical measure is used, the time constant τ (read «tau»), which is R · C. And everyone agrees that after 5 τ it is charged, because less than 1% is missing.

TimeHow much it has chargedWith 1 kΩ and 2200 µF
1 τ63%2.2 s → 5.70 V of the 9
2 τ86%4.4 s → 7.78 V
3 τ95%6.6 s → 8.55 V
4 τ98%8.8 s → 8.83 V
5 τ99.3% — charged11 s → 8.94 V

These numbers were measured in the unit's simulator, not worked out by hand.

t = 5 · R · C
t charging time in seconds (s) · R resistance in ohms (Ω) · C capacitance in farads (F), not in µF
The three rearrangements

The same formula gives you the three questions you may be asked:

t = 5·R·C · R = t5·C · C = t5·R

The usual mistake: putting the microfarads in as they are. 2200 µF is not 2200, it is 0.0022 F. Always convert to farads before multiplying.

Watch out when you change BOTH

If you change only one, the time follows it: double the resistance and the time doubles. But R and C are multiplied together, so if you double both at once the time does not double: it is multiplied by 4.

Check it with numbers: 5 · 1000 · 0.001 = 5 s, and 5 · 2000 · 0.002 = 20 s. Double each one, four times the time.

✔ Worked example 1 · how long does it take? (the class example)
📋 Data: a 1 kΩ resistor and a 2200 µF electrolytic. We want to know the time.
1️⃣ Convert the units. 1 kΩ = 1000 Ω. And 2200 µF is 2200 millionths of a farad = 0.0022 F.
2️⃣ Work out τ first, which is just R·C: τ = 1000 × 0.0022 = 2.2 s.
3️⃣ Multiply by 5: t = 5 × 2.2 = 11 s.
Result: 11 seconds. Checked in the simulator: at 2.2 s the capacitor is at 5.70 V (63% of the 9 V) and at 11 s at 8.94 V.
✔ Worked example 2 · the other way round: what capacitor do I need?
📋 The job: I want a flash that takes 5 seconds to charge, and the resistor I have is 500 Ω. What capacitor do I buy?
1️⃣ See what is missing. You know t and R, and you are looking for C → use the rearrangement C = t5·R
2️⃣ Substitute: C = 5 ÷ (5 × 500) = 5 ÷ 2500 = 0.002 F.
3️⃣ Convert it to microfarads, which is how they are sold: 0.002 × 1,000,000 = 2000 µF.
Result: 2000 µF. Checked in the simulator: 500 Ω with 2000 µF give exactly 5.00 s.

3.4 · Build it yourself

In the simulator, place the battery, a resistor and a capacitor, and the «Capacitor charging» graph appears by itself: the real curve, with a time bar you can drag to see the voltage at each moment.

Electronics lab · Challenge 7 Tap to load the interactive simulator
Challenge 7 has TWO solutions

It asks for 5 seconds, and there is no single answer: 1 kΩ with 1000 µF works, and so does 10 kΩ with 100 µF. Look at what happens: when you multiply the resistance by 10 and divide the capacitance by 10, the product R·C does not change. That is what really matters. Try both and check it.

And when you have it, the second challenge is to reproduce the class example:

Challenge 8 · The lesson's example: 11 seconds →

▸ Check what you have understood

Practice: 7 exercises

The last three are the three rearrangements of the same formula: time, capacitance and resistance.

Symbols

1. Which of these is the symbol for the electrolytic capacitor?

Ideas

2. A circuit takes 4 seconds to charge. You swap the resistor for one twice as big and leave the capacitor alone. What happens?

Match

3. Match each quantity with its equivalent:

Fill in the blanks

4. Fill in the blanks:

The capacitor does have polarity, and in its symbol you can tell because one of the plates is . If I increase the capacitance without touching the resistance, the charging time . And it is considered fully charged after .
Calculation · the three rearrangements

5. The time. You fit a 1.5 kΩ resistor with a 400 µF capacitor. How many seconds does it take to charge?

s

6. The capacitance. You want it to take 10 seconds and you only have a 500 Ω resistor. What capacitor do you need, in µF?

µF

7. The resistance. You have a 2200 µF electrolytic and you want it to take 22 seconds. What resistor do you need, in ohms?

Ω
Lesson 4

Semiconductors and diodes

🏖️

The material all the chips in the world are made of is, basically, sand. Silicon is the second most abundant element in the Earth's crust. What makes it valuable is not the material: it is what we know how to do to it so that it conducts only when we want it to.

Definition

A semiconductor is a material that neither conducts well nor insulates well. It is right in the middle, and that is what makes it special: we can decide under what conditions it lets current through. All of modern electronics is built on that idea.

4.1 · Neither conductor nor insulator

You already know the two extremes: copper lets current through with no trouble and plastic does not let it through. Semiconductors are in no man's land.

TypeWhat it does with currentExamples
ConductorAlways lets it throughCopper, aluminum, silver
InsulatorNever lets it throughPlastic, glass, rubber
SemiconductorIt depends: it lets it through depending on how we treat itSilicon (Si) and germanium (Ge)

Silicon is the one used almost always today: it is cheap, plentiful and copes well with heat. Germanium was the first, in the 1950s, and today it is almost a rarity.

And there is a curious detail: how well a semiconductor conducts depends on temperature. When it is very cold, its electrons do not have the energy to move and silicon behaves like an insulator; as it warms up, it conducts better and better. That is exactly what the NTC in lesson 2 does —the hotter, the less resistance— and now you know why.

Key idea

A pure semiconductor (we call it intrinsic) is not much use: it conducts terribly and that is that. What turns it into a component is making it dirty on purpose.

4.2 · Doping: making silicon dirty on purpose

Doping means adding a tiny amount of another element to pure silicon —a few atoms in every million— to change how it behaves. A doped semiconductor is called extrinsic. There are two ways of doing it, and they are opposites:

➖

N-type · extra electrons

An element with extra electrons is added (phosphorus, arsenic). There are free electrons wandering about, which are negative charges. Hence the N.

➕

P-type · missing electrons

An element with fewer electrons is added (boron, gallium). That leaves holes: empty places that behave like positive charges. Hence the P.

Pay attention to this

A hole is not a particle: it is the absence of an electron. But it moves as if it were one —when an electron jumps into a hole, it leaves another hole behind— and that is why it counts as a positive charge. And watch out: both materials are neutral. The N one has no negative charge and the P one no positive charge; what changes is what carries the current.

4.3 · The P-N junction: where it all begins

On their own, a piece of N silicon and a piece of P silicon have nothing special. The interesting thing happens when they are put together: the electrons in the N region next to the border jump across to fill the holes in the P region, and in that strip in the middle the free charges run out. That strip is called the depletion region, and it acts as a barrier.

P-type N-type holes (missing electrons) free electrons depletion region: no free charges

And here is the trick. If we connect the battery one way, the barrier gets narrower and the current flows. If we connect it the other way round, the barrier gets wider and nothing flows. A P-N junction with two leads is exactly that: a diode.

4.4 · The diode: a one-way valve

Definition

A diode is a component that only lets current through in one direction. In the other, it cuts it off. It is the electrical version of the valve that stops water from flowing back.

Its two leads have names and are not interchangeable: the anode (the one on the P side) and the cathode (the one on the N side). Current flows from the anode to the cathode, never the other way round.

And each way of connecting it has its name, which is the one you will hear in class and find in any book:

How you connect itIt is calledWhat it does
The battery's + toward the anodeForward biasIt conducts. The barrier gets narrower and the current flows
The battery's + toward the cathode (the stripe)Reverse biasIt blocks. The barrier gets wider and nothing flows

How to read the symbol

The triangle points the way the current can go, and runs into the bar. The bar is the cathode: it is the wall, the side there is no coming back from.

And on the real component

The real diode has a painted stripe near one lead. That stripe is the cathode, just like the bar in the symbol. It is the only thing you have to look at to fit it correctly.

The rule to remember

The bar in the symbol and the stripe on the component are the same thing: the cathode. And the current goes in from the other side. If you fit a diode and no current flows, the first thing to check is whether it is the wrong way round.

✔ Worked example 1 · an LED is a diode too, but it does not take the same to light it
📋 The experiment: a 9 V battery with a 470 Ω resistor and, in series, first a normal diode and then an LED. Do they behave the same?
1️⃣ With the normal diode: the simulator measures 0.73 V across its leads, and 17.60 mA flow.
2️⃣ With the LED: it measures 1.81 V, and 15.30 mA flow. Less current, with the same battery and the same resistor.
3️⃣ Why? Because each diode has its barrier voltage: what you have to «pay» to get through it. The silicon one asks for about 0.7 V; the LED asks for more, and that extra energy is what comes out as light.
Both conduct in one direction only, because both are P-N junctions. The difference is how much it costs to get through them: 0.73 V the diode, 1.81 V the LED. The LED has voltage to spare, and spends it giving light.

4.5 · Three diodes with three jobs

Rectifier

The classic one. It is used to protect (if you connect the battery the wrong way round, nothing happens) and to turn alternating current into direct current: it is what is inside any charger.

LED

A diode that gives off light when it conducts. The letters say it: Light Emitting Diode. Always with a resistor in series, or it burns out — you saw it in lesson 1.

Zener

The odd one: it is made to work the other way round. Connected in reverse, it keeps its voltage fixed even if the input voltage changes. Its symbol is the diode's with a bent bar.

✔ Worked example 2 · why the Zener means you do not depend on the battery
📋 The problem: batteries run down. A 9 V one ends up giving 7, then 6… and a circuit that needs a steady voltage stops working properly.
1️⃣ The circuit: a 1 kΩ resistor in series and the Zener in reverse (cathode toward the positive). The useful voltage is taken across the Zener's leads.
2️⃣ We lower the battery and measure what the Zener gives:
BatteryZener givesCurrent
12 V5.55 V6.45 mA
9 V5.52 V3.48 mA
7 V5.48 V1.52 mA
6 V5.43 V0.57 mA
5.1 V5.10 V — no longer regulating0.00 mA
3️⃣ Look at the numbers: the battery drops from 12 V to 6 V —to half— and the output only moves from 5.55 to 5.43. A difference of 0.12 V.
The Zener holds the voltage at about 5.5 V as long as it has some to spare. When the battery drops below that 5.5 V there is no margin left and it stops regulating: it cannot give more than goes in. What is left over is taken by the 1 kΩ resistor, and that is why a Zener is never fitted without one.

4.6 · Build it yourself

Two challenges. In the first one the simulator does something you cannot do at the same time: it turns the diode round by itself and checks that no current flows then.

Electronics lab · Challenge 9 Tap to load the interactive simulator
What you will see

With 470 Ω, a diode and an LED in series at 9 V, 13.78 mA flow and the LED lights up. When the diode is reversed: 0.00 mA, the LED goes out, and if you measure with the multimeter you will see that the diode alone takes 8.64 of the 9 V. It is not that it «does nothing»: it is holding back the whole voltage.

And the second one is the example above, so you can check the regulation yourself:

Challenge 10 · The Zener regulates: lower the battery and see what happens →

▸ Check what you have understood

Practice: 6 exercises

They cover doping, the P-N junction, the diode and its polarity and the three types.

Symbols

1. Which of these is the symbol for the Zener?

Ideas

2. You fit a diode in series with an LED and nothing lights up: the multimeter reads 0.00 mA. What do you check first?

Match

3. Match each term with what goes with it:

Fill in the blanks

4. Fill in the blanks:

Silicon is a . If we dope it with an element that is missing electrons we get silicon of type . When we put a P piece together with an N piece we have a , which only conducts .
Put in order

5. Put in order the steps that turn sand into a diode:

Put the two pieces together: the depletion region forms at the border.
Start with very pure silicon, which hardly conducts.
Bring out a lead from each side and mark the cathode with a stripe.
Dope it: one region with extra electrons (N) and another with holes (P).
Calculation

6. A 9 V battery, a 470 Ω resistor and a diode in series. The diode keeps 0.73 V, so the resistor gets 9 − 0.73 = 8.27 V. How many milliamperes flow?

mA
Lesson 5

The transistor

🔊

You turn down your phone's volume with a brush of your finger, and the speaker obeys by moving real air. Between your finger —which uses almost no energy— and the speaker there is something that turns a tiny signal into a big one. That something is a transistor, and it is the most important component ever invented.

Definition

A transistor is an active component: with a tiny current in one of its leads it controls a much bigger one between the other two. It is used to amplify and to switch on and off without touching anything.

5.1 · This is what sets electronics apart from electricity

Everything you have seen so far —resistors, capacitors, diodes— is passive: at most it limits, stores or lets through. None of them can give out more than it gets.

The transistor can. It does not create energy out of nothing —it takes it from the battery—, but a tiny current decides how much big current flows. That is amplifying, and it is exactly what a passive component cannot do.

So what about the diode?

The diode and the LED are made of semiconductor, just like the transistor, but they do not amplify: one cuts off current in one direction and the other turns it into light. With the test we use here —does it amplify?— they are passive. Watch out, because some books call them active because they are made of semiconductor: they are two different ways of classifying. In this unit we always use «does it amplify?».

Passive componentsActive components
Which they areResistor, capacitor, diode, LDR…Transistor, integrated circuits
What they doLimit, store, share out, cut offAmplify and control
The testWhat comes out is never more than what goes inA small signal controls a big one

5.2 · Three leads, and each one does something different

The diode had two leads. The transistor has three, and that is the difference: the third one is the one in charge.

base collector emitter the big one goes in here the one in charge both come out here the emitter arrow points outward: it is an NPN
LeadWhat it is for
Base (B)The one in charge. With a tiny current here you decide whether the transistor conducts and how much
Collector (C)Where the big current goes in, the one that does the work
Emitter (E)Where both come out together, the base current and the collector current

5.3 · NPN and PNP · BJT and MOSFET

A transistor is three layers of doped silicon stacked up. Depending on the order they are stacked in, there are two families:

NPN · the usual one

N-P-N layers. It conducts when a positive voltage reaches the base. It is the one you will use almost always, and the one in the simulator.

PNP · the reverse one

P-N-P layers. It works the other way round: it conducts when the base is connected to ground. It is used when you have to switch on the positive side.

How to tell them apart at a glance

The two symbols are identical except for where the emitter arrow points. If it points outward, it is an NPN. If it points in toward the base, it is a PNP. Tip: NPN = «Not Pointing iN».

And there is another division, this time by how they work inside: BJTs (the classic ones, the ones you are seeing) are controlled by base current; MOSFETs are controlled by voltage and use almost nothing at the gate. That is why modern chips —where billions of them have to fit without melting— are made of MOSFETs.

✔ Worked example 1 · how much it really amplifies, and why the base resistor matters so much
📋 The circuit: a 9 V battery, an LED with its 470 Ω resistor on the collector, and a resistor Rb carrying current to the base. We are going to change only Rb and measure the two currents.
RbBase currentLED currentGain
470 Ω17.52 mA15.27 mA0.9 😬
10 kΩ0.83 mA15.17 mA18
100 kΩ0.083 mA14.93 mA180 ✅
1 MΩ0.0083 mA1.67 mA200
10 MΩ0.0008 mA0.17 mA200, but the LED no longer lights up
1️⃣ Look at the first row. With 470 Ω the LED lights up… but 17.52 mA are flowing through the base to get 15.27 mA in the LED. It uses more than it controls. It is amplifying less than nothing.
2️⃣ Raise Rb to 100 kΩ. Now 0.083 mA flow through the base —two hundred times less— and the LED keeps shining almost the same, with 14.93 mA. Now it does: a gain of 180.
3️⃣ And do not overdo it. With 10 MΩ the gain is still 200, but so little base current gives so little collector current that you can no longer see the LED.
A transistor does not amplify «just because»: you have to give it the right base current. Too much and it does not amplify; too little and it is not enough. That is why Rb is never chosen by eye: it is the part that decides whether the circuit works.

5.4 · The transistor as a switch

Two words you will need

Ground is the negative terminal of the circuit, the point we take as «zero volts» and compare everything else with. Saying «it goes to ground» means «it drops to 0 V».

A voltage divider is two resistors in series between the positive and ground: the battery voltage is shared between the two, and the one with more resistance takes more. If one of the two is an LDR, that share changes with light — and that is where the automatic street light comes from.

As well as amplifying, the transistor is used for something simpler and even more useful: switching on and off. If you give the base plenty of current, it conducts fully (we say it is in saturation); if you give it nothing, it cuts off completely (cutoff). On or off, with no moving parts and millions of times a second.

Why this changed everything

You have to move a wall switch with your finger. A transistor is switched on by an electrical signal, so one circuit can switch on another. Chain that billions of times and you have a microprocessor: the chip in a modern phone has more than 15 billion transistors, each one acting as a switch.

✔ Worked example 2 · automatic lighting, the unit's project
📋 The job: a street light that switches on by itself when it gets dark. You have everything you need: an LDR (lesson 2), a transistor and an LED with its resistor (lesson 1).
1️⃣ Build a divider with the LDR. A 100 kΩ resistor from the positive to the base, and the LDR from the base to ground. The base voltage comes from how the two share it out.
2️⃣ In the dark the LDR rises to 1 MΩ: since it is much bigger than the 100 kΩ, almost all the voltage stays at the base → the transistor conducts → the LED switches on.
3️⃣ In the light the LDR drops to 100 Ω: now it is the small one, and it pulls the base almost to ground → the transistor cuts off → the LED switches off.
LightLDR resistanceLED currentStreet light
0% (night)1 MΩ14.92 mAOn
40%25.1 kΩ10.86 mAOn, dimmer
50%10 kΩ2.98 mAAlmost going off
55%6.3 kΩ0.01 mAGoes off
100% (day)100 Ω0.00 mAOff
The street light switches halfway along the light control, and not all at once: between 40% and 55% it fades little by little. That is the transistor working in its active region before cutting off completely. With three lessons of this unit you have built an automatic system: something that decides on its own.

5.5 · Build it yourself

You do not pass challenge 11 by lighting the LED any old way: it requires at least 20 times less current through the base than through the LED. In other words, it has to really amplify. The resistor the simulator starts with will not do: that is the point.

Electronics lab · Challenge 11 Tap to load the interactive simulator
A warning about the measurements

To work out the gain, do not read the current the panel shows for the transistor: it only matches the base current under certain conditions. Use the multimeter and measure the current in the base resistor on one side and in the LED on the other. Those two are the right ones.

And challenge 12 is the whole project, the one in the example above:

Challenge 12 · Automatic lighting: the street light that switches on by itself →

▸ Check what you have understood

Practice: 6 exercises

They cover passive vs. active, the three leads, NPN and PNP and the transistor as a switch.

Symbols

1. Which of these two is the NPN?

Ideas

2. You build the circuit from the example with Rb = 470 Ω. The LED lights up, but 17.52 mA flow through the base and 15.27 mA through the LED. What is going on?

Match

3. Match each thing with what goes with it:

Fill in the blanks

4. Fill in the blanks:

The transistor is component because it can . If the emitter arrow points outward, it is . And for it to amplify, the base has to carry current than the collector.
Put in order

5. Put in order what happens in the automatic street light when it gets dark:

The transistor gets current at the base and starts to conduct.
The sunlight goes and the LDR's value rises, up to 1 MΩ.
14.92 mA flow through the collector and the street light switches on.
Since the LDR is now much bigger than the 100 kΩ, the voltage stays at the base.
Calculation

6. 0.08 mA flow through the base of a transistor and 16 mA through the collector. What is its gain? (Divide the collector current by the base current.)

times
Lesson 6

Electronics and society

🚗

In 2021 you could walk into a car dealership with the money in your hand and walk out without a car. There was no shortage of wheels, bodywork or engines: there was a shortage of chips. Whole factories stopped across half of Europe for want of pieces of silicon that fit on a fingernail.

Starting point

Semiconductors are not just a school topic: they are a strategic resource. Whoever knows how to make them has a huge advantage, and when they run short everything else stops. This lesson is about that: about what electronics means outside the classroom.

6.1 · Why a chip is a matter of state

Making a modern chip is probably the hardest thing the human race mass-produces. It takes a factory that costs billions, rooms cleaner than an operating theater and machines that only a handful of companies in the world can build. The result: very few places can do it.

Concentration, in one sentence

Most of the world's most advanced chips come from very few factories, concentrated above all in Taiwan and South Korea, with machines made by practically a single European company, in the Netherlands. When something so critical depends on so few places, it stops being a technical matter and becomes a geopolitical one.

That is why chips are on the TV news: not because people have become electronics fans, but because a country without access to semiconductors can hardly make anything —not cars, not household appliances, not medical equipment, not defense systems—.

6.2 · Case study: the 2020-2022 chip shortage

This is not a hypothesis: it happened recently, and it is worth understanding why it happened, because it was not for lack of factories.

WhenWhat happened
March 2020The pandemic arrives. Carmakers, assuming nobody would buy, cancel their chip orders.
Rest of 2020With half the world shut in at home, sales of laptops, phones, game consoles and webcams shoot up. The chip factories hand those customers the capacity the car industry had let go.
2021Cars are selling again… but there is no room left in the chip factories: ordering one now takes months. Car plants stop, with temporary layoffs in Spain too.
2022 onwardThings slowly get back to normal, but the scare leaves a political conclusion: chips have to be made closer to home.
The lesson of the case

Chips did not run short because we did not know how to make them: they ran short because manufacturing capacity cannot be improvised. Setting up a new factory takes years, so when demand changes suddenly, there is no way to react quickly. Industry estimates speak of several million cars that never got made in 2021.

And what was done? Europe and the United States responded with public money to attract factories to their territory. The European Union passed the European Chips Act, which mobilizes about 43 billion euros with the goal of Europe reaching 20% of world production. The United States did the same with its CHIPS Act.

Sources: European Commission, «European Chips Act» · Spanish Ministry of Industry (PERTE Chip). It is worth checking the latest figures: this topic keeps moving.

6.3 · Moore's law: why everything gets smaller and more powerful

In 1965, Gordon Moore —then at Fairchild Semiconductor; he would found Intel three years later— noticed a trend and dared to predict it would continue. His 1965 version spoke of doubling every year; he himself corrected it in 1975 to every two years, which is the version used today: the number of transistors that fit on a chip doubles roughly every two years. It is not a law of physics, it is an observation… and it has held for more than fifty years.

10³ 10⁵ 10⁷ 10⁹ 10¹¹ 4004 80286 Pentium Core 2 M1 1971 1990 2005 2020 transistors per chip year
How to read this graph (important)

The vertical axis is not normal: it is logarithmic. Each mark does not add, it multiplies by 100 (10³ → 10⁵ → 10⁷…). That is why huge growth shows up as an almost straight line: if we drew it with a normal axis, the first fifty years would be a line stuck to the floor and the last point would go off the page.

YearChipTransistors
1971Intel 40042,300
1982Intel 80286134,000
1993Pentium3,100,000
2006Core 2290,000,000
2020Apple M116,000,000,000

From 2,300 to 16 billion in 49 years: about 7 million times more.

✔ Worked example · how to read this graph without getting it wrong
📋 The question: between the 4004 (1971) and the M1 (2020), by how much did the number of transistors multiply?
1️⃣ Take the two values from the table, not from the line: 2,300 in 1971 and 16,000,000,000 in 2020.
2️⃣ Divide, do not subtract. On a logarithmic scale what matters is how many times, not how much more: 16,000,000,000 ÷ 2,300 ≈ 7,000,000.
3️⃣ Check that the law holds. Multiplying by 7 million is about 23 doublings (because 2²³ ≈ 8 million). Spread over 49 years, that is one doubling every 2.1 years: just what Moore predicted.
Result: about 7 million times more. And notice the important thing: on the graph that huge jump is an almost straight line. When you see an axis with 10³, 10⁵, 10⁷…, a straight line does not mean «it grows little by little»: it means it keeps multiplying.

6.4 · Miniaturization: from a whole room to your pocket

That graph has a very physical consequence. The first vacuum-tube computers filled whole rooms, weighed tons and used as much power as a neighborhood. The phone in your pocket is far more powerful, fits in one hand and runs on a battery.

And it is not just a question of space: the smaller a transistor is, the less energy it uses to switch. Miniaturizing means, at the same time, making it more powerful and more efficient. That is the engine behind almost everything that has changed in technology since 1970.

How much longer?

Moore's law is running out: today's transistors are only a few nanometers across —a few dozen atoms— and they cannot keep shrinking forever. The industry is looking for other ways: stacking chips in 3D, designing specialized parts for each task or changing material. It is a prediction, not a law of nature.

6.5 · Electronics and saving energy

This is where everything you have built in this unit comes back. Remember the automatic lighting in lesson 5? An LDR, a transistor and an LED. Well, that, multiplied by all the street lights in a town, is an energy-saving policy.

💡

Switch on only when needed

A street light with an LDR does not use a single watt during the day. Without electronics, either someone switches it on by hand or it stays on longer than needed. The sensor is the saving.

🔆

And use less when it is on

Replacing old lamps with LEDs —which are diodes, lesson 4— cuts consumption enormously for the same light. The two savings add up.

♻️

But watch out for the other side

Making chips uses huge amounts of water and energy, and the devices we throw away are electronic waste that is hard to recycle. Electronics saves… and also costs.

6.6 · And this, in the Region of Murcia

Murcia does not make chips —hardly anyone does—, but it is a place where electronics is applied on a large scale, and in a sector very much its own: agriculture.

Automated drip irrigation is electronics from start to finish: soil moisture and temperature sensors, a controller that decides when and how much to water, and actuators —solenoid valves— that open and close. Exactly the chain you have built in the simulator, but with hectares in between. In a region where water is scarce, that chain is not a luxury: it is survival.

The same goes for greenhouses (control of temperature, humidity and ventilation), for the packaging lines of the food industry and for the industry in Cartagena, where automatic process control is the norm.

Find out for yourself

Look for a company or a project in your area that uses automation or sensors: a farming cooperative, a packaging plant, an irrigation system, a research center. Find out what it measures, what it decides and what it switches. You will see that you can almost always draw the chain sensor → controller → actuator.

▸ Check what you have understood

Practice: 7 exercises

This lesson has no simulator, so here you work by reading the graph, analyzing the shortage case and arguing in writing.

Read the graph

1. In the Moore's law graph, the vertical axis goes 10³ · 10⁵ · 10⁷ · 10⁹ · 10¹¹. What does going from one mark to the next mean?

2. The line on the graph comes out almost straight. What does that mean, given what the vertical axis is like?

Calculation from the graph

3. The Intel 4004 (1971) had 2,300 transistors and the Pentium (1993), 3,100,000. By roughly how much did it multiply in those 22 years? (Divide the second by the first and round.)

times
The shortage case

4. Put in order what happened between 2020 and 2021:

In 2021 people buy cars again, but there is no room left in the chip factories.
The pandemic arrives and carmakers cancel their chip orders.
Car plants stop, and Europe passes a plan worth billions to make chips here.
With everyone at home, sales of laptops and game consoles shoot up, and they take those chips.
Match

5. Match each idea with what goes with it:

Fill in the blanks

6. Fill in the blanks:

Moore's law says that the number of transistors per chip roughly every two years, and it is a . In an automatic street light, the component that detects whether it is night is , and it saves energy because .
Argue your case

7. The average phone is replaced every two or three years. Do you think that is sustainable? Give at least one argument for and one against, and finish with your own position.

For replacing it: each generation of chips uses less energy for the same work, so a new phone uses less energy day to day; besides, old devices break down and repairing them sometimes costs almost the same. Against: most of a phone's environmental impact is not in using it, but in making it —mining the materials, huge amounts of water and energy in the chip factory— and that cost is paid in full every time one is bought; besides, electronic waste is hard to recycle. A reasonable position: the saving from efficiency hardly ever makes up for the cost of making a new one every two years, so the sustainable thing is to make the device last longer (repair it, replace the battery, update the software) and recycle it properly when it really is finished. What matters is not the exact conclusion, but that you have weighed up both sides.
Review

Test yourself on the whole unit

Twenty-four questions that mix the six lessons, and at the end four circuits to build in the simulator. Parts A, B and D review what you have already worked on, with other components and other ways of asking; part C uses new numbers, and part E is two cases that bring several things together. If something goes wrong, the comment itself tells you where to go back to.

Part A · True or false?

1. The formula for the full charging time of a capacitor is t = 5 · R · C.

2. The microfarad (μF) is equal to 10⁻⁶ farads.

3. A diode in reverse bias lets all the current through.

4. A potentiometer is a resistor whose value cannot be changed.

5. Silicon behaves as an insulator at very low temperatures.

6. Semiconductors are the basis for making microprocessors.

Part B · Identify the symbol

7. Which of these symbols is a capacitor?

8. Which one shows a rectifier diode (the normal one, not the LED or the Zener)?

9. Choose the symbol for an NTC thermistor.

10. Which is the symbol for the LED?

11. Which one is a potentiometer?

12. And this one, the most basic of all: which is the fixed resistor?

Part C · Calculate with t = 5·R·C

All the numbers are different from the ones you saw in lesson 3. Remember to convert microfarads to farads.

13. A push button's debounce circuit has 2 kΩ and 100 µF. In how many seconds is the capacitor fully charged?

s

14. Now 330 Ω with 3000 µF. How many seconds?

s

15. In a timer you want 15 seconds and the capacitor you have is 2500 µF. What resistor do you need, in ohms?

Ω

16. And the other way round: you want 2 seconds with a 250 Ω resistor. What capacitor, in µF?

µF

17. If in an RC circuit we double R and also C, what happens to the charging time?

Part D · Passive or active?

18. What does it mean for a component to be «active» in electronics?

19. An electrolytic capacitor is classified as:

20. Is an LED active or passive?

21. What is the main difference between a linear resistor and a non-linear one?

22. Which of these sets of three are all PASSIVE components?

Part E · Bring several things together

23. You build the automatic street light from lesson 5 and it turns out it also lights up during the day. The LED, the battery and the transistor are fine. What is most likely?

24. You want a lamp that switches on when it detects heat and that also takes 3 seconds to reach full brightness. What three parts do you need, at least, besides the battery and the LED?

Part F · Build it in the simulator

You can answer the 24 above sitting down. These four have to be built, and the simulator marks them by itself: you will see the boxes tick as you place the parts. They do not count toward the score —they are not multiple choice—, but they are the ones that really show you have understood.

You already visited these challenges in Lessons. Here they come with a twist: do them without looking back at the lesson.

B3 · With the other solution

Go back to the 5-second flash and get it with the pair of values you did NOT use the first time. If you did 1 kΩ + 1000 µF, now do 10 kΩ + 100 µF. Think before you build it: you multiply the resistance by 10 and divide the capacitance by 10, so why do you get the same time?

▶ Open challenge 7
B4 · Predict and check

Build the diode in series with the LED. But before you press check, write down on paper what current you expect both ways round. Then look at it with the multimeter. Think: when it blocks, where does all the battery voltage go?

▶ Open challenge 9
B5 · Without looking at the table

Get the transistor to really amplify: at least 20 times less current has to flow through the base than through the LED. Without going back to the table in lesson 5: choose the base resistor yourself and measure with the multimeter. Think: if you go too big, what happens to the LED?

▶ Open challenge 11
⭐ Star challenge

Automatic lighting, from memory: a street light that switches on by itself at dusk. Bring three lessons together —the LDR that detects, the transistor that switches and the LED with its resistor— and check it by moving the light control from one end to the other. Think: why does the LDR have to go toward ground and not at the top?

▶ Open challenge 12
Final project

Design your automatic lighting

🌃

The street lights on your street switch on by themselves at dusk, and nobody is pressing a switch. When you started the unit that was almost magic. Now you have the three pieces to build it: something that detects, something that decides and something that switches on.

The job

Design, simulate and document an automatic street light: a circuit that switches an LED on when it gets dark and switches it off when there is light. No switches. Without touching anything.

It is not a new exercise: it is putting together what you already know. The LDR comes from lesson 2, the transistor from lesson 5, the LED with its resistor from lesson 1, and the why —saving energy— from lesson 6. What is assessed here is not putting parts together, but making decisions and justifying them.

The circuit you start from

This is the circuit, with the values measured in the simulator. You can copy it as it is… but first you have to understand why each part is where it is: in phase 1 you will be asked.

+ 9 V Rb 100 kΩ LDR Rc 470 Ω LED NPN In the dark the LDR's value rises and the base gets voltage: the transistor conducts and the LED switches on.

What you need

The unit's simulator

«Electronics lab». That is where you build and test it without using up a single component.

An LDR

The sensor. In the simulator it goes from 100 Ω in full light to 1 MΩ in the dark.

An NPN transistor

The one that decides. With a tiny current at the base it controls the LED's current.

Two resistors

Rb = 100 kΩ for the base and Rc = 470 Ω to protect the LED. These values work; others do too, and in phase 2 you are going to try it.

An LED and a 9 V battery

The street light's light and its power supply.

Pencil and paper

For the diagram in phase 1 and the table of measurements in phase 3. The report is not something you make up at the end.

The 5 phases

1

Analyze and design

⏱ 1 session

Before building anything, explain the circuit: what each component does and, above all, why the LDR goes toward ground and not at the top. Draw the diagram yourself with the correct symbols.

Hand in: a hand-drawn diagram + three sentences: what it detects, what it decides and what it switches.

2

Choose the values

⏱ ½ session

Do not copy Rb and Rc: justify them. What happens if Rb is 470 Ω instead of 100 kΩ? And if Rc is 220 Ω? Try it in the simulator before you decide.

Hand in: the two values you chose, each with a reason and what goes wrong if you overdo it.

3

Simulate it and measure it

⏱ 1 session

Build it in the simulator and move the light control from 0 to 100%. With the multimeter, note down the LED current at at least five points and find at what percentage it switches off.

Hand in: a table of measurements + the light percentage at which it switches.

4

Build it for real

⏱ 1 session

With the components in your hand, on a breadboard. Watch out for what the simulator lets you get away with: on the LED the long lead is the anode (it goes toward the +) and the short one is the cathode; and the transistor has its three leads in a fixed order — look it up in its datasheet before you plug it in, because the wrong way round it does not work.

Hand in: a photo of the circuit working, with your hand covering the LDR.

5

Document and evaluate

⏱ ½ session

Write the report: what you wanted, how you did it, what went wrong and how you fixed it. And finish with lesson 6: how much energy does a street light like this save compared with one that is on all night?

Hand in: a 1-2 page report with the diagram, the table, the photo and the final reflection.

Phase 3 · in the simulator

Challenge 12 is exactly this circuit, and it marks itself: check that it lights up in the dark and goes off in daylight. Use it to validate your design before you have the components in your hand — which is exactly what simulating is for.

▶ Open challenge 12

How it is assessed

The grade comes from 5 areas. The street light switching on is necessary, but it is only one fifth: what is valued most here is that you can explain why.

Area
Weight
What is assessed
📐 Design and diagram
20%
The diagram is well drawn, with the correct symbols, and you explain what each component does. It shows whether you have understood why the LDR goes toward ground.
🔢 Choice of values
20%
Rb and Rc are justified, not copied. You can say what happens if you go too high or too low, and you have checked it.
✅ How it works
20%
The circuit switches on in the dark and off in the light, both in the simulator and in the real circuit.
📊 Measurements and debugging
20%
A table of measurements with the multimeter and the switching point. If something went wrong, you explain what it was and how you found it.
🌍 Report and sustainability
20%
The report makes sense on its own, and the final reflection links the circuit to real energy saving: what this means in a whole city.

If you have time left, raise the bar. Swap the LDR for an NTC and you will have a temperature alarm. Add a potentiometer in place of Rb and you will be able to adjust how dark it has to be to switch on, which is what real street lights do. Or add a capacitor so it takes a few seconds to switch on and does not flicker every time a car goes by with its lights on.