D13 · Lesson 1 · Planning a capstone
Turning an idea into measurable requirements, a block diagram whose interfaces you can test, budgets for power, link margin, timing and cost written before anything is built, a verification plan that ties each requirement to a test, and choosing one of the four projects
A capstone is the first time the specialties meet in one system: a solar panel, a battery, a microcontroller and a radio all have to agree on volts, milliamps, milliseconds and decibels. Most capstones that fail don't fail in a block that someone understood badly; they fail where blocks meet, because nobody added up the current, the link margin or the time budget before building. This lesson is the planning that comes first, and it applies to whichever project you pick.
- The link budget of a sensor node's radio at 868 MHz as a chain: transmit power, antenna gains, free-space path loss over distance d, and a cable loss.
- The receiver needs −120 dBm. The margin is how far the received level sits above that, and it's what absorbs fading, walls and a battery near the end of its life.
- Slide the distance: each doubling costs 6 dB, so a margin of 30 dB at 5 km is a margin of 12 dB at 40 km in free space, and far less near the ground (D9).
Predict
A sensor node draws 20 mA for 50 ms every 10 minutes and 5 µA the rest of the time. Which part of its average current is bigger?
The bursts average 20 mA × 0.05 s/600 s = 1.67 µA, while sleep adds nearly 5 µA all the time, so the average is 6.67 µA and sleep is three quarters of it. Budgets like this decide where design effort goes: here, a lower sleep current matters more than faster code.
Name it
Requirements
A requirement is something you can measure, with a number and a condition: "reports the temperature every 10 minutes, to ±0.5 °C, for a year on one battery, at up to 2 km". Vague goals like "low power" or "long range" can't be tested, so they can't be met.
Block diagram and interfaces
Draw the system as blocks with the signals between them, and write each interface down: voltage levels, data formats, timing, who drives what. Each interface is a place to test one side without the other.
Budgets
Before building, add up every shared resource:
- Power and energy: average current over a cycle, and battery life = capacity/.
- Link: received power = transmit power + gains − losses, against the receiver's sensitivity, leaving a margin.
- Time: each task's worst-case time within its deadline (C12).
- Cost, size and mass, if they matter.
Keep margin in every budget, because estimates are optimistic and parts vary (lesson 14).
Verification plan
For each requirement, write the test that will show it's met, and the pass criterion, before building. A requirement with no test is a wish.
The four projects
| Project | Specialties | Lessons |
|---|---|---|
| Solar-powered sensor node | power, embedded, communications | 2 to 4 |
| Software radio | signals, communications, DSP | 5 to 7 |
| Motor controller | power electronics, controls | 8 to 10 |
| A computer of your own | computer organization, embedded, digital design | 11 to 13 |
Worked example
The node in the prediction runs from a 2000 mAh battery. How long does it last, by the budget?
Show the solution
- Average current. 20 mA for 0.05 s and 0.005 mA for the other 599.95 s of every 600 s:
- Battery life by the budget.
- Self-discharge. A real lithium cell loses a few percent a year to self-discharge, which would end its life long before the load did, so self-discharge belongs in the budget too.
Answer by the budget, 300,000 h, or 34 years; self-discharge would end it long before that.
Worked example
A 14 dBm, 868 MHz link uses 2.15 dBi antennas and 1 dB of cable loss over 5 km. What's its free-space margin against a −120 dBm receiver?
Show the solution
- Path loss over 5 km at 868 MHz.
- Received power.
- Margin.
- Near the ground. The two-ray model (D9) and buildings eat much of that.
Answer a free-space margin of 32.1 dB.
Check
A node draws 20 mA for 20 ms every 600 s and 20 µA otherwise. What's its average current?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A 1000 mAh battery supplies an average of 5 µA. How many days does it last, by the budget?
Check
A 14 dBm, 868 MHz link with 2.15 dBi antennas and 1 dB of cable loss spans 1 km of free space. What's its margin against a −120 dBm receiver?
Check
Match each requirement with the test that would show it's met.
- Acompare against a calibrated thermometer at three temperatures
- Bmeasure the average current over a whole cycle and divide it into the capacity
- Crun the firmware once on the bench and watch it blink
- Da link budget, then a field test at 2 km with the margin measured
- Ean hour-by-hour energy simulation of a worst-case week
Check
A measurement chain has three independent error sources of 1%, 0.2% and 1.5%.
(a)
What is the worst-case total?
(b)
What is the root-sum-square total?
Check
A capstone task is estimated at 10 days. The plan adds 20% contingency, as this course recommends for work never done before. How many days are scheduled?
Explain why
Why write the budgets before building anything?
A budget adds up what every block needs from a shared resource, such as current from the battery, decibels of path loss against the receiver's sensitivity, or microseconds within a deadline. Doing it on paper takes minutes and shows immediately whether the design can work at all and which block dominates, so effort goes where it matters, such as cutting sleep current instead of speeding up code. Discovering the same problem after the hardware is built means redesigning boards and rewriting firmware. Budgets also turn requirements into numbers each block must meet, which become the tests used to verify it.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.