Search Header Logo
TEB2053 Embedded Systems - Week 8

TEB2053 Embedded Systems - Week 8

Assessment

Presentation

•

Information Technology (IT)

•

University

•

Practice Problem

•

Easy

Created by

Mohd Ahmadon

Used 2+ times

FREE Resource

17 Slides • 5 Questions

1

media

2

​Course Learning Outcome
  • This module covers the fundamentals of Analogue-to-Digital Converters (ADC), including:

    1. ADC Basics – Converts analogue signals into digital values.

    2. Types of ADCs – SAR, Delta-Sigma, Dual Slope, Pipelined, and Flash ADCs.

    3. Arduino-Based ADC – ATmega328P’s 10-bit SAR ADC, input channels, and voltage reference.

    4. ADC Configuration – Setting ADMUX, ADCSRA, and ADCSRB registers for operation.

    5. Resolution & Calculation – Using formulas to determine digital output from input voltage.

    6. Arduino Programming – Configuring and reading ADC values in Arduino.

3

​Recap of Previous Week Lesson
media

​Pulse Width Modulation (PWM) is a technique used to control power delivery by varying the duty cycle of a digital signal. It is commonly used in motor control, LED dimming, and signal generation.

Key Concepts:

  1. Duty Cycle (%) – The percentage of time the signal is HIGH in one cycle.

    • Formula: Duty Cycle (%) = (TON / T) × 100

    • Higher duty cycle = More power delivered; Lower duty cycle = Less power.

  2. Frequency (Hz) – The number of PWM cycles per second.

    • Formula: PWM Frequency = 1 / T (where T = total period)

    • Higher frequency reduces flicker but affects resolution.

4

media

5

Multiple Choice

What is the primary function of an ADC?

1

Convert a digital signal into an analog signal

2

Convert an analog signal into a binary code

3

Store analog signals for later use

4

Amplify analog signals

6

media

7

media

8

Multiple Choice

What is the formula for ADC resolution?

1

Vref × (2^N - 1)

2

Vref / (2^N - 1)

3

Vin × Vref

4

(Vin / Vref) × 2^N

9

media

10

Multiple Choice

What is the purpose of the sample and hold (S/H) circuit in an ADC?

1

Increase the sampling rate

2

Store the digital output

3

Hold the input voltage constant during conversion

4

Reduce power consumption

11

media

12

media

13

media

14

media

15

Multiple Choice

Why is an ADC prescaler used in ATmega328P?

1

To adjust the ADC clock frequency

2

To increase ADC resolution

3

To convert digital signals to analog

4

To store ADC results

16

media

17

media

18

Multiple Choice

What is the function of the ACME bit in the ADCSRB register?

1

It enables the ADC interrupt

2

It is used for Analog Comparator input manipulation

3

It enables ADC auto-trigger

4

It sets the ADC reference voltage

19

media

20

​Summary

​Function – Converts analogue signals into digital values for microcontroller processing.

  • Resolution – Defined by bit depth (N-bit ADC), determining precision (e.g., 10-bit ADC gives values from 0 to 1023).

  • Types – Includes SAR, Delta-Sigma, Flash, Dual Slope, and Pipelined ADCs, each with different speed and accuracy trade-offs.

  • Microcontroller ADC (ATmega328P) – Uses a 10-bit SAR ADC with 6 input channels, controlled via ADMUX, ADCSRA, and ADCSRB registers.

  • Applications – Used in sensor data acquisition, signal processing, and real-world monitoring like temperature, pressure, and motion detection.

21

media

22

media
pattern-tertiary
media

Show answer

Auto Play

Slide 1 / 22

SLIDE