Aliasing occurs when a signal is sampled at an insufficient rate, causing high-frequency components to "fold back" as erroneous low-frequency artifacts. Here's a systematic approach to identifying and resolving aliasing problems: ![Untitled-Diagram---2024-03-20T152135550](https://hackmd.io/_uploads/r1npFDwwxx.png) **1. Recognize Aliasing Symptoms** **Visual Indicators:** * High-frequency sine waves appear as lower frequencies * Jagged or distorted waveforms that don't match the input * Unexpected frequency components in FFT analysis **Numerical Indicators:** * Violation of Nyquist criterion (fs < 2*fmax) * Spectral mirroring around fs/2 (Nyquist frequency) **2. Apply Anti-Aliasing Solutions** **A. Increase Sampling Rate (fs)** * Rule: Ensure fs > 2*fmax (Nyquist-Shannon Theorem) * Practical Tip: Sample at 5-10× the highest frequency of interest for safety margin. **B. Implement Analog Anti-Aliasing Filters** **Low-Pass Filter (LPF):** * Butterworth/Chebyshev filters with cutoff (fc) at fs/2 * Example: For fs = 10kHz, set fc ≈ 4kHz (not 5kHz, accounting for roll-off) **Filter Order:** * Higher order = steeper roll-off (e.g., 4th-8th order) * Tradeoff: Phase distortion vs. aliasing suppression **C. Digital Anti-Aliasing (Post-Sampling)** Oversampling + Decimation: 1. Sample at higher rate (e.g., 10× desired rate) 2. Apply digital LPF 3. Downsample to target rate FIR/IIR Filters: Real-time filtering in [DSP](https://www.ampheo.com/c/dsp-digital-signal-processors)/[FPGA](https://www.ampheo.com/c/fpgas-field-programmable-gate-array) **D. Dithering (For Quantization Noise)** * Add low-amplitude noise before sampling to randomize quantization errors * Particularly useful in ADC systems with low bit resolution **3. Verification Techniques** **Time-Domain Analysis** * Compare sampled signal with original ([oscilloscope](https://www.onzuu.com/category/oscilloscopes)/capture) * Look for: * Missing high-frequency details * False low-frequency oscillations **Frequency-Domain Analysis (FFT)** Check for: * Mirrored frequencies above fs/2 * Unexpected peaks near Nyquist limit **Simulation Tools** * MATLAB/Python (scipy.signal) to model sampling effects * LTspice for analog filter design **4. Common Pitfalls & Fixes** ![企业微信截图_20250730173848](https://hackmd.io/_uploads/r1oruDDPxx.png) **5. Practical Example** Scenario: Sampling a 3kHz audio signal with fs = 5kHz Issue: Aliasing (since fs < 2*3kHz) Solution: 1. Analog LPF: 2kHz cutoff (4th-order Butterworth) 2. Resample: Increase fs to 10kHz 3. Verify: FFT shows no mirrored frequencies **Key Takeaways** ✅ Nyquist is the minimum – Always sample faster than 2*fmax ✅ Analog filters are first defense – Prevent aliasing before ADC ✅ Oversampling helps – Gives flexibility for digital filtering ✅ Validate with FFT – Essential for spotting hidden aliasing