>
section 12 of 133 min read

12. Things to Try

  1. Build an inverting op-amp with a TL072: Rin=1R_{in} = 1 kΩ, Rf=10R_f = 10 kΩ. Gain is 10-10. Drive with a 1 kHz, 100 mVpp signal generator. Watch the output: should be a 1 Vpp signal, inverted. Sweep the input frequency up; watch the gain start dropping above the GBW limit (around 300 kHz with a 3 MHz GBW op-amp at gain 10).
  2. Add a 100 nF capacitor in parallel with RfR_f: turns the inverting amp into a low-pass filter with cutoff 1/(2πRfC)1601/(2\pi R_f C) \approx 160 Hz. Sweep frequency and watch the magnitude roll off above the cutoff at 20 dB/decade.
  3. Build an instrumentation amp with three TL072s and the topology in Section 3.7. Apply a small differential signal across two long wires while touching them lightly to a 50 Hz common-mode source (hover near a power cord). The in-amp recovers the small differential signal cleanly while rejecting the mains.
  4. Build a Sallen-Key low-pass filter for fc=1f_c = 1 kHz with a TL072. Use the design from Section 5.3 and the SPICE netlist there. Drive with a function generator from 100 Hz to 100 kHz; record amplitude at each frequency; plot magnitude vs frequency. Verify the cutoff is near 1 kHz and the rolloff is 40 dB/decade.
  5. Wire up a 555 in astable mode for 1 kHz. RA=7.5R_A = 7.5 kΩ, RB=3.3R_B = 3.3 kΩ, C=100C = 100 nF: f1.44/((RA+2RB)C)1f \approx 1.44/((R_A + 2 R_B) C) \approx 1 kHz. Watch the square wave on a scope.
  6. Build a peak detector with a precision rectifier (one op-amp, one diode, one cap, one bleeder resistor). Drive with a slowly rising sine; watch the output stick at the peak.
  7. Code a SAR ADC simulation in Python: generate a noisy sine wave, sample at fsf_s, simulate the SAR's binary search to produce 12-bit codes, and plot the FFT of the samples to see the SNR. Add a hypothetical 1 ns clock jitter and watch the noise floor rise; verify the ENOB drops by the predicted amount.
  8. Design a Butterworth low-pass with scipy at fc=100f_c = 100 Hz, fourth-order. Plot the s-plane pole locations. Verify they sit on a circle of radius ωc\omega_c in the left half-plane.
  9. Build a Wien bridge oscillator with a TL072 and a small incandescent bulb (12 V, 25 mA) in the gain divider for AGC. Choose R=16R = 16 kΩ, C=10C = 10 nF for f1f \approx 1 kHz. Watch the sine on the scope: it should start small from noise and grow to a stable amplitude limited by the bulb's resistance change.
  10. Capture a power trace with a low-cost oscilloscope. Solder a 1 Ω shunt in series with an Arduino's VccV_{cc}, scope across the shunt, run the AES library, and capture. Even at the few-MS/s of a USB scope you can see structure that correlates with crypto rounds. This is the threshold of side-channel attack.