Mechatronics · Module 10 of 10
System Integration and Design
This is where the pieces become a machine. Integration closes the sense, decide, actuate loop end to end, and its performance, the steady-state error and the resolution, follows from every block working together.
Readiness check
This closing module brings the course together. Tick only what you can do closed-notes.
- Evaluate 1/(1 + K) for a given K.
- Divide one resolution by a gear ratio.
- Recall the sense, decide, actuate loop.
- Recall that feedback reduces steady-state error.
- Recall that a system is only as good as its weakest block.
The core idea
Integration joins the sensing, decision, and actuation blocks into one closed loop, and the system's performance emerges from all of them. A proportional loop leaves a steady-state error of 1/(1 + K) for a step, and the end-to-end resolution is the sensor's resolution scaled by the mechanical reduction.
ess = 1/(1 + K)output resolution = sensor resolution / reductionsystem ≈ its weakest blockEvery module so far built one block; integration is the discipline of making them work as one machine. It closes the loop physically and in software: the sensor feeds the conditioning, which feeds the converter and the microcontroller, which drives the actuator through the mechanism, whose motion the sensor reads again. Two things decide whether the result is good. The first is closed-loop performance. With proportional control of gain K and unity feedback, a step command leaves a steady-state error of 1/(1 + K): higher gain shrinks the error but risks instability, the trade the control course develops. The second is the resolution budget. The finest step the system can command or measure is set by the whole chain, so an encoder resolving 0.18 degrees on a motor shaft, seen through a 10:1 reduction, resolves 0.018 degrees at the output, ten times finer. Integration also means matching interfaces, voltage levels, grounds, and timing, and it never ends at first assembly: you test the integrated system, find faults, add safety interlocks, and iterate. A mechatronic system is only ever as good as its weakest block, so integration is where the design is truly proven.
The skills, taught in order
Five skills turn a set of working blocks into a proven machine.
10.1 The integration mindset
Integration is mostly about interfaces: matching voltage levels and logic, sharing a clean ground, and meeting timing so data is fresh. Most integration faults live at the joints between blocks, not inside them.
10.2 Closing the loop
A closed loop compares output to command and drives the error toward zero. Under proportional control the residual steady-state error to a step is 1/(1 + K): raising the loop gain K reduces it, but too much gain brings oscillation, the stability trade of the control course.
| Loop gain K | ess = 1/(1 + K) | As percent |
|---|---|---|
| 9 | 1/10 | 10% |
| 49 | 1/50 | 2% |
| 99 | 1/100 | 1% |
Higher loop gain shrinks the steady-state error, at the cost of stability margin.
10.3 The resolution budget
The finest step the whole system resolves comes from the sensor and the mechanics together. A gear reduction that slows the output improves its angular resolution by the same ratio, so output resolution is the sensor resolution divided by the reduction.
10.4 Testing, faults, and safety
Test the integrated system, not just the parts: inject known inputs and check the closed-loop response. Add interlocks and an emergency stop, and use systematic fault-finding to isolate a problem to a block or an interface.
10.5 Iteration and documentation
First assembly is rarely the last. Measure, adjust gains and interfaces, and document the wiring, signals, and control constants so the machine can be maintained and improved. The design cycle closes here and starts again.
Engineering connection: a pick-and-place robot combines every module of this course, encoders, conditioning, converters, a microcontroller, and motors, and only integration testing proves the loop meets its accuracy.
Worked example 1: steady-state error
A position system uses proportional control with a loop gain of K = 49 and unity feedback. Find the steady-state error to a unit step command.
- ProblemFind the steady-state error for the loop in Figure 1.
- Given / findProportional gain K = 49, unit step, unity feedback. Find ess.
- AssumptionsStable type-0 loop, unity feedback, step input.
- ModelFor proportional control of a step, ess = 1/(1 + K).
- Equationsess = 1/(1 + 49)= 1/50
- Solveess = 1/50 = 0.02 = 2%.
- CheckRaising K to 99 would halve the error to 1 percent, consistent with 1/(1 + K).
- ConclusionThe loop tracks to within 2 percent; closing the remaining gap needs more gain or integral action, from the control course.
Worked example 2: end-to-end resolution
A motor carries an encoder resolving 0.18 degrees per count. The motor drives the output through a 10:1 reduction. Find the resolution at the output.
- ProblemFind the output resolution for the drive in Figure 2.
- Given / findEncoder 0.18 degrees per count, reduction 10:1. Find the output resolution.
- AssumptionsRigid, backlash-free reduction, encoder on the motor shaft.
- Modeloutput resolution = sensor resolution / reduction.
- Equationsrout = 0.18° / 10
- Solverout = 0.018° per count.
- CheckOne output revolution needs ten motor turns, so ten times the counts, giving ten times finer resolution, matching.
- ConclusionPlacing the encoder before the reduction buys resolution, a common integration choice, though backlash then limits real accuracy.
Misconceptions and diagnostics
| Mistake | Symptom | Diagnostic question | Correction |
|---|---|---|---|
| Wrong steady-state form | Predicted error far off | "Is it 1/(1 + K)?" | Proportional step error is 1/(1 + K). |
| Adding resolutions | Output resolution nonsensical | "Did I scale by the reduction?" | Divide the sensor resolution by the reduction. |
| Testing blocks only | Works apart, fails together | "Did I test the closed loop?" | Test the integrated system end to end. |
| Ignoring interfaces and ground | Noise or logic errors at joints | "Do levels and grounds match?" | Match voltages, logic, and a common ground. |
Practice ladder
A proportional loop has K = 9. Find the steady-state error to a unit step.
Show answer
ess = 1/(1 + 9) = 1/10 = 10 percent.
What loop gain gives a 1 percent steady-state error?
Show answer
1/(1 + K) = 0.01, so 1 + K = 100, giving K = 99.
An encoder resolves 0.5 degrees per count and drives an output through a 5:1 reduction. Find the output resolution.
Show answer
Output resolution = 0.5/5 = 0.1 degrees per count.
Integrate a closed-loop temperature controller. List the sensor, conditioning, controller, and actuator, and describe one test that proves the loop works.
What good work looks like
Thermistor sensor, bridge and amplifier conditioning, microcontroller with a proportional or PID law, heater with PWM drive; a step test that commands a new setpoint and checks the measured temperature settles near it with an acceptable steady-state error.
Working with AI, and proving it yourself
Use AI as an examiner, not a solver
Portfolio task
Take a full sense, decide, actuate system and analyse it end to end: predict its steady-state error and its resolution, then plan an integration test.
Retrieval and spaced review
Closed notes. Answer out loud, then reveal.
1. Write the proportional steady-state error.
ess = 1/(1 + K) for a unit step.
2. How does a reduction change resolution?
It improves output resolution by the reduction ratio.
3. Where do most integration faults occur?
At the interfaces between blocks, not inside them.
4. Why test the integrated system?
Blocks can work apart yet fail together through interfaces and timing.
5. What limits overall system quality?
The weakest block in the chain.
Textbook mapping
This module follows William Bolton, Mechatronics, 6th edition. Use these references to read further.
| Topic in this module | Where to read more |
|---|---|
| Integrated mechatronic systems | Bolton, Chapter 22, Mechatronics systems |
| Closed-loop performance | Bolton, Chapter 1, Control systems |
| Fault finding and testing | Bolton, Chapter 21, Fault finding |
Chapter numbers refer to Bolton's Mechatronics, 6th edition. Any edition with the same chapter titles is equivalent for study.