What the standard asks
Section 3 of the 2026 Electronics standard, Hardware design and development, is worth 20% of the marks (WorldSkills Occupational Standards, Electronics, WorldSkills Shanghai 2026, checked 2026-11-25). It asks you to follow a design cycle from the problem to a design ready to produce, to calculate component values and choose parts fit for the job, to check designs by simulation, and to draw schematics in design software.
The section page works out an LED resistor, an RC filter and a regulator's heat one at a time, and lists the steps in Fusion. This lesson joins them into one job: a short brief taken to a schematic that passes the electrical rules check (ERC) in Autodesk Fusion, where every value on the sheet has a calculation behind it. The new idea is the error budget: adding up every source of error before you build, so the board meets its accuracy on the first try.
We train in Fusion, EAGLE's successor. If your competition still provides EAGLE, the schematic works the same way, and the commands typed on the command line, such as ERC, have the same names.
The theory
Requirements you can test
A brief is written in sentences. Rewrite it as numbered requirements, each with a number and a way to test it. "Measures the battery accurately" cannot be tested. "Measures the battery from 9 V to 15 V within ±2%, checked against a meter at 9, 12 and 15 V" can.
Then add the requirements the brief only implies. A battery can be connected backwards. A microcontroller's pins float while it resets. If the brief does not mention them, the board still has to survive them.
A block diagram, then the datasheets
Five minutes with boxes and arrows: protection, regulator, microcontroller, the measuring input, the output driver. It shows what each block must deliver to the next, and it becomes your sheet's layout, left to right.
Then size each block with its datasheet open. Find the number that limits each part (a voltage, a current, a power, an input range) and choose with a margin. Our bench rule: resistors at no more than half their rated power, voltage ratings at least 1.5 times the highest voltage the part will see.
The error budget
Accuracy is a sum. Every part between the thing you measure and the number on the screen adds its own error. List them, take each at its worst, and add them up. If the total is bigger than the requirement, change the design before you draw it. Never change the requirement to fit the design.
Check the numbers by simulation
The standard asks you to check designs by simulation. A simulator does not replace the calculation: it checks it. Draw or load the circuit in LTspice, run it, and compare its numbers with yours. If they disagree, one of the two is wrong, and you find out before a board is made. Simulate the worst case too, with each part at the edge of its tolerance, not only the nominal values.
The schematic in Fusion
- Values and attributes. Every component carries its value and its footprint. Add two attributes: MANUFACTURER and MPN, the manufacturer's part number. Fusion's bill of materials reads attributes with exactly those names, and filling them now makes you choose a real part.
- Pin directions. Every pin in a library part has a direction: input, output, passive, power and others. The ERC reads them. In most library parts, a chip's VCC and GND pins are power pins (Pwr), and each needs a supply on its net.
- Supply symbols. A supply symbol, such as GND or +5V, is a symbol with a single pin of the direction Sup. It tells the ERC that the net is supplied, and it gives the net its name. It is not a part, so nothing is added to the board. A battery connector's pins are passive (Pas), so a net fed only by the connector has no supply as far as the ERC can see. Put a supply symbol on every power net.
- No Connection marks on every pin you leave open on purpose: Design › Connect › Net, then No Connection, and click the pin.
- Run the ERC: Validate › ERC on the schematic. The results open in the ERC Errors panel. Fix every error. Read every warning: fix it, or approve it and write in your log why it is acceptable.
Read why each message appeared. What the ERC says about a regulator's input or output depends on the pin directions its library part was given, so look at them in the library before you change anything.
Worked example
The brief (ours). "A monitor for a 12 V lead-acid battery. It runs from the battery, which can be anywhere from 9 V to 15 V, and measures it within ±2%. It switches a 12 V relay off when the battery falls below 11.5 V, and back on above 11.8 V. It uses an ATmega328P at 5 V." This is an ARGYNIX practice brief, not an official test project.
Step 1. Requirements.
| # | Requirement | Test |
|---|---|---|
| R1 | Runs from 9 V to 15 V | Supply at 9 and 15 V: 5 V rail within limits |
| R2 | Measures the battery within ±2% | Compare with a meter at 9, 12, 15 V |
| R3 | Relay off below 11.5 V, on above 11.8 V | Sweep the supply down, then up |
| R4 | Survives the battery connected backwards | Reverse it for 10 s, then test R1 to R3 |
| R5 | Relay stays off while the MCU resets | Hold reset: relay off |
| R6 | Standard E-series values only | Check the BOM |
Step 2. Protection (R4). D1, a Schottky diode in series with the supply (for example SS14, 40 V, 1 A), drops about 0.3 V at this board's 50 mA; read the curve in its datasheet. The divider connects on the battery side of D1, so the diode's drop, which moves with current and heat, never enters the reading. Reversed, A0 sees −12 V through R1: the pin's clamp diode holds it near −0.5 V and carries about (12 − 0.5) V ÷ 22 kΩ ≈ 0.5 mA, under our bench target of 1 mA.
Step 3. The divider (R2). The ADC's full scale is AVCC, 5 V. At 15 V the pin should see at most about 4.7 V, leaving room for tolerances and a low AVCC. So the ratio k = R2 ÷ (R1 + R2) must be at most 4.7 ÷ 15 = 0.313.
- R2 = 10 kΩ, R1 = 22 kΩ: k = 10 ÷ 32 = 0.3125.
- At 15 V: 4.69 V. At 12 V: 3.75 V, which is 768 counts (3.75 × 1024 ÷ 5). At 9 V: 576 counts.
- Source resistance: 22 kΩ in parallel with 10 kΩ is 6.9 kΩ, under the 10 kΩ or less that the ATmega328P datasheet's ADC section asks for.
- C1 = 100 nF from A0 to GND holds the pin steady while the ADC samples. With 6.9 kΩ it is a low-pass filter at 1 ÷ (2π × 6875 Ω × 100 nF) = 231 Hz: fast enough for a battery, slow enough to calm noise.
- Drain: 15 V ÷ 32 kΩ = 0.47 mA. One count: 5 V ÷ 1024 = 4.9 mV at the pin, 15.6 mV at the battery.
Step 4. The error budget at 12 V.
| Source | First design | Final design |
|---|---|---|
| R1, R2 ratio | ±1% resistors: ±1.38% | ±0.1% resistors: ±0.14% |
| ADC reference (AVCC) | Regulator, say ±2% in its datasheet | Measured once with a meter, ±0.5%, put in the code |
| Rounding, ±0.5 count of 768 | ±0.07% | ±0.07% |
| Worst case | ±3.45%: fails R2 | ±0.71%: passes with margin |
Why ±1.38%? With R1 1% low and R2 1% high, k = 10.1 ÷ (21.78 + 10.1) = 0.3168, which is 1.38% above 0.3125. A middle option, ±1% resistors with the measured AVCC, totals ±1.95%: it passes on paper with no margin, and any drift breaks it. Thin-film ±0.1% resistors cost little more. Choose them.
Step 5. Check it by simulation. battery-divider.cir (in the downloads) sweeps the battery from 9 V to 15 V in LTspice, three times: with R1 and R2 at their nominal values, and at the two worst cases of ±1% parts. At 12 V the pin sits at 3.750 V for the nominal parts, and at 3.699 V and 3.802 V for the worst cases: −1.37% and +1.38%, as the table says. At 15 V the highest case is 4.752 V, still under the ADC's 5 V. Run it again with ±0.1% parts and the spread falls to about ±0.14%. The simulation and the calculation agree, so the error budget can be trusted.
Step 6. The relay driver (R3, R5). Coil: 12 V, for example 400 Ω, so 30 mA; measure yours. Q1, an NPN such as BC547 (100 mA, 45 V), switches the coil's low side.
- Drive Q1 hard into saturation, with a forced gain of 10: IB = 30 mA ÷ 10 = 3 mA.
- R3 = (5 V − 0.8 V) ÷ 3 mA = 1.4 kΩ. The E12 value below is 1k2: IB = 3.5 mA, an easy load for the pin.
- R4 = 10 kΩ from base to emitter holds Q1 off while the pin floats during reset (R5).
- D2, a 1N4148, across the coil with its cathode to the supply, catches the spike when the coil switches off.
- At the 11.8 V cut-in, the coil sees about 11.8 − 0.3 (D1) − 0.2 (Q1) = 11.3 V, 94% of its rating. Many small relays need about 75% to pull in; check yours.
Step 7. The regulator (R1). U1 feeds about 20 mA: the MCU, an LED and Q1's base; the coil runs from the battery. At 15 V: P = (14.7 V − 5 V) × 0.02 A = 0.19 W. If its datasheet gives 60 °C/W, that is 12 °C above the air: no heatsink. At 9 V it gets 8.7 V, enough for a 7805-type part needing about 2 V of headroom. Fit the capacitors its datasheet asks for (0.33 µF in and 0.1 µF out for many 78xx parts), and 100 nF at each VCC and AVCC pin and on AREF.
Step 8. Draw it. Lay the sheet out like the block diagram: J1 and D1 on the left, U1 at the top, the MCU in the middle, the divider below it, the relay driver on the right. Name the nets: VBAT (before D1), VBAT_P (after D1), BATT_SENSE and RELAY_DRV with net labels, and +5V with a +5V supply symbol at U1's output. Give every resistor its tolerance in the value (22k 0.1%) and fill MANUFACTURER and MPN.
The first ERC gave errors on the power pins of the ground net: no supply for the GND pins of U1 and U2. The ground had been drawn as wires from J1 and named with a label, and J1's pins are passive, so nothing on the net was a supply. A GND supply symbol on the net cleared them all. Our regulator part gives its OUT pin the direction Out, so the ERC also reported an output pin and a supply pin on one net: U1's OUT and the +5V symbol. That is how this circuit is meant to be, so we approved that one message and wrote the reason in the log. The ERC also warned about every MCU pin left unconnected: No Connection marks on the ones left open on purpose, and the next run showed no errors, no warnings and one approved message, with its reason.
Practice task
- Copy the brief. Before you read the worked example again, write your own requirements table and block diagram on
design-worksheet.md. - Work out the divider, the error budget, the relay driver and the regulator's heat, with every line of working shown.
- Open
battery-divider.cirin LTspice and run it. Compare the pin voltages it writes to its log with your divider and error budget numbers. Then change its tolerance step to ±0.1%, as the notes in the file show, and run it again. - Draw the schematic in Fusion with the attributes, net names, supply symbols and No Connection marks. Run the ERC until it shows no errors, and log each message you approved with its reason.
- Check your numbers in ARGYNIX Lab (below), then, if you can, on a breadboard with an Uno and a bench supply. Measure the battery voltage with your meter at three supply voltages and compare.
- Change the brief to a 24 V battery (18 V to 30 V) and do steps 1 to 4 again. Which values change, and which requirement gets harder?
Target: 60 minutes from the brief to a clean ERC.
Common mistakes
- Requirements without numbers. "Accurate" cannot be tested.
- Forgetting the implied requirements: a reversed battery, a floating pin during reset.
- A divider that reaches the ADC's full scale. Leave room for tolerances and a low reference.
- No error budget. The board works, and reads 3% wrong.
- Measuring after the protection diode. Its drop moves with current and heat.
- A base resistor sized for the transistor's typical gain. Use a forced gain of about 10, so it saturates on the worst part.
- No pull-down on the driver's base. The relay chatters while the MCU resets.
- ERC errors cleared by approving them without a reason, or by changing pin directions to quiet the check. Put a supply symbol where a net really is a supply, and read why each message appeared.
- Simulating only the nominal values. The worst case is where a design fails. Step the tolerances.
Self-check
- Rewrite "the monitor must be accurate" as a requirement you can test.
- The battery can reach 15 V and the ADC reads up to 5 V. Why not choose a divider ratio of exactly 1 ÷ 3?
- Why does the divider connect on the battery side of the protection diode?
- R1 and R2 are ±1%. What is the worst error of the ratio 10 kΩ ÷ (22 kΩ + 10 kΩ), and why is it not ±2%?
- Your first error budget totals ±3.45% against a ±2% requirement. Give two changes that fix it.
- A relay coil needs 45 mA, and the pin gives 5 V. What base resistor do you choose for a forced gain of 10?
- The ERC in Fusion reports no supply for the GND pins of your chips. The battery connector feeds the ground net. What do you add, and why?
- Your LTspice sweep shows 3.750 V at the pin at 12 V. Why is that one run not enough to trust the ±2% requirement?
Show answers
- For example: "Measures the battery from 9 V to 15 V within ±2%, checked against a meter at 9 V, 12 V and 15 V." It has a range, a limit and a test.
- Because at 15 V the pin would sit exactly at full scale, 5 V. A high resistor tolerance or an AVCC a little under 5 V would then clip the reading at 1023 counts. A ratio near 0.31 leaves about 0.3 V of room.
- Because the diode's drop changes with the current and the temperature. Measured after it, the reading would be about 0.3 V low, and by a varying amount. On the battery side, the divider sees the real battery voltage.
- About ±1.38%. The error of the ratio is the two resistors' errors (±2% in the worst case) times R1 ÷ (R1 + R2), which is 22 ÷ 32 = 0.69. When both resistors drift the same way, much of the error cancels.
- Use ±0.1% resistors (the ratio error falls to ±0.14%), and measure AVCC once with a meter and put that value in the code instead of 5.00 V. Together they bring the total to about ±0.7%.
- IB = 45 mA ÷ 10 = 4.5 mA. R = (5 V − 0.8 V) ÷ 4.5 mA = 933 Ω, so choose 820 Ω from E12 (IB = 5.1 mA). Rounding down drives the transistor harder, which is the safe side.
- A GND supply symbol on the ground net. The chips' GND pins are power pins, and the connector's pins are passive, so the check cannot see that the battery supplies the net. The supply symbol's single Sup pin tells it the net is supplied, and names the net GND. It is not a part, so it adds nothing to the board.
- Because it uses the nominal values only. Real resistors sit anywhere inside their tolerance. Step them to the worst case, R1 low with R2 high and then the other way, and check that the result still meets the requirement with the other errors added.
Downloads
- design-worksheet.md: our worksheet for a brief: the requirements table, the block diagram box, calculation lines for each block, an error budget table, the schematic checks for Fusion and the ERC log, with the battery monitor filled in as an example.
- battery-divider.cir: the divider and C1 as an LTspice netlist. It sweeps the battery from 9 V to 15 V at nominal and worst-case ±1% resistor values, and writes the pin voltage at 12 V and 15 V to its log.
- battery_monitor_check.ino: the divider check for ARGYNIX Lab and a real Uno: counts, pin volts, battery volts and the relay output with hysteresis, on Serial.
Practise in ARGYNIX Lab
Open the battery monitor check in ARGYNIX Lab (opens in a new tab): an Uno with the divider from the worked example (R1 22 kΩ, R2 10 kΩ and C1 100 nF on A0), a 12 V supply standing in for the battery, and a green LED on D7 standing in for the relay driver. It builds and runs as it opens. The Lab solves the divider and the capacitor as a circuit, and the Uno's ADC reads the result.
Serial prints the counts, the pin volts, the battery volts and the relay state twice a second. At 12 V it shows 767 counts, 3.745 V, 11.98 V and ON: one count below the 768 you calculated, 16 mV at the battery. A real ADC can also land one count either side of a step's edge.
Predict each result before you try it:
- Switch the bench from 3D to Grid, click the power supply and set Volts to 9. You predicted 576 counts: the Lab shows 575 counts and 8.98 V, and the relay LED goes off. Go back to 12 V and it comes on again, above the 11.8 V cut-in.
- Change
VREFin the code from 5.00 to 4.90 and run it again at 12 V, as if your meter's AVCC reading went in 2% wrong. The battery now reads 11.74 V: a reference error moves every reading by the same share. - Click R1 and choose 10 kΩ from its menu. The pin would now see 6 V, more than the ADC's 5 V: the reading sticks at 1023 counts and 15.98 V. Choose 100 kΩ: 223 counts, but Serial says 3.48 V, because the code still assumes 22 kΩ. The constants in the code must match the parts.
The resistor menu lists only common values, so R1 may not show 22 kΩ when you first click it. The Lab does not model the pin's clamp diode or the ADC's limit on source resistance: check those on paper, as in steps 2 and 3.
Run it in your browser, then do it again on your own board.
Open in ARGYNIX Lab (opens in a new tab)