1.Why should I care?
A design is only as good as its evidence. Exhaustive testing is possible for small logic, so engineers do it, and the indicator light that tells an operator 'RUN' is a real circuit with real current limits.
- ◇ Build the interlock in the logic lab and test every one of the 16 input combinations.
- ◇ Calculate and check the series resistor and its power for an indicator LED driven from a 5 V logic output.
- ◇ Present test evidence and limitations in a short design record.
Safety: Everything here is a low-voltage simulation. Never experiment with mains electricity or high-current batteries; real circuits are built only under supervision with a small, current-limited low-voltage supply.
2.Discover
Choose the LED circuit with a red LED on 5 V (standing in for the interlock's logic output). Set the resistor to 330 Ω and read the current and the resistor's power. Try 150 Ω and 1 kΩ too, and pick the value you would use, with a reason. Then test your interlock gates in the logic lab, recording all 16 rows.
Explorer 06 — Circuit fundamentals
Where the current goes, and why
A battery pushes current around a loop; resistors decide how much flows and where the voltage is used up. Change the circuit and the values, and check Ohm's law and Kirchhoff's laws for yourself.
- Current (thicker = more)
- Resistor
- Source (long plate +)
Source
Low-voltage DC only, up to 12 V
Resistors (E24 values)
- Total resistance
- 6 kΩ
- R1 + R2 + R3
- Source current
- 1.00 mA
- I = V / R
- Source power
- 6.0 mW
- P = V × I
- Sum of element powers
- 6.0 mW
- Equals source power
| Element | Value | Voltage | Current | Power |
|---|---|---|---|---|
| R1 | 1 kΩ | 1.00 V | 1.00 mA | 1.0 mW |
| R2 | 2 kΩ | 2.00 V | 1.00 mA | 2.0 mW |
| R3 | 3 kΩ | 3.00 V | 1.00 mA | 3.0 mW |
| Source | — | 6.00 V | 1.00 mA | 6.0 mW. Sum of element powers 6.0 mW. |
State
Series chain, 6.0 V source. Total resistance 6 kΩ. Source current 1.00 mA, power 6.0 mW. R1: 1.00 V, 1.00 mA; R2: 2.00 V, 1.00 mA; R3: 3.00 V, 1.00 mA. The three voltages add to 6.00 V, the source voltage (Kirchhoff's voltage law).
Series chain, 6.0 V source. Total resistance 6 kΩ. Source current 1.00 mA, power 6.0 mW. R1: 1.00 V, 1.00 mA; R2: 2.00 V, 1.00 mA; R3: 3.00 V, 1.00 mA. The three voltages add to 6.00 V, the source voltage (Kirchhoff's voltage law).
Guided experiments
Set up the circuit, predict what will happen, then make the change and compare.
01Double R2 in a series chainSeries
R1 = R2 = R3 = 1 kΩ. If you double R2, does the current halve?
+ What happens and why− What happens and why
Source current: 2.00 mA → 1.50 mA
Total resistance goes from 3 kΩ to 4 kΩ, so the current falls from 2.0 mA to 1.5 mA: smaller, but not half, because R1 and R3 did not change. R2 now takes a bigger share of the 6 V.
02Double the source voltageSeries
In a series chain, what happens to the current if you double the voltage from 3 V to 6 V?
+ What happens and why− What happens and why
Source current: 500 µA → 1.00 mA
Resistance has not changed, so by Ohm's law (I = V / R) the current doubles. Power goes up four times, because P = V × I and both doubled.
03Lower one parallel branchParallel
Two 1 kΩ resistors in parallel. If R2 drops to 100 Ω, what happens to the current through R1?
+ What happens and why− What happens and why
Current through R1: 6.00 mA → 6.00 mA
Each branch is connected straight across the ideal source, so R1 still has 6 V across it and its current stays at 6 mA. The total current rises, because R2 now takes 60 mA.
04Parallel is less than the smallestParallel
With R1 = 1 kΩ and R2 = 2 kΩ in parallel, is the total resistance above or below 1 kΩ?
+ What happens and why− What happens and why
Total resistance: 666.7 Ω → 500 Ω
Below. 1 kΩ ∥ 2 kΩ = 667 Ω: a second path always lets more current through. Making R2 equal to R1 halves the total to 500 Ω, so the source current rises.
05Load a voltage dividerDivider
A 10 kΩ / 10 kΩ divider gives half the supply. What happens to Vout if you connect a 10 kΩ load across R2?
+ What happens and why− What happens and why
Vout: 3.00 V → 2.00 V
The load sits in parallel with R2, so the bottom half becomes 5 kΩ and Vout drops from 3 V to 2 V. A divider only gives its ideal ratio when the load draws much less current than the divider itself.
06Protect the LEDLED
A red LED on 9 V with a 100 Ω resistor. Is the current safe for a typical 20 mA LED?
+ What happens and why− What happens and why
LED current: 70.0 mA → 14.9 mA
With the 2.0 V approximation, 100 Ω gives (9 − 2) / 100 = 70 mA, far too much. 470 Ω gives about 15 mA. The resistor sets the current because the LED's voltage stays roughly fixed.
07Below the forward voltageLED
A blue LED (about 3.0 V) with a 220 Ω resistor on 5 V. What happens if the supply drops to 2.5 V?
+ What happens and why− What happens and why
LED current: 9.09 mA → 0 mA
2.5 V is below the 3.0 V forward voltage, so in this model no current flows and the LED is off. A real LED fades out gradually rather than switching off at an exact voltage.
How to read this
The source pushes conventional current out of its positive terminal (the long plate), round the loop and back into the negative one. Arrows show its direction; thicker wires carry more current, and every reading is written next to its part.
Ohm's law: the voltage across a resistor is its current times its resistance (V = I × R). Kirchhoff's current law: current that splits at a junction adds back up to the same total. Kirchhoff's voltage law: the voltages round any loop add up to the source voltage. Power (P = V × I) is the rate energy is turned into heat or light; the table shows that it all adds up to what the source supplies.
Assumptions & limitations
- An idealised teaching model, not a design tool. Use it to understand the laws; check real circuits against datasheets and with a meter, and ask a teacher before building anything.
- Ideal source: it holds its voltage whatever current is drawn. Real batteries have internal resistance, so their voltage sags under load and they can get hot if shorted.
- Ideal wires with zero resistance, and exact resistor values. Real resistors have a tolerance (often ±1 % or ±5 %) and change slightly as they warm up.
- LED forward voltages (red ≈2.0 V, blue ≈3.0 V) are fixed approximations. A real LED's voltage varies between parts and rises with current, and it starts to glow gradually rather than at an exact voltage.
- Power-rating warnings use typical values (0.25 W for a small resistor, 20 mA for a small LED). Real parts vary: always check the part's own rating.
- The moving dots and their speed only show which way conventional current flows and roughly how much. Electrons actually drift the other way, very slowly.
- Low voltage only: the model refuses more than 12 V. Mains electricity is dangerous and is never something to experiment with.
Can't use the interactive? Read a description instead
In the circuits lab's LED circuit on 5 V with a red LED, 330 ohms gives about 9.1 mA with the resistor dissipating about 27 mW; 150 ohms gives 20 mA, right at a typical LED rating; 1 kΩ gives 3 mA, dim but safe. The interlock's 16 input combinations are tested in the logic lab and logged against the expected outputs.
3.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
A 5 V logic output drives a red LED (Vf = 2.0 V) through 330 Ω. What current flows, in milliamps?
4.Apply it
Submit your design record: specification, 16-row truth table, gate design built in the logic lab, 16-row test log with expected and actual outputs, LED resistor calculation checked in the circuits lab, and a limitations list. Use the term project rubric to check your own work before you hand it in.
5.Understand
Test every row
With 4 inputs there are only 16 combinations, so test all of them and record the output next to the expected value. Pay special attention to the single-fault rows from the previous lesson. A design that has passed every row has been verified against its truth table.
The indicator circuit
Treat the logic output as a 5 V source when Y = 1. For a red LED (2.0 V) and a target of about 10 mA: R = (5 − 2) ÷ 0.010 = 300 Ω; the next standard value up is 330 Ω, giving I ≈ 9.1 mA. Resistor power: P = 3 V × 0.0091 A ≈ 0.027 W, far under 0.25 W.
Check the output can supply it
Logic outputs can only supply a limited current; many can manage around 10–20 mA, but the real limit is on the chip's datasheet. Keeping the LED near 9 mA leaves margin. A bigger load, such as a motor or relay coil, needs a transistor driver, never a logic pin directly.
The design record
Present: the specification, the truth table, the gate design, the 16-row test log, the LED calculation with its simulated check, and the limitations. That record is what the term assessment looks at.
Explain it another way
Testing every row is like checking every door in a building before locking up, not just the ones you remember.
Exhaustive testing of an n-input combinational block needs 2ⁿ vectors and proves functional correctness against the specification (not against the specification's own mistakes). Output drive is limited by the gate's output resistance and absolute maximum current ratings.
R = (5 − 2) ÷ 0.010 = 300 Ω → 330 Ω. I = 3 ÷ 330 = 9.09 mA. P_R = 3 × 0.00909 = 0.0273 W. P_LED = 2.0 × 0.00909 = 0.018 W.
Machine-safety test procedures list every input combination and the required result, and a person signs off each line. Indicator lamps on control panels are sized to be visible without stressing the electronics that drive them.
Worked example 1
The operator wants a brighter light, so you try 150 Ω. Is it within a 20 mA LED rating?
I = 3 ÷ 150 = 20 mA: right at the rating, with no margin for tolerance (a 5% low resistor gives about 21 mA). Stay with 220 Ω (13.6 mA) or 330 Ω.
Common mix-ups
- If the logic passes every row, the system is safe.
✓ It is verified against its specification. Whether the specification covers every hazard is a separate question, which your limitations section must address.
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
What power does the 330 Ω resistor dissipate in that circuit, in milliwatts?
Practice 3 · a fresh version every time
A red LED drops 2.0 V when lit. It runs from a 9 V supply and should carry 15 mA. What series resistor is needed, in ohms?
Practice 4
Your interlock passes 15 of its 16 rows in testing; you skipped one because 'it obviously works'. What should you do?
Practice 5
Could the interlock's logic output drive the machine's motor directly?
7.Predict
A 5 V logic output drives a red LED (2.0 V) through 330 Ω. Roughly what current flows?
Guess first. Being wrong here is how the surprise works.
8.Reflect
Concepts: Logic gates and Boolean algebra · Series and parallel circuits · Electrical power and energy budgets