Day 4 - Binary Representation of Images and Sound

Day 4: Binary Representation of Images and Sound

Learning Objectives

Essential Questions

Materials Needed

Vocabulary

Procedure (50 minutes)

Opening (8 minutes)

  1. Review and Connection (3 minutes)

    • Review text encoding from previous lesson
    • Connect to today's focus on image and sound representation
  2. Warm-up Activity (5 minutes)

    • Display a simple image and ask: "How might this be stored as 0s and 1s?"
    • Play a short audio clip and ask the same question

Main Activities (32 minutes)

  1. Lecture: Image Representation (12 minutes)

    • Explain how images are represented as grids of pixels
    • Introduce resolution and its impact on image quality
    • Explain color depth:
      • 1-bit (black and white)
      • 8-bit (256 colors)
      • 24-bit (16.7 million colors)
    • Demonstrate the RGB color model and how colors are encoded
    • Show how increasing bits per pixel affects image quality and file size
    • Briefly mention other color models (CMYK, HSL)
  2. Demo: Pixel Representation and Color Depth (5 minutes)

    • Show the same image at different resolutions
    • Demonstrate zooming in to see individual pixels
    • Show the same image at different color depths
    • Demonstrate how RGB values combine to create different colors
  3. Activity: Creating Pixel Art (10 minutes)

    • Students create simple pixel art on grid paper
    • For each pixel, students specify the color using RGB values
    • Students translate a small section of their art into binary representation
    • Optional: Use digital tools to create pixel art if computers are available
  4. Lecture: Sound Representation (5 minutes)

    • Explain how sound waves are digitized through sampling
    • Introduce sampling rate (samples per second) and its effect on quality
    • Explain audio bit depth and its impact on dynamic range
    • Demonstrate how higher sampling rates and bit depths affect audio quality and file size

Closing (10 minutes)

  1. Discussion: Quality vs. File Size (5 minutes)

    • Play audio samples with different sampling rates/bit depths
    • Show images with different resolutions/color depths
    • Discuss the trade-offs between quality and file size
    • Ask students to consider: When is higher quality necessary? When is it wasteful?
  2. Assessment and Preview (5 minutes)

    • Students create a simple image and explain its digital representation
    • Preview that next class will focus on data abstraction and file formats

Assessment

Differentiation

For Advanced Students

For Struggling Students

Homework/Extension

Teacher Notes