You are on page 1of 9

DIGITAL DATA ACQUISITION

Digital Data Acquisition


• ANALOG AND DIGITAL SIGNALS.
• ANALOG-TO-DIGITAL CONVERSION
- Sampling
- Quantization
- Bit Rate

• SAMPLING THEOREM AND ALIASING


- Aliasing in Spatial Domains
- Aliasing in the Temporal Domain
- Moiré Patterns and Aliasing

• FILTERING
- Filtering in 1D and 2D
Analog and Digital Signals
The physical world around us exists in a continuous form. ‫ العالم المادي من حولنا موجود في شكل‬:Commented [s1]
.‫مستمر‬
• sensing light
• Sensing sound energy.
• Sensing pressure.
• Sensing temperature.
• Sensing motion.
On the other hand, digital recording instruments attempt to measure information in an
electrical and digital form. ‫ تحاول أدوات التسجيل‬، ‫ من ناحية أخرى‬:Commented [s2]
‫الرقمية قياس المعلومات في شكل كهربائي ورقمي‬

Advantages of digital signals over analog ones: ‫ مزايا اإلشارات الرقمية على اإلشارات‬:Commented [s3]
‫التناظرية‬
• It is possible to create complex, interactive content.
.‫ من الممكن انشاء محتوي معقد وتفاعلي‬-
• Stored digital signals do not degrade over time or distance as analog signals do.
analog ‫ ال تتحلل االشارات الرقمية المخزنة بمرور الوقت او المسافة كما تفعل الـ‬-
• Digital data can be efficiently compressed and transmitted across digital networks.
‫ يمكن ضغط البيانات الرقمية ونقلها بكفائة عبر الشبكات الرقمية‬-
• It is easy to store all types of digital media on a common storage medium.
storage medium ‫“ علي‬digital media” ‫ يسهل تخزين جميع انواع الوسائط الرقمية‬-
Analog-to-Digital Converter (ADC)
• Special hardware devices: Analog-to-Digital converters.

→ Take analog signals from analog sensors (e.g., microphone) and digitally sample data. ‫ ← خذ إشارات تناظرية من أجهزة االستشعار‬:Commented [s4]
.‫التناظرية (مثل الميكروفون) وعينة رقمية للبيانات‬

Digital-to-Analog Converter (DAC)


• Playback: a converse operation to Analog-to-Digital.

→ Takes digital signal, possible after modification by computer (e.g., volume change, equalization) ‫ ممكن بعد التعديل‬، ‫ ← يأخذ إشارة رقمية‬:Commented [s5]
)‫ التعادل‬، ‫ تغيير الحجم‬، ‫بواسطة الكمبيوتر (على سبيل المثال‬
→ Outputs an analog signal that may be played by an analog output device (e.g., loudspeaker, CRT
display) ‫ ← يخرج إشارة تناظرية يمكن تشغيلها‬:Commented [s6]
، ‫ مكبر صوت‬، ‫بواسطة جهاز إخراج تناظري (على سبيل المثال‬
)CRT ‫شاشة‬
Analog-to-Digital Conversion
• The conversion of signals from analog to digital occurs via two main processes: sampling
and quantization. ‫ • يحدث تحويل اإلشارات من التناظرية إلى‬:Commented [s7]
.‫ أخذ العينات والتكميم‬:‫الرقمية من خالل عمليتين رئيسيتين‬
• Interpolation: The reverse process of converting digital signals to analog is known as
interpolation. ‫ تُعرف العملية العكسية لتحويل‬:‫ • االستيفاء‬:Commented [s8]
.‫اإلشارات الرقمية إلى تناظرية باسم االستيفاء‬

Sampling
• Sampling involves: Measuring the analog signal at regular discrete intervals and
recording the value at these points. ‫ قياس اإلشارة التناظرية على فترات منتظمة‬:Commented [s9]
.‫منفصلة وتسجيل القيمة عند هذه النقاط‬
• If you reduce T (increase f), the number of samples increases; correspondingly, so does
the storage requirement, and vice versa. ‫ يزداد عدد‬، )f ‫ (زيادة‬T ‫ • إذا قمت بتقليل‬:Commented [s10]
.‫ والعكس صحيح‬، ‫ وكذلك متطلبات التخزين‬، ‫العينات ؛ في المقابل‬
• T is a critical parameter. Should it be the same for every signal?

Hence, xs(1) = x(T ); xs(2) = x(2T); xs(3) = x(3T);


Quantization
• Quantization deals with encoding the signal value at every sampled location with a
predefined precision, defined by several levels. ‫ • يتعامل التكميم مع ترميز قيمة اإلشارة في‬:Commented [s11]
‫ ومحددة من خالل عدة‬، ‫كل موقع تم أخذ عينات منه بدقة محددة مسبقًا‬
.‫مستويات‬

More bits → Larger number of levels → better quality and large storage requirements and
vice versa.

• how many bits should be used to represent each sample? ‫ • كم عدد البتات التي يجب استخدامها لتمثيل‬:Commented [s12]
‫كل عينة؟‬
• Is this number the same for all signals? ‫ •هل هذا الرقم هو نفسه لجميع اإلشارات؟‬:Commented [s13]

→ It depends on the type of signal and what its intended use is. ‫ ← يعتمد ذلك على نوع اإلشارة وما هو‬:Commented [s14]
.‫الغرض من استخدامها‬
→ For example, Audio signals which represent music, must be quantized on 16 bits, whereas
speech only requires 8 bits.

• For the following sequence: 550, 600, -100, 150, -300, 900, 0 and 850
Quantize it using a uniform quantizer with 2 bits/sample and write the bit stream
representing the quantized sequence and finally calculate the error.
Bit Rate
• Bit rate is the number of bits produced per second. It is very important for storage and
distribution. ‫ • معدل البت هو عدد البتات المنتجة في‬:Commented [s15]
.‫ إنه مهم جدًا للتخزين والتوزيع‬.‫الثانية‬

Sampling theorem and Aliasing


• What is the rate at which sampling should occur?

- To determine the correct number of samples, you must calculate what is called the Nyquist
number and which is twice the maximum frequency occurring in the signal. ‫ يجب‬، ‫ لتحديد العدد الصحيح للعينات‬- :Commented [s16]
‫ وهو ضعف الحد األقصى للتردد الذي‬Nyquist ‫حساب ما يسمى برقم‬
Ex: If a signal has a maximum frequency of 10KHZ, it should be sampled at a frequency of .‫يحدث في اإلشارة‬

20KHZ.
What happened if your sampling frequency is higher than your Nyquist frequency?
→ The same analog signal will be reproduced; however unnecessary samples will increase storage
and transmission requirements. ‫ ← سيتم إعادة إنتاج نفس اإلشارة التناظرية‬:Commented [s17]
.‫؛ لكن العينات غير الضرورية ستزيد من متطلبات التخزين والنقل‬
What happened if your sampling frequency is Lower than your Nyquist frequency?
→ Reproduced signal will differ from the original one because all the frequency content is not well
captured during the digitization process. ‫ ← ستختلف اإلشارة المستنسخة عن اإلشارة‬:Commented [s18]
.‫األصلية ألن محتوى التردد ال يتم التقاطه جيدًا أثناء عملية الرقمنة‬
- This results in artifacts which are termed aliasing. (Used to describe the loss of
information during digitization). ‫ ينتج عن ذلك عيوب يطلق عليها اسم‬- :Commented [s19]
.)‫ (يستخدم لوصف فقدان المعلومات أثناء الرقمنة‬.‫مستعار‬
Aliasing in the Temporal Domain
• Examples of temporal aliasing can be seen:
- Motion of car wheels.
- Watching a helicopter blade.

FILTERING
• From a general point of view, it is a methodology to keep some frequencies and remove
all other frequencies.
• Analog filter: uses analog electronic circuits made up of components such as resistors,
capacitors, and operational amplifiers to produce the required filtering effect. ‫ • يستخدم الدوائر اإللكترونية التناظرية‬:Commented [s20]
‫المكونة من مكونات مثل المقاومات والمكثفات ومضخمات التشغيل‬
• Digital filter: uses digital numerical computations on sampled, quantized values of the .‫إلنتاج تأثير الترشيح المطلوب‬

signal. ‫ • يستخدم حسابات رقمية على عينات من‬:Commented [s21]


.‫القيم الكمية لإلشارة‬

Filters are classified into three categories according to their responses:


• Low-pass filters: remove high-frequency content from the input signal and keep other
content. ‫ قم بإزالة‬:‫ • مرشحات التمرير المنخفض‬:Commented [s22]
.‫المحتوى عالي التردد من إشارة اإلدخال واحتفظ بالمحتوى اآلخر‬
• High-pass filters: remove low-frequency content from the input signal and keep other
content. ‫ قم بإزالة‬:‫ • مرشحات التمرير العالي‬:Commented [s23]
.‫المحتوى منخفض التردد من إشارة اإلدخال واحتفظ بالمحتوى اآلخر‬
• Band-pass filters: output signals containing the frequencies belonging to a defined band. ‫ إشارات خرج‬:‫ • مرشحات تمرير النطاق‬:Commented [s24]
.‫تحتوي على ترددات تنتمي إلى نطاق محدد‬
Analog and Digital Filters
Advantages of digital filters over analog filters
• A digital filter is programmable. .‫ • مرشح رقمي قابل للبرمجة‬:Commented [s25]

• Digital filters are easily designed, tested, and implemented on a general-purpose


computer or workstation. ‫ • يتم تصميم المرشحات الرقمية واختبارها‬:Commented [s26]
.‫وتنفيذها بسهولة على جهاز كمبيوتر أو محطة عمل لألغراض العامة‬
• Digital filters can be combined in parallel or cascaded in series with relative ease
by imposing minimal software requirements. ‫متواز‬
ٍ ‫ • يمكن دمج المرشحات الرقمية بشكل‬:Commented [s27]
‫أو متتالي في سلسلة بسهولة نسبية من خالل فرض الحد األدنى من‬
• Analog filters are subject to drift and are dependent on temperature. Digital filters .‫متطلبات البرامج‬

do not suffer from these problems. ‫ • المرشحات التناظرية عرضة لالنجراف‬:Commented [s28]
‫ ال تعاني المرشحات الرقمية من هذه‬.‫وتعتمد على درجة الحرارة‬
• Digital filters are more versatile in their ability to process signals in a variety of .‫المشاكل‬

ways. ‫ • تعد المرشحات الرقمية أكثر تنوعًا في‬:Commented [s29]


.‫قدرتها على معالجة اإلشارات بعدة طرق‬

Effect of Low- and High-pass filters


Noise Removal

You might also like