---
title: "Digital camera as embedded system"
subject: "Embedded System"
chapter: 1
key: "semester_6/embedded_system:digital-camera-embedded-example"
source: https://www.bctengineer.com/q/semester_6/embedded_system/digital-camera-embedded-example
site: BCT Engineering
---

# Digital camera as embedded system

Embedded System · Chapter 1: Introduction to Embedded System

- Asked in: 2074 Bhadra, 3 marks; 2079 Asoj, 4 marks (asked 2 times)
- Video: [Case Study on Digital Camera (Embedded System)](https://www.youtube.com/watch?v=hL2lvgF7rgw) — Pradnya Pardhe Moon
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_6/embedded_system/digital-camera-embedded-example
- Whole chapter: https://www.bctengineer.com/md/semester_6/embedded_system/chapter-1

## Question

Explain why a digital camera is a good example of an embedded system (draw its block diagram and explain it).

## Short answer

A digital camera exemplifies an embedded system: it performs one dedicated task (image capture, processing, compression, storage) using a microcontroller with fixed firmware, CCD sensor, JPEG engine, and memory. It is tight on size, power, and real-time response, requiring fast processing and reliable operation.

## Answer

A digital camera is a good embedded system because it has one dedicated function (capture, process, compress and store images), uses a processor with memory and I/O, runs fixed firmware, is tightly constrained (small, cheap, low power, fast), is real-time (the image must be processed quickly) and reacts to the environment through a sensor and user buttons.

#### Block diagram
```text
 Lens -> [CCD/CMOS] -> [A/D] -> +-------------------+
 light    sensor                |  Microcontroller   |
                                |  (CPU, firmware)   |
 Buttons ---------------------> |                    |
 LCD <-------------------------<|  JPEG codec (DSP)  |
                                |  Memory controller |
                                +--------+-----------+
                                         |
                          [DRAM]   [Flash/memory card]  [USB/UART]
```

#### Explanation
- **Lens and CCD/CMOS sensor:** converts light into charge on a pixel array (rows and columns).
- **A/D converter:** converts the analog pixel charge into digital values.
- **Microcontroller (CPU):** runs firmware that controls the shutter, flash, auto-focus, and user interface.
- **JPEG codec / DSP:** compresses the image (DCT, quantisation, Huffman coding) to save storage.
- **Memory:** DRAM holds the image during processing; flash/memory card stores pictures permanently; ROM holds firmware.
- **Display (LCD) and buttons:** the user interface.
- **USB/serial port:** transfers pictures to a PC.

It also shows the design-metric trade-off: the designer must keep power, size and cost low while keeping speed (a few images per second) high.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. Why is a digital camera a good example of an embedded system?
   A. It runs many user-installed programs
   B. It has one dedicated function with a processor, fixed firmware and tight constraints
   C. It has no processor
   D. It is mains-powered with a large disk
   Answer: B. A camera has a single dedicated function, runs fixed firmware on a processor with memory and I/O, and is tightly constrained. (Key point: Why camera is embedded)

2. What is the role of the A/D converter in the camera?
   A. It compresses the image
   B. It stores pictures permanently
   C. It converts the analog pixel charge from the sensor into digital values
   D. It drives the LCD
   Answer: C. The CCD/CMOS sensor gives analog charge on the pixel array; the A/D converts it to digital. (Key point: Block diagram signal path)

3. Why does the camera have a JPEG codec/DSP?
   A. To transfer pictures to a PC
   B. To convert light into charge
   C. To hold the firmware
   D. To compress the image (DCT, quantisation, Huffman) and save storage
   Answer: D. The JPEG codec compresses images so more pictures fit in flash storage. (Key point: JPEG codec)

4. Which memory holds the pictures permanently?
   A. Flash/memory card
   B. ROM
   C. DRAM
   D. The CPU registers
   Answer: A. DRAM holds the image during processing, ROM holds firmware, and flash/memory card stores pictures permanently. (Key point: Memory types)

## Related in Embedded System

- [Characteristics and digital camera example](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Aembedded-characteristics-digital-camera) — Embedded System, chapter 1
- [PID control operation with block diagram](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Apid-operation-block-diagram) — Embedded System, chapter 7, asked 4×
- [Define embedded system and its applications](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Adefine-embedded-system-applications) — Embedded System, chapter 1, asked 4×
- [Design metrics of embedded system](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Adesign-metrics-embedded) — Embedded System, chapter 1, asked 3×
- [Define embedded system and its characteristics](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Adefine-embedded-system-characteristics) — Embedded System, chapter 1, asked 2×
- [Embedded system types and definition difficulty](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Aembedded-types-hard-to-define) — Embedded System, chapter 1

## Related in other subjects

- [Block diagram of digital communication system](https://www.bctengineer.com/question.md?key=semester_5%2Fdata_communication%3Ablock-diagram-digital-comm) — Data Communication, chapter 1, asked 8×
- [Digital control system block diagram and advantages](https://www.bctengineer.com/question.md?key=semester_6%2Fdigital_control_system%3Adcs-block-diagram-advantages) — Digital Control System, chapter 1, asked 3×
- [Digital data acquisition system block diagram](https://www.bctengineer.com/question.md?key=semester_4%2Finstrumentation_i%3Adigital-data-acquisition-system) — Instrumentation I, chapter 6
- [Analog and digital system block diagrams; linear and non-linear distortion](https://www.bctengineer.com/question.md?key=semester_6%2Fcommunication_systems%3Aanalog-digital-block-linear-nonlinear-distortion) — Communication Systems, chapter 1
