# Design worksheet: from a brief to a checked schematic

ARGYNIX Skills (worldskills.blog), lesson "From a brief to a checked schematic".
Our own worksheet. The example column is the lesson's battery monitor. Replace it with
your own brief. Show every line of working: a value with no working cannot be checked.

## 1. The brief

[Copy it here, word for word.]

## 2. Requirements

Each one: a number, a limit, a test. Add the ones the brief only implies (reversed
supply, pins floating during reset, standard values).

| # | Requirement | Test | Example (battery monitor) |
|---|---|---|---|
| R1 | | | Runs from 9 V to 15 V; 5 V rail in limits at both ends |
| R2 | | | Battery within +/-2%; meter at 9, 12, 15 V |
| R3 | | | Relay off below 11.5 V, on above 11.8 V |
| R4 | | | Survives reversed battery for 10 s |
| R5 | | | Relay off while the MCU resets |
| R6 | | | E-series values only |

## 3. Block diagram

Draw boxes left to right: input and protection, power, controller, inputs, outputs.
Write on each arrow what passes along it (voltage, current, signal).

```
[J1 battery] -> [D1 protection] -> [U1 5 V] -> [MCU]
      |                                          |
      +-> [R1/R2 divider, C1] -> A0              +-> D7 -> [Q1 driver] -> [K1 relay]
```

## 4. Calculations

One line each: formula = values with units = result; then the chosen standard value
and the result it gives.

| Block | Working | Chosen | Check |
|---|---|---|---|
| Divider ratio | k max = 4.7 V / 15 V = 0.313 | R1 22k, R2 10k: k = 0.3125 | 15 V gives 4.69 V |
| Source resistance | 22k parallel 10k = 6.9 kOhm | | Under the 10 kOhm the ADC asks for |
| Filter | fc = 1 / (2 pi x 6875 Ohm x 100 nF) = 231 Hz | C1 100 nF | |
| Counts at 12 V | 12 V x 0.3125 x 1024 / 5 V = 768 | | One count = 15.6 mV at the battery |
| Reverse clamp current | (12 - 0.5) V / 22 kOhm = 0.5 mA | | Under 1 mA (our bench target) |
| Base current | IB = 30 mA / 10 = 3 mA | | Forced gain 10 |
| Base resistor | R3 = (5 - 0.8) V / 3 mA = 1.4 kOhm | 1k2: IB = 3.5 mA | Round down: drives harder |
| Base pull-down | | R4 10k | Q1 off during reset |
| Regulator heat | P = (14.7 - 5) V x 0.02 A = 0.19 W | | x 60 C/W = 12 C rise |
| | | | |
| | | | |

## 5. Error budget

Take each source at its worst. Add them. Compare with the requirement.

| Source | First design | Error | Final design | Error |
|---|---|---|---|---|
| Divider ratio | +/-1% resistors | +/-1.38% | +/-0.1% resistors | +/-0.14% |
| Reference | Regulator +/-2% | +/-2.00% | AVCC measured, meter +/-0.5% | +/-0.50% |
| Rounding | +/-0.5 count of 768 | +/-0.07% | | +/-0.07% |
| | | | | |
| **Total** | | **+/-3.45% (fails)** | | **+/-0.71% (passes)** |

Ratio error from the resistors = (error of R1 + error of R2) x R1 / (R1 + R2).

## 6. Check it by simulation (LTspice)

Run the block in LTspice at nominal values and at the worst case of every tolerance.
Write the simulated value next to the calculated one. If they disagree, find out why
before you draw the schematic.

| Check | Calculated | Simulated (nominal) | Simulated (worst case) | Agree? |
|---|---|---|---|---|
| Pin at 12 V, +/-1% resistors | 3.750 V, +/-1.38% | 3.750 V | 3.699 V and 3.802 V | Yes |
| Pin at 15 V, highest case | under 5 V | 4.688 V | 4.752 V | Yes |
| Pin at 12 V, +/-0.1% resistors | +/-0.14% | 3.750 V | 3.745 V and 3.755 V | Yes |
| | | | | |

## 7. Parts list as you go

| Ref | Value | Rating | Footprint | MPN | Why this one |
|---|---|---|---|---|---|
| D1 | Schottky | 40 V, 1 A | | | Low drop, reverse protection |
| R1 | 22k 0.1% | | | | Divider top |
| R2 | 10k 0.1% | | | | Divider bottom |
| C1 | 100n | 50 V X7R | | | ADC filter |
| R3 | 1k2 | | | | Base resistor |
| R4 | 10k | | | | Base pull-down |
| D2 | 1N4148 | | | | Coil flyback |
| | | | | | |

## 8. Schematic checks in Autodesk Fusion (EAGLE works the same way)

- [ ] Sheet laid out like the block diagram, left to right, supplies at the top.
- [ ] Nets named (VBAT, VBAT_P, BATT_SENSE, RELAY_DRV with net labels).
- [ ] A supply symbol on every power net (here GND and +5V). A net fed only by a
      connector's passive pins has no supply as far as the ERC can see.
- [ ] Every component has its value and footprint, and the attributes MANUFACTURER
      and MPN filled in (the bill of materials reads those names).
- [ ] Tolerance written in the value where it matters (22k 0.1%, 10k 0.1%).
- [ ] No Connection marks on pins left open on purpose (Design > Connect > Net,
      No Connection).
- [ ] Decoupling: 100 nF at each VCC and AVCC pin, and on AREF.
- [ ] ERC (Validate > ERC) run after the last change. Errors: 0. Every approved
      message has its reason in the log below.

## 9. ERC log

| Message | Where | Fixed how, or approved because |
|---|---|---|
| No supply for the GND pins | U1 and U2 GND, ground net drawn with a label only | GND supply symbol placed on the net |
| Output pin and supply pin on one net | U1 OUT and the +5V supply symbol | Approved: U1's output is where +5V comes from (our part gives OUT the direction Out) |
| Unconnected pins | Spare MCU pins | No Connection marks on the pins left open on purpose |
| | | |
| | | |
