What you will learn
  • Explain subsystem-first robot integration in plain language.
  • Trace information from input to output.
  • Test one subsystem independently.
  • Recognize a common failure and respond safely.
  • Modify the example without changing several variables at once.

The central idea: subsystem-first robot integration

A complete robot project succeeds when requirements are measurable, subsystems are tested independently, integration happens in stages, and every hazardous action has a stop condition.

Treat the system as a chain of observable inputs, explicit processing, a decision, and an output. That makes the design easier to explain and gives you a place to test when something fails. A working result is not enough: record what input produced it and what evidence shows the result is correct.

Follow the information through the system

Read the diagram from left to right. Each arrow is a boundary where data, electrical signals, or commands move between parts. Test those boundaries separately before combining the whole system.

A first rover must travel one meter, stop 30 cm before a box, and halt within a measured timeout after losing commands.

  • Write measurable success criteria.
  • Build power and stopping behavior first.
  • Record versions, wiring, and failures.
requirements → parts → subsystem tests → integration → acceptance test → modification

Parts and responsibilities

Use beginner-safe, low-voltage parts and confirm the exact pinout and voltage for your board revision. Disconnect power before changing wiring. Motors need a suitable driver and separate motor power; never draw motor current from a GPIO pin.

PartPurpose
Microcontroller boardRuns low-level control and watchdog
Motor driver and two geared motorsSwitches suitable motor power and moves the chassis
Distance sensorMeasures front clearance
Separate logic and motor powerReduces resets and protects GPIO
Switch, chassis, wheels, wiresProvides a controllable physical platform

Test before you trust the result

Start with a normal case, then test a boundary case and a failure case. For software, try empty, unexpected, and extreme inputs. For hardware, begin with wheels raised or actuators disconnected, keep a physical power switch within reach, and verify safe stopping behavior.

Write down the expected result before each test. If the observation differs, stop and find the first boundary where the expected signal disappeared. This method is slower than changing many things at once, but it produces evidence instead of guesses.

  • Test one input with a known value.
  • Observe the intermediate value before the final action.
  • Confirm a safe response when input is missing or invalid.
  • Repeat the same test to check consistency.

Important terms

Requirement
A testable statement of needed behavior.
Acceptance test
A test deciding whether a requirement is met.
Integration
Connecting tested subsystems.
Watchdog
A timer that moves a system to safety if expected activity stops.
Change log
A record of modifications and their results.

Mini project: prototype subsystem-first robot integration

  1. Write three requirements.
  2. Draw power and signal diagrams.
  3. Test sensing and motors separately.
  4. Integrate at low speed.
  5. Run and record acceptance tests.

Common mistakes and debugging

  • Buying parts before defining behavior.
  • Skipping a physical power switch.
  • Integrating untested modules.
  • Calling one successful run complete.

Independent challenge

Add one new behavior while preserving every existing acceptance test.

Check your understanding: 10 questions

  1. What is the main purpose of subsystem-first robot integration?

  2. What does “Requirement” mean in this lesson?

  3. How is “Acceptance test” used?

  4. Why should you test one boundary or subsystem at a time?

  5. What should the system do when an input is missing or invalid?

  6. In your own words, what does “Requirement” mean?

  7. In your own words, what does “Acceptance test” mean?

  8. In your own words, what does “Integration” mean?

  9. In your own words, what does “Watchdog” mean?

  10. In your own words, what does “Change log” mean?

Quiz answers

Reveal all 10 answers after your attempt
  1. A complete robot project succeeds when requirements are measurable, subsystems are tested independently, integration happens in stages, and every hazardous action has a stop condition.
  2. A testable statement of needed behavior.
  3. A test deciding whether a requirement is met.
  4. It reveals where the expected value or behavior first changes, so debugging is based on evidence.
  5. It should reject the input, report the problem, or move to a documented safe state instead of guessing.
  6. A testable statement of needed behavior.
  7. A test deciding whether a requirement is met.
  8. Connecting tested subsystems.
  9. A timer that moves a system to safety if expected activity stops.
  10. A record of modifications and their results.

Summary

subsystem-first robot integration becomes manageable when you identify the input, processing, decision, output, and evidence of success. Build the smallest version, test it, then make one measured change.

Continue learning

Continue to the next lesson, which builds on this model with one additional capability.

Choose a connected learning path

Sources and further reading

Prepared 2026-10-02. Editorially completed for the course. Software examples are designed for current Python 3; verify board, operating-system, library, and hardware details against the linked primary documentation before a physical build.