D131 of 14
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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?

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 I¯=∑kIktk/T over a cycle, and battery life = capacity/I¯.
  • 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

ProjectSpecialtiesLessons
Solar-powered sensor nodepower, embedded, communications2 to 4
Software radiosignals, communications, DSP5 to 7
Motor controllerpower electronics, controls8 to 10
A computer of your owncomputer organization, embedded, digital design11 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
  1. Average current. 20 mA for 0.05 s and 0.005 mA for the other 599.95 s of every 600 s: I¯=1600(20×0.05+0.005×599.95)mA=6.67μA
  2. Battery life by the budget. t=2000mAh0.00667mA=300000h=34years
  3. 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
  1. Path loss over 5 km at 868 MHz. L=20log10⁡5+20log10⁡868+32.44=105.2dB
  2. Received power. Pr=14+2.15−105.2+2.15−1=−87.9dBm
  3. Margin. −87.9−(−120)=32.1dB
  4. 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.

  1. Acompare against a calibrated thermometer at three temperatures
  2. Bmeasure the average current over a whole cycle and divide it into the capacity
  3. Crun the firmware once on the bench and watch it blink
  4. Da link budget, then a field test at 2 km with the margin measured
  5. 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?

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.