Catto / Topic Map · Final Project Level 6
Final Project · 96 h · Topic 3 of 4

The engineering preliminary design

A sensor that wakes up for a tenth of a second per minute at 20 mA and sleeps at 5 μA lasts almost six years on two AA batteries. If it draws 50 μA when asleep, it lasts less than three: the sleep mode decides the battery life.

Descriptive report Block diagram Energy budget Test plan Component selection

01What a preliminary design contains

The preliminary design is the document that shows, before building, that the proposed solution will meet the specification. It is not the detailed design —the complete schematics and the board come later—, but the architecture decisions justified with calculations. A typical preliminary design includes:

PartWhat it says
Descriptive reportThe problem, the user, the scope and what is left out
SpecificationThe quantitative and verifiable requirements
Block diagramThe functions, the interfaces between them and the signals that connect them
Selection of main componentsThe microcontroller, the sensor, the radio, the power supply, with the discarded alternatives and why
Sizing budgetsEnergy, measurement error, radio link, dissipation, response times
Test planHow each point of the specification will be verified
Preliminary costs and scheduleThe priced bill of materials and the stages

02The sizing budgets

A budget distributes a limited resource among the blocks and verifies that it is enough with a margin. The error budget adds up the uncertainties of the sensor, signal conditioning and converter, as seen in Measurements; the link budget adds up powers, gains and losses down to the receiver sensitivity; the thermal budget verifies junction temperatures with the dissipation of each component, and feeds the reliability estimate. In a battery-powered device, the most important is the energy budget: with active and sleep duty cycles, the average current is

\[ \bar I = \frac{I_a\,t_a + I_s\,(T - t_a)}{T} \] \[ \text{battery life} = \frac{\eta\, C}{\bar I} \] \( I_a \) is the active current during \( t_a \), \( I_s \) the sleep current, \( T \) the period between wake-ups, \( C \) the battery capacity and \( \eta \) the usable fraction, taken here as 0.8 to cover the cutoff voltage, temperature and aging.
Lab · energy budget of a sensor node

A node that wakes up every T seconds, measures and transmits for ta at current Ia, and sleeps the rest of the time at Is. The curve is the battery life in years as a function of the period, on a logarithmic scale; the yellow dot is the chosen design.

03The test plan

Each point of the specification needs a test that says how it will be measured, with what instrument, under what conditions and what the acceptance criterion is. Writing it into the preliminary design forces the specification to be verifiable and anticipates the instruments that will be needed. The degree’s laboratory tests —from Electronic Measurements I and II— are the basis; those for regulatory compliance, if the product requires them, are usually done in an external laboratory and should be budgeted. The manufacturing technology was defined in construction technology.

04In the laboratory

Activity 1 · Block diagram

Draw the block diagram of the final project with the interfaces, the supply voltages and the signals between blocks.

Activity 2 · Measuring consumption

With a sense resistor and the oscilloscope, measure the current profile of a microcontroller that sleeps and wakes up, and compare it with the budget.

Activity 3 · Verification matrix

Build a table with each specification, the test that verifies it and the instrument required.

05Common mistakes

  • Taking the sleep current from the microcontroller datasheet alone. Regulators, dividers, sensors and pull-ups also consume.
  • Using the full nominal capacity of the battery. At low temperature or with current peaks considerably less is usable.
  • Promising battery lives of decades. Battery self-discharge sets a limit of a few years to a decade.
  • Leaving the test plan for the end. If a specification cannot be tested, it has to be rewritten now.

06Self-assessment

What average current does the lab node have with its initial values?

About 38.3 μA.

What battery life does that give with two AA cells?

Almost 6 years: \( 0.8 \cdot 2500 / 0.0383 \approx 52\,000 \) hours.

And with a CR2032 coin cell?

A little over half a year.

What is the difference between a preliminary design and a detailed design?

The preliminary design fixes and justifies the architecture with calculations; the detailed design produces the complete schematics, board and software.

07Further reading

  • Karl T. Ulrich and Steven D. Eppinger. Product Design and Development. McGraw-Hill. (Spanish edition: “Diseño y desarrollo de productos”.) Product architecture and system-level design.
  • Elecia White. Making Embedded Systems. 2nd ed., O'Reilly, 2024. Embedded systems architecture and power reduction.
  • Paul Horowitz and Winfield Hill. The Art of Electronics. 3rd ed., Cambridge University Press, 2015. Low-power circuit design and component selection.
Development of the topic “The engineering preliminary design” of Final Project (Level 6), based on the curriculum of the UTN Electronic Engineering program, 2023 curriculum — Ordinance No. 1849 of the UTN Higher Council. Back to the Topic Map · catto.ar