Skip to content
BoKSA

Design Document

Design Document

You turn research and advice into requirements you can build and later prove. You state what the product must do, why those choices follow from your earlier work, which standards and methods apply, and what the end user needs from the product. This product maps to the learning outcome Design & Realise.

A complete Design Document is short enough that a classmate can build from it. It holds the plan, the requirements, and the drawings your challenge asks for (state machine, wiring, API, data model, and similar). Each drawing belongs to a requirement. The checks you run, and the proof that something was built, go in the Realisation Document.

Use the knowledge your challenge already lists, plus the city Requirements.

Embedded, when your challenge points there:

Full-stack, when your challenge points there:

Quality indicators

When assessing this product, the following quality indicators are used:

  • The Design Document follows on from your research and advice: what you will build, and which option you set aside.
  • Requirements have an ID, a MoSCoW priority, a source, and one sentence a classmate can test.
  • Sources include the city requirements or your challenge, plus a method, datasheet, or standard from the knowledge your challenge points to.
  • Requirements you added yourself are marked as your own.
  • At least one requirement comes from the end user (for example safety, privacy, security, or accessibility) and says what the product will do about it.
  • Drawings and tables your challenge asks for sit in the specification, and each one names the requirement IDs it covers.
  • Each requirement names the check you will run later. You record the results in the Realisation Document.

Template

Copy the template and replace the examples with your challenge. Two shapes:

Embedded (traffic light). RQ-01, MUST, source: challenge and city safety. When no car is detected, every controlled side is red, and two approaches are never green together. Specified in the state machine. Check later: all sensors clear → all red.

Full-stack (city sensor dashboard). RQ-01, MUST, source: city requirements. The dashboard on the city Pi shows stored readings, and shows stale within 30 seconds after the feed stops. Specified in the fail-state rule and the API field lastSeen. Check later: stop the simulator and watch the UI.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Design Document: [challenge]

- **Author:** [name]
- **Date:** [date]
- **Challenge:** [link]
- **Based on:** [link to research and advice]

## 1. Plan

**What:** [the behaviour you will build, in one or two sentences]
**Why:** [how this follows from your advice]
**How:** [order of work, for example one side first then coordination, or simulator first then deploy]
**Alternative you set aside:** [one option, and why you left it]

## 2. Requirements

| ID | MoSCoW | Source | Requirement |
| -- | ------ | ------ | ----------- |
| RQ-01 | MUST | Challenge + city safety | When no car is detected, every controlled side is red, and two approaches are never green together. |
| RQ-02 | MUST | [datasheet, knowledge page, or city rule] | [your requirement] |
| RQ-03 | MUST | End user | [what the end user needs, for example safety, privacy, security, or accessibility] |

### RQ-01: Idle is red

**Requirement:** When no vehicle is detected on a controlled side, that side shows red, and two approaches are never green at the same time.

**Why:** The challenge is car detected → light update. All-red is the safe idle state. Replace this example with your own requirement.

**Specified in:** state machine in section 3 (Idle, Side A, Side B; never two greens).

**Check later:** all empty → all red, and both sides waiting → no conflict. Record the result in the Realisation Document.

### RQ-02: [title]

**Requirement:** […]

**Why:** […]

**Specified in:** […]

**Check later:** […]

### RQ-03: [title]

**Requirement:** [what the end user needs from the product, and what the product will do about it]

**Why:** [which end user this is for]

**Specified in:** […]

**Check later:** […]

## 3. Specification for this challenge

Paste the items your challenge lists (block diagram, state machine, timings, pin map, wiring, BOM, messages, data model, ports, fail-safe rules). Under each item, name the requirement IDs.

### [name, for example State machine]

[diagram or short description]

Covers: RQ-01

### [name, for example Pin map or API contract]

[table]

Covers: RQ-02, RQ-03