Signal-processing project
הוצג
7:22
עיבוד אותות דיגיטלי
Digital signal processing rebuilds the continuous theory for samples, where arithmetic is exact: N samples in, N numbers out, and every promise can be…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| specification/ˌspesɪfɪˈkeɪʃn/ | |
| threshold/ˈθreʃəʊld/ | The level a detector compares each value with: above it counts as "signal present". |
| measured performance/ˈmeʒəd pəˈfɔːməns/ | ביצועים נמדדים |
| latency limit | |
| processing gain/ˈprəʊsesɪŋ ɡeɪn/ | רווח עיבוד |
| false alarm/fɒls əˈlɑːm/ | A detection caused by noise alone, with no real signal present. |
הגדרה, בנייה ומדידה
- הקורס מסתיים כך שהעבודה האמיתית מתחילה: עם מפרט, מימוש ומדידה.
- דוח כנה מתעד את הפער בין השלושה, כולל כישלונות.
צינור זרימה מאומת
- הפרויקט הוא זיהוי טון: פילטר נגד אליאסינג, ולאחר מכן חלון, FFT, וסף.
- בדוק כל שלב בנפרד לפני הוספת השלב הבא. תקלה שנמצאת בשלב אחד עולה שעה; אם נמצאת במערכת כולה, שבוע.


Put the tone detector's stages in order.
רמת קושי 3/5 · 200 מטבעות + בונוס קטן בהשלמה הראשונה היום
Filter before sampling, window before transforming, then decide on the spectrum.
כתוב את הספציפיקציה קודם
- הגלאי חייב להחזיר תאים בגודל 1 Hz, לתת תשובה בתוך פחות מ-1 שניות, ולזהות סימן בטון ברמת SNR של $-10$ dB.
- לכל שורה יהיה ערך ביצועים מדודים בדוח, עבר או כשל.
A specification line the design fails should be left out of the report.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Every line gets its measured value, failures included. Silent goals hide exactly what a reader needs to know.
דוגמה פותרת: הספציפיקציה מחזירה אשכול
- תאים בגודל 1 Hz בקצב דגימה של $f_{s} = 1$ kHz דורשים $N \ge 1000$, שהוא כבר 1.0 שניות של נתונים, מול גבול השהייה של פחות מ-1 שניות.
- $N = 1024$ מספק תאים בגודל 0.977 Hz אך רצף של 1.024 שניות, מה שמוביל לכישלון. $N = 1000$ יושב בדיוק על הקו. הדוח מתעד את האיזון.
0.5 Hz bins at f_s = 2 kHz need at least how many samples?
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
$N = f_{s}/\Delta f = 2000/0.5 = 4000$, which is 2 s of data.
How long a record, in s, does that design need?
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
4000 samples at 2 kHz is 2 s. Resolution always costs measurement time: $T = 1/\Delta f$.
רווח עיבוד
- אנרגיית הטון מצטברת בתא אחד, בעוד שרעש לבן מתפשט על כל $N/2$ התאים.
- לכן ה-FFT מעלה את SNR בתא הטון ב-רווח העיבוד $10\log_{10}(N/2)$ dB.
What processing gain does a 4096-point FFT give, in dB? Give the nearest whole number.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
$10\log_{10}(4096/2) = 10\log_{10}2048 = 33.1$ dB.
דוגמה פותרת: האם −10 dB ניתן לזיהוי?
- ב-$N = 1024$, ההגברה העיבודית היא $10\log_{10}512 = 27$ dB.
- SNR כניסה של $-10$ dB הופך לכ-$+17$ dB בתאי הטון. העלות של החלון היא כמה dB, ועדיין יש margin לגילוי.
A 256-point FFT gives 21 dB of processing gain. Can it find a tone at −25 dB input SNR?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
−25 + 21 = −4 dB in the bin, below the noise. A longer FFT, 4096 points or more, would be needed.
שלוש טעויות נפוצות
- בדיקה רק במקרה הקל. מדד גם את הקשים, ועד כישלונות.
- כוונון לטון הבדיקה. זיהוי המותאם לטון בדיקה אחד לא מגדיר דבר על אחרים.
- העברת בדיקות שלבים. אינטגרציה מסתרת תקלות ששלב בדיקה היה מראה.
A detector checks 1000 noise-only bin values and may give one false alarm among them. Threshold $T/\sigma^2$ (two decimals)?
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
$e^{-T/\sigma^2} = 1/1000$, so $T/\sigma^2 = \ln 1000 = 6.91$, about 8.4 dB above the mean noise.
The threshold is raised by 3 dB. What happens?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
A higher bar is crossed less often by noise and by weak tones alike. The threshold trades one error for the other; only more processing gain (a longer $N$) improves both.
סיכום
- ציין תחילה; בדוק כל שלב בנפרד; מדוד את הכלל.
- עוצמת העיבוד $10\log_{10}(N/2)$ קובעת האם ניתן למצוא גוון חלש.
- לכל שורת ספציפיקציה מתקבל מספר מדידה.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
Four common slips
- Testing only the easy case. Measure the hard ones too, and report failures.
- Tuning to the test tone. A detector fitted to one test proves nothing about others.
- Skipping stage checks. Integration hides faults that a stage test would show.
- Choosing the threshold by eye. Set it from the false-alarm 虚警 rate you can accept, then measure both false alarms and misses.
Match each habit to the problem it prevents.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
Verification is the difference between a demo and a product.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
Recap
- Specify first; check each stage alone; measure the whole.
- Processing gain 处理增益 $10\log_{10}(N/2)$ decides whether a weak tone can be found:
| $N$ | 256 | 1024 | 4096 |
|---|---|---|---|
| Gain (dB) | 21 | 27 | 33 |
- Threshold from the false-alarm rate: $T/\sigma^2 = \ln(\text{chances per false alarm})$, 10.3 dB for one in 51 200.
- Every specification line gets a measured number and a verdict.
מה השתבש? רק צוות האתר רואה זאת.