All courses › Electronics
Electronics: free practice, theory and problems
A diode is a component that lets current through in (almost) only one direction, and a transistor lets a small current or voltage control a much larger current. Together they make it possible to rectify AC voltage, stabilize voltages, amplify signals and build digital switches – the foundation of power supplies, sensor interfaces and logic.
Contents
1. Diodes and transistors
What is it about?
A diode is a component that lets current through in (almost) only one direction, and a transistor lets a small current or voltage control a much larger current. Together they make it possible to rectify AC voltage, stabilize voltages, amplify signals and build digital switches – the foundation of power supplies, sensor interfaces and logic.
Concepts and formulas
- Silicon diode in forward bias: the voltage drop is roughly constant, V, almost independent of the current.
- Diode in reverse bias: it (almost) blocks all current, until the breakdown voltage is reached.
- Zener diode: used backwards (in reverse bias) to hold a fixed voltage . Simple voltage regulator: a series resistor between the source and the zener diode, , where is the desired zener current.
- LED: behaves like a diode with a larger voltage drop (often 1.8–3.3 V). Always needs a series resistor: .
- BJT: in the active region. In cutoff, and the transistor conducts no current. In saturation, is very low (typically 0.1–0.3 V) regardless of – the transistor behaves like a closed switch, and is then set by the rest of the circuit, not by .
- MOSFET: controlled by the voltage between gate and source. The gate draws almost no DC current.
- Bridge rectifier: four diodes turn both half-cycles of an AC voltage into the same polarity; a smoothing capacitor after the bridge reduces the ripple voltage.
How to solve the problems
- Identify whether the component is a diode, zener diode, LED or transistor, and which region it operates in (forward/reverse bias, active/saturation/cutoff).
- For diodes: use V (silicon) in forward bias, and find the current from Ohm's law for the rest of the circuit.
- For zener/LED regulators: use , keeping all voltages and currents in the same unit.
- For a BJT: check whether the transistor is in the active region () or in saturation (then is set by the load circuit).
- Check the answer: are the current and voltage realistic (mA/V range, not A/kV)?
Example
A zener diode with V is to stabilize the voltage from a 12 V source. The desired zener current is 20 mA. What series resistance is needed?
- Voltage that must drop across the resistor: V.
- Ω.
Answer: Ω.
Common mistakes
- Believing holds in saturation – there is set by the load circuit, not by .
- Forgetting the series resistor for an LED and connecting it directly to a voltage source (it is destroyed by excess current).
- Using the wrong voltage drop: about 0.7 V for silicon diodes, 0.3 V for Schottky, 1.8–3.3 V for LEDs depending on color.
- Mixing mA and A, or kΩ and Ω, in the same calculation.
Concepts in this part
2. Operational amplifiers
What is it about?
An operational amplifier (op-amp) is an amplifier with enormously high gain that is almost always used together with a few resistors and capacitors in feedback. It is the feedback network, not the op-amp's own (unpredictably high) open-loop gain, that decides what the circuit does. With a handful of basic circuits – inverting and non-inverting amplifier, follower, summing, difference, integrator and differentiator – you can amplify sensor signals, filter, add voltages and build comparators.
Concepts and formulas
- Ideal op-amp with negative feedback: no current flows into the inputs, and the two inputs have the same voltage (virtual short).
- Inverting amplifier: .
- Non-inverting amplifier: (always ).
- Voltage follower (buffer): , high input impedance, low output impedance.
- Inverting summing amplifier: .
- Difference amplifier with matched resistor pairs (, ): .
- Integrator: . Differentiator: .
- Saturation: the output can never go past the supply rails; rail-to-rail op-amps get very close to them.
- Gain-bandwidth product (GBW): for most op-amps, (closed-loop gain) × (upper cutoff frequency) a constant . Higher gain therefore gives lower bandwidth: .
- Slew rate (): the maximum rate the output can change, in V/µs. The time for a voltage step is at least .
How to solve the problems
- Identify which basic circuit it is (inverting, non-inverting, follower, sum, difference, integrator/differentiator), and use the matching formula.
- For gain/bandwidth problems: find the gain first, then use .
- For slew rate: find the voltage step and divide by the slew rate.
- Always check whether the answer is within what the op-amp can actually deliver (saturation at the supply rails).
- Watch the sign: inverting circuits give an output with the opposite sign of the input.
Example
An op-amp has MHz and is used as a non-inverting amplifier with kΩ and kΩ. What is the upper cutoff frequency?
- Gain: .
- kHz.
Answer: about 41.7 kHz.
Common mistakes
- Assuming the gain stays the same at all frequencies – in practice the GBW limits the bandwidth.
- Using for an inverting amplifier, or the reverse.
- Forgetting that the output saturates at the supply rails even though the ideal formula gives a larger number.
- Mixing up and in the inverting formula.
Concepts in this part
3. Filters and signals
What is it about?
A filter shapes how a circuit responds to different frequencies: a low-pass filter passes low frequencies and attenuates high ones, a high-pass filter is the opposite, and a band-pass filter passes a specific range of frequencies. Filters are everywhere – removing noise, preventing aliasing before an ADC, blocking a DC level (AC coupling), and shaping audio signals. The key to describing gain over many decades of frequency is the decibel (dB) scale, a logarithmic scale that lets you add instead of multiply.
Concepts and formulas
- Cutoff frequency of an RC low-pass: . Same formula for an RC high-pass.
- Amplitude ratio of a first-order low-pass: . At , (−3 dB).
- Decibels for voltage/current (gain ): . For power: (the factor is 20 for voltage/current because power ).
- Attenuation in dB for a first-order filter: .
- Phase of a first-order low-pass: . At , .
- Roll-off (slope far from ): 20 dB/decade per order. A second-order filter (two RC stages) falls 40 dB/decade.
- Band-pass filter: high-pass (cutoff ) followed by low-pass (cutoff ); bandwidth .
- SNR (signal-to-noise ratio): .
How to solve the problems
- Identify the filter type (low-, high- or band-pass) and find the cutoff frequency (or frequencies) from .
- To find the attenuation in dB at a given frequency: compute first, then take .
- To find or for a desired : solve the formula for the unknown, e.g. .
- For a band-pass filter: find and separately, and subtract to get the bandwidth.
- Remember that of a ratio below 1 gives a negative number (attenuation), and above 1 gives a positive number (gain).
Example
An amplifier has mV and V. What is the gain in dB?
- Voltage gain: .
- dB.
Answer: about 32.0 dB.
Common mistakes
- Using for a voltage or current gain instead of .
- Thinking that −3 dB means the signal is gone – it means roughly half the power (71% amplitude).
- Mixing up the sign: attenuation gives negative dB, gain gives positive dB.
- Using the raw frequency instead of the ratio in the amplitude and phase formulas.
Concepts in this part
Example problems with solutions
Here are some of the problems in electronics. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.
Diodes and transistors: Roughly how large is the voltage drop across a forward-biased silicon diode?
Answer: 0.7 V
Schottky diodes have around 0.3 V, and LEDs 1.8–3.3 V.
Operational amplifiers: Which two rules apply to an ideal op-amp with negative feedback?
Answer: No current flows into the inputs, and the two inputs are at the same voltage
The second rule is called the virtual short.
Filters and signals: What is the cutoff frequency of an RC low-pass filter?
Answer:
At the gain is , i.e. −3 dB.
Diodes and transistors: What is a Zener diode typically used for?
Answer: Holding a stable reference voltage in reverse bias
It conducts at the Zener voltage in reverse bias.
Matches these university courses
The content covers the syllabus found in engineering degrees, for example:
- TTT4203 (NTNU)
- FYS235 (NMBU)