English:Transistors comparators and switching - Electronics Year 10
Introduction
A simulated equipment display should recognise a sensor condition and turn on a warning symbol. Separate the decision made by a comparator from the current controlled by a transistor. Test a simple threshold, design a steadier rule and use model readings to distinguish faults in the two stages.
Separate the decision from the load
A sensor voltage can represent a changing condition. A comparator compares the voltages at its two inputs and gives an output state indicating their order. A transistor can act as an electronic switch, using its control input to change the current in a load path. The load is the part that uses electrical energy, such as a model indicator.
A signal diagram for the exercise is sensor and reference → comparator → transistor switch → indicator. The comparator state and the load state should be tested separately. In the first model, the warning command is active high, meaning that a high command requests the warning. In a simulated low-side switch, the transistor lies on the return side of the load. When it conducts, the switch node near the return is low while the indicator is on. “High command” and “low switch node” can describe the same system state.

Compare the sensor with a reference
The comparator symbol has non-inverting (+) and inverting (−) inputs. For an ideal comparator, the output is high when the + input is higher than the − input. Put the model sensor at + and a fixed 2.50 V reference at −. For the written exercise we explicitly assign equality to the high state. In a real comparator, input offset and noise influence switching near equality, so check the datasheet and give the design appropriate margins.
Observation task: identify the two quantities that determine the ideal decision and look for the explanation of input offset. Written route: classify 2.49 V, 2.50 V and 2.51 V using the stated model rule. Then explain which decision depends on the equality convention.
A real comparator may have a push-pull or an open-collector output. In the open-collector example, the output transistor can pull the node low or release it. A suitable pull-up in the model defines the high level when the transistor releases the node. Simply observing an open or released node does not establish its voltage. Confirm signal polarity and how the high state is defined before linking the result to a switch stage.
Compare an NPN transistor and an n-channel MOSFET
A bipolar NPN transistor has base, collector and emitter terminals. In a switching model, with sufficient base current it can conduct with a small collector–emitter voltage. Without base drive it is modelled as off. The change in load current is controlled by the base signal, while the model supply provides the load’s energy.
An enhancement-mode n-channel MOSFET has gate, drain and source terminals. Its control quantity is the gate voltage relative to the source. The gate draws very little steady current in an idealised model, but it takes charge to move the gate between states. The gate threshold on a datasheet is specified at a stated drain current. To estimate loss while carrying the intended load, look for the on-resistance specified at the available gate drive and relevant conditions.
Observation task: identify the controlling terminal and the separate load path in the NPN example. Written route: label the two paths in a block diagram and explain how the MOSFET’s gate-to-source quantity differs from the NPN base-current model.
| Fictional model | Load current | Assumed on-state property | Switch power |
|---|---|---|---|
| NPN switch | 20 mA | 0.18 V across the transistor | 3.6 mW |
| n-channel MOSFET switch | 20 mA | 2.0 Ω on-resistance | 0.8 mW |
At 0.020 A, the MOSFET’s model voltage drop is 0.040 V. Multiplying the voltage drop by load current gives the power dissipated in each fictional switch. These numbers compare the stated models and depend on the assumed conditions. They are simplified examples rather than component specifications.
Make the comparator decision less sensitive to noise
A single threshold can switch repeatedly as a slowly changing input jitters near the reference. A two-threshold model rises to on at 2.60 V or above, falls to off at 2.40 V or below and keeps its previous state in between. This behaviour is hysteresis. The threshold spacing is 0.20 V. These values describe a simulation using integer millivolts to express exact boundaries.
| Sample (mV) | Single threshold at 2500 mV | Two thresholds, starting off |
|---|---|---|
| 2350 | Off | Off |
| 2490 | Off | Off |
| 2510 | On | Off |
| 2480 | Off | Off |
| 2620 | On | On |
| 2500 | On | On |
| 2390 | Off | Off |
samples_mv = [2350, 2490, 2510, 2480, 2620, 2500, 2390]
warning_on = False
trace = []
for reading in samples_mv:
if reading >= 2600:
warning_on = True
elif reading <= 2400:
warning_on = False
trace.append("On" if warning_on else "Off")
print(trace)You can read the code or follow the table by hand. Between 2.40 V and 2.60 V, try the same input starting once from off and once from on. More separation between thresholds can reduce chatter, but it can also delay a response. Choose thresholds against the intended warning behaviour.
Diagnose one stage at a time
The model receives 2.62 V and the decision says “on”. A virtual test reports the switch node still high and the indicator off. Start by checking whether the control signal reaches the switch stage and whether that stage uses the expected polarity. Then inspect the model current path. If a separate test drove the switch and the indicator lit, that would support investigating the signal between the stages. Keep the first observation in the record.

Write expected and observed results for the comparator output, the switch node and the indicator as separate columns. Include a reading clearly below the lower threshold, a reading clearly above the upper threshold, both exact boundaries and an in-between reading with each starting state. A fault is easier to localise when the test states which block has already passed.
Interactive Tasks
Quiz: Test Your Knowledge
What does a comparator determine in this lesson? (The order of two input voltages.) (!The resistance of a disconnected part.) (!The energy used by an indicator over a day.) (!The position of a component lead by its colour.)
Which input receives the sensor for the illustrated high-on-rising comparison? (The non-inverting input.) (!The comparator output.) (!The reference ground only.) (!The transistor drain directly.)
Under the stated single-threshold rule, what is the command at exactly 2.50 V? (On) (!Off) (!Alternating by definition) (!Dependent on the preceding sample by definition)
What drives the model NPN base? (Current into the base.) (!On-resistance taken from a MOSFET table.) (!A named drain voltage only.) (!The brightness of the indicator directly.)
Which quantity controls the idealised MOSFET channel? (Gate-to-source voltage) (!Collector-to-emitter voltage) (!LED wavelength) (!Voltage measured across the comparator reference only)
What does an open-collector output do when it releases the node? (Allows the pull-up to define the high level in this model.) (!Actively drives a high voltage by itself.) (!Forces the load current to the NPN base.) (!Changes the light level at the input.)
Why use two thresholds? (To reduce repeated switching near one boundary.) (!To remove the sensing input.) (!To guarantee a real component’s exact switching voltage.) (!To replace the indicator with a voltmeter.)
The warning starts off and first reads 2.51 V. What does the two-threshold model do? (Stays off) (!Turns on) (!Resets the reference to zero) (!Switches between states once per second)
At 20 mA, what is the loss for the model NPN switch with a 0.18 V drop? (3.6 mW) (!0.36 mW) (!36 mW) (!3.6 W)
What is the next check if command is on while the switch node is high and the load is off? (Check the control signal at the switch and the expected polarity.) (!Replace the sensor before measuring any nodes.) (!Omit the virtual reading from the log.) (!Assume the command was off.)
Memory Game
| Comparator | Makes a voltage comparison |
| NPN switch | Base current influences the load path |
| n-channel MOSFET | Gate-to-source voltage controls the channel |
| Open-collector output | Can pull low or release the line |
| Hysteresis | Separate thresholds for the two directions |
| Switch node | Local point whose voltage can be low when the load is on |
Drag and Drop
| Sensor voltage and fixed 2.50 V | Comparator input pair |
| Small current into the NPN control terminal | Base drive |
| Voltage between gate and source | MOSFET control quantity |
| Two thresholds and the state between them | Noise-tolerant decision model |
| On command with the indicator still dark | Test the decision and switch stages separately |
Crossword Puzzle
| Comparator | Device that indicates the order of two input voltages |
| Base | NPN control terminal |
| Gate | MOSFET control terminal |
| Drain | MOSFET terminal on one side of the conducting channel |
| Load | Part that uses the delivered electrical energy |
| Reference | Comparison voltage applied to one input |
LearningApps
Optional extra practice. Choose an appropriate activity with your teacher. If the external collection is unavailable, use the native activities and independent tasks in this course.
Cloze Text
Open Tasks
Easy
- Name the control terminals: Name the control terminal of the NPN and that of the MOSFET.
- Identify the reference: Mark the input receiving the fixed 2.50 V in the model diagram.
- Place the load: Name one possible visible load output.
- Convert the threshold: Convert 2.60 V to millivolts.
Standard
- Apply the comparator rule: Predict single-threshold outputs at 2.49, 2.50 and 2.51 V.
- Trace the two thresholds: Starting off, predict the outputs for 2.59, 2.60, 2.50 and 2.40 V.
- Calculate MOSFET loss: Use 2.0 Ω and 20 mA to find model voltage drop and loss.
- Explain a low switch node: How can the indicator be on while the switch node reads low in the low-side model?
Advanced
- Compare switching choices: Name one useful parameter and one modelling limitation for each transistor type.
- Check output behaviour: Explain how a missing pull-up could make a released model output hard to interpret.
- Choose a margin: Describe when a wider threshold band could be useful and one drawback it might introduce.
- Isolate a model fault: Propose two test observations that would distinguish a comparator fault from an interruption in the load path.
Learning Check
- Explain the two blocks: Why does the warning design include a comparator and a switch stage?
- Read an exact threshold: A two-threshold model starts off. Readings are 2.59, 2.60, 2.50 and 2.40 V in sequence. Give the outputs.
- Recognise a real limitation: Why should the specified real MOSFET on-resistance at the available gate drive be checked separately from gate threshold?
- Compare losses: For 20 mA, compare 0.18 V drop with a switch model of 2.0 Ω. Give both dissipated powers.
- Explain a released node: What establishes the high state in the stated open-collector model?
- Propose a staged fault check: A simulated command is on but the load is dark. Give two checks that separate decision and switch behaviour.
Worked checks and assessment guidance
- The comparator decides which input voltage is higher. The switch stage controls current through the indicator with energy from the supply.
- Off, on, on, off. The exact upper reading turns it on, the intermediate reading keeps the state, and the exact lower reading turns it off.
- Threshold marks conduction under a stated test current. On-resistance under the relevant gate drive and conditions supports estimating switch loss.
- The 0.18 V drop gives 3.6 mW. The 2.0 Ω switch has a 0.040 V drop and gives 0.8 mW under these assumptions.
- A pull-up defines the high level when the open-collector transistor releases the output.
- Check the control level and expected polarity at the switch. Use the model switch node and load current to see whether the load path responds to that control.
Learning evidence
Submit a three-stage warning diagram, a comparator trace with exact boundaries, and a short comparison of the two switch models. Use expected and observed data to propose a check for an off indicator after an on command. State one assumption about the comparator output and one assumption about the switch.
OER and Wikipedia
Department for Education, GCSE Electronics subject content. Eduqas, GCSE Electronics guidance for teaching. Texas Instruments, LM393 comparator family. onsemi, n-channel enhancement MOSFET data. onsemi, 2N3903 and 2N3904 data. All worked values, traces and fault records are synthetic.
LEDs, Afrank99, CC BY-SA 2.0. Digital multimeter, K.Venkataramana, CC0 1.0. For further reading, see 2N3904, Windell Oskay, CC BY 2.0, and MOSFET cross-section, Hermitage17 and Fred the Oyster, public domain. All files are from Wikimedia Commons.
Introduction to comparator functions, Texas Instruments. NPN and PNP transistors explained, The Engineering Mindset. Every video observation has a written alternative.
Linked learning areas
aiMOOC Projects
Schulfach+


aiMOOCs


aiMOOC Projekte


MOOCwiki · Deutsch
Nach dem Lernen ist vor dem Lernen
Entdecke direkt den nächsten Lernkurs. Weitere Inhalte erscheinen, wenn Du weiter nach unten scrollst.
Zur MOOCwiki-HauptseiteMediathek
Mediathek wird aus dem Wiki geladen ...
Keine passenden Inhalte gefunden. Bitte ändere Suche oder Filter.
NEWSLernweltNOAH fragen