← Teacher guide

Design a PCB

A stretch project: design a PCB for a working project in KiCad or EasyEDA (schematic, footprints, layout, design rule check, Gerber files), optionally ordered and assembled.

Capstone projects · Stretch: make it permanent · about 250 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

About 4 to 6 lessons (around 250 minutes). Inquire and Develop 1 · Create 2–4 · Test and evaluate 1

Before class

Teacher-run: tool skills come from KiCad's or EasyEDA's own tutorials (link them); this page structures the project. Ordering boards needs a budget and a manufacturer's student-friendly service; plan a few weeks of lead time. Through-hole parts are easiest to solder for a first board.

If you assess with MYP Design, the steps line up with the criteria:

Running the lesson

  1. Develop: schematic checked against the breadboard before layout starts.
  2. Create: run the DRC early and often.

The hard part (on purpose)

Footprints that don't match the real part (pin spacing, hole size) are the classic first-board failure. Check each one against the part in hand.

When students get stuck

What you will seeA question to askThe fix
The DRC shows unconnected nets.Which pins does the schematic join that the layout doesn't?Route the missing tracks, or fix the schematic.

Answers to the checks

  1. Inquire: the brief: Sort each line of the brief: a criterion (what it must do, which you can test) or a constraint (a limit you must work within)?
    The schematic matches the working circuit → Criterion; No design rule check errors → Criterion; Gerber files exported → Criterion; At most 5 × 5 cm, or Uno-shield size → Constraint; Free tools only: KiCad or EasyEDA → Constraint
    Criteria are what you will test at the end; constraints decide what you are allowed to build with.
  2. Two ways to do it: Two layouts for a 5 × 5 cm board. A: motor connectors on one edge, sensor connectors on the opposite edge, the driver chip in the middle. B: every connector along the front edge. What does B make harder?
    Routing: the traces crowd at one edge
    Bringing every trace to one edge crowds them together, and the 1 mm motor traces are the hardest to fit, so the design rule check gets harder to pass.
  3. Your own two ideas: Now two ideas of your own. For each one, say which criterion in the brief it's strongest on and which it's weakest on. Then say which you'll build, and why.
    One way to write it: Idea 1: motor connectors on the left, sensors on the right, the driver chip in the middle. Strongest on routing: the wide motor traces run short and straight. Weakest on the robot's wiring: cables come off both sides. Idea 2: every connector along the front edge. Strongest on tidy cables. Weakest on the design rule check: the traces crowd together and the motor ones may not fit at 1 mm. I'll lay out idea 1, because the design rule check is in the brief and messy cables aren't.
  4. The steps: Put the PCB design steps in order.
    see the program below
    Schematic first, then footprints, then layout and routing, then the checks, then the files.
    Draw the schematic from the working circuit.
    Give every part a footprint that matches the real part.
    Place the parts on the board outline.
    Route the tracks.
    Run the design rule check and fix every error.
    Export the Gerber files.
    
  5. Design rule check: What does the design rule check (DRC) catch?
    Tracks too close or thin, or not matching the schematic
    It finds tracks or pads too close together, too thin, or not connected as the schematic says. It checks the layout can be made and matches the schematic, not that the design is a good one.
  6. Another team's results: Another team's design rule check shows 0 errors and 2 warnings (silkscreen over a pad), and their board is 5.2 × 4.8 cm. Which criterion fails?
    The size: 5.2 cm is over the 5 cm limit
    No errors meets the design rule criterion, but 5.2 cm is over 5 cm, so the size fails. The warnings are still worth tidying before ordering.
  7. Fix and re-test: Pick one test that failed. Write what happened, what caused it, what you changed, and what the test showed when you ran it again.
    One way to write it: Test: the design rule check. What happened: 3 errors, all clearance between the motor trace and a header pad. Cause: I'd routed the 1 mm motor trace between two header pins, where only a thin trace fits. Change: took it round the end of the header. Re-test: 0 errors, and the board grew from 4.6 to 4.9 cm, still inside 5 cm.
  8. Which is evidence?: Which is the strongest evidence that the design meets a criterion?
    A planned test with its recorded result
    A planned test from your table sets the input the criterion is about and records what happened; that is evidence. Everything else is a feeling.

Stretch and support

Stretch: A two-layer board with a ground plane.

Support: A finished example board for an LED and resistor to copy the steps from.

Exit ticket

Name two things a design rule check catches, and one it can't.

It catches tracks too close or too thin and unconnected nets; it can't tell whether the circuit meets the brief.

What each step is for

Where it leads

Back to the Engineering capstones, or CAD and fabrication for an enclosure.

Sources