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.

3 parts46 problems9 concepts explainedPractice examFree
Start practising for free →

Contents

  1. Diodes and transistors
  2. Operational amplifiers
  3. Filters and signals

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

How to solve the problems

  1. Identify whether the component is a diode, zener diode, LED or transistor, and which region it operates in (forward/reverse bias, active/saturation/cutoff).
  2. For diodes: use VD≈0.7V_D \approx 0.7 V (silicon) in forward bias, and find the current from Ohm's law for the rest of the circuit.
  3. For zener/LED regulators: use R=(Vin−Vdiode)/IR = (V_{in} - V_{diode})/I, keeping all voltages and currents in the same unit.
  4. For a BJT: check whether the transistor is in the active region (IC=βIBI_C = \beta I_B) or in saturation (then ICI_C is set by the load circuit).
  5. Check the answer: are the current and voltage realistic (mA/V range, not A/kV)?

Example

A zener diode with VZ=5.6V_Z = 5.6 V is to stabilize the voltage from a 12 V source. The desired zener current is 20 mA. What series resistance is needed?

  1. Voltage that must drop across the resistor: Vin−VZ=12−5.6=6.4V_{in} - V_Z = 12 - 5.6 = 6.4 V.
  2. RS=6.40.02=320R_S = \dfrac{6.4}{0.02} = 320 Ω.

Answer: RS=320R_S = 320 Ω.

Common mistakes

A diode passes current in one direction with an almost constant voltage drop; a BJT is current-controlled (IC=βIBI_C = \beta I_B) in the active region, but behaves like a switch in saturation; a MOSFET is controlled by voltage.

Concepts in this part

Practise diodes and transistors in the app →

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

How to solve the problems

  1. Identify which basic circuit it is (inverting, non-inverting, follower, sum, difference, integrator/differentiator), and use the matching formula.
  2. For gain/bandwidth problems: find the gain AA first, then use f−3dB=GBW/Af_{-3dB} = GBW/A.
  3. For slew rate: find the voltage step ΔV\Delta V and divide by the slew rate.
  4. Always check whether the answer is within what the op-amp can actually deliver (saturation at the supply rails).
  5. Watch the sign: inverting circuits give an output with the opposite sign of the input.

Example

An op-amp has GBW=2GBW = 2 MHz and is used as a non-inverting amplifier with Rf=47R_f = 47 kΩ and Rg=1R_g = 1 kΩ. What is the upper cutoff frequency?

  1. Gain: A=1+47/1=48A = 1 + 47/1 = 48.
  2. f−3dB=GBWA=2 MHz48≈41.7f_{-3dB} = \dfrac{GBW}{A} = \dfrac{2\text{ MHz}}{48} \approx 41.7 kHz.

Answer: about 41.7 kHz.

Common mistakes

The feedback network sets the gain, not the op-amp's own open-loop gain. But neither the gain nor the speed is infinite: GBW limits the bandwidth at high gain, and slew rate limits how fast the output can change.

Concepts in this part

Practise operational amplifiers in the app →

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

How to solve the problems

  1. Identify the filter type (low-, high- or band-pass) and find the cutoff frequency (or frequencies) from fc=1/(2πRC)f_c=1/(2\pi RC).
  2. To find the attenuation in dB at a given frequency: compute ∣H∣|H| first, then take 20log⁡10∣H∣20\log_{10}|H|.
  3. To find RR or CC for a desired fcf_c: solve the formula for the unknown, e.g. C=1/(2πRfc)C=1/(2\pi Rf_c).
  4. For a band-pass filter: find f1f_1 and f2f_2 separately, and subtract to get the bandwidth.
  5. Remember that log⁡10\log_{10} of a ratio below 1 gives a negative number (attenuation), and above 1 gives a positive number (gain).

Example

An amplifier has Vin=50V_{in}=50 mV and Vout=2V_{out}=2 V. What is the gain in dB?

  1. Voltage gain: A=Vout/Vin=2/0.05=40A = V_{out}/V_{in} = 2/0.05 = 40.
  2. dB=20log⁡1040≈32.0dB = 20\log_{10}40 \approx 32.0 dB.

Answer: about 32.0 dB.

Common mistakes

Decibels are a logarithmic scale: 20log⁡10A20\log_{10}A for voltage/current, 10log⁡1010\log_{10} for power. At the cutoff frequency, the attenuation is always −3 dB and the phase is always −45°, no matter what RR and CC are used.

Concepts in this part

Practise filters and signals in the app →

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: fc=12πRCf_c = \dfrac{1}{2\pi RC}

At fcf_c the gain is 1/21/\sqrt2, 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.

Practise all the problems →

Matches these university courses

The content covers the syllabus found in engineering degrees, for example: