Chapter 12
Modeling, Selection, and Mechatronic Integration
Bachelor Program in Mechatronics Engineering
Sensors and Actuators
•
Bachelor
Modeling, Selection, and Mechatronic Integration
Introduction
A sensor or actuator is not an isolated component. In a mechatronic system it forms part of an energy, information, and control chain: a physical variable is measured, processed, compared with a reference, and converted into mechanical, thermal, hydraulic, pneumatic, or electrical action. Successful design therefore requires more than choosing a device with a suitable catalogue range. The engineer must understand dynamic behavior, uncertainty, compatibility, observability, bandwidth, stability, maintainability, and lifecycle cost.
A useful model is an intentional simplification of a real device. A model is valuable when it predicts behavior sufficiently well for a stated purpose—such as controller design, fault diagnosis, component selection, or safety analysis. No single model is best for every purpose. A static calibration model may be adequate for a slow temperature loop, whereas a state-space and nonlinear model may be necessary for a robotic actuator.
Learning objectives
By the end of this chapter, the reader should be able to:
Formulate transfer-function, state-space, and nonlinear models of sensors and actuators.
Relate poles, zeros, bandwidth, noise, delay, and stability to mechatronic performance.
Assess observability and determine whether available measurements support control and diagnosis.
Select components using technical, economic, compatibility, availability, maintainability, and lifecycle criteria.
Integrate sensors and actuators while managing loading, saturation, uncertainty, calibration, and safety.
Validate a model experimentally and communicate engineering decisions professionally.
1. Modeling the measurement and actuation chain
A typical closed-loop system contains a reference, controller, power electronics, actuator, mechanical plant, sensor, signal conditioning, and data-conversion subsystem. Each block has dynamics and limitations. A motor, for example, has electrical dynamics, torque production, mechanical inertia, friction, and a position or speed sensor. The combined model must preserve the direction of causality and the units of each signal.
Closed-loop mechatronic system showing reference, controller, actuator, plant, sensor, and feedback
Figure: Closed-loop mechatronic system showing reference, controller, actuator, plant, sensor, and feedback
Figure: Functional closed-loop representation of a mechatronic system.
1.1 Static models and calibration
A static sensor model relates an input x to an output y when transients are negligible. The linear approximation is
y = Ks x + b + n
where K_s is sensitivity (output units per input unit), b is offset, and n is measurement noise. This model assumes operation over a limited range and neglects hysteresis, drift, dynamics, and cross-sensitivity. A calibration curve may instead be represented by a polynomial,
y = a0 + a1x + a2x2 + … + amxm
provided the order is supported by calibration data and does not amplify noise excessively. The inverse relationship is used when estimating x from y. Calibration must specify reference standards, environmental conditions, uncertainty, and validity range.
For an actuator, a static model may be F = Kf u for a force actuator or τ = K_τ i for an ideal motor, where F is force, τ is torque, u is command voltage or normalized command, i is current, and K_f and K_τ are gains. Real actuators exhibit dead zones, saturation, backlash, friction, hysteresis, and rate limits.
1.2 Transfer-function models
For a linear time-invariant system with zero initial conditions, the transfer function is
G(s) = Y(s) ÷ U(s)
where U(s) and Y(s) are Laplace transforms of input and output and s is the complex frequency variable in rad/s. The zero-initial-condition assumption is important: a transfer function describes forced response, not independent initial energy.
A first-order sensor or actuator is commonly modeled as
G(s) = K ÷ (τs + 1)
where K is static gain and τ is time constant in seconds. For a step input, the output reaches approximately 63.2% of its final change after τ and approximately 95% after 3τ. The pole is at s = −1÷τ. A first-order low-pass system has a −3 dB cutoff frequency
ωc = 1 ÷ τ
in rad/s, under the stated ideal model.
A second-order mechanical or electromechanical subsystem is often written
G(s) = Kωn2 ÷ (s2 + 2ζωn s + ωn2)
where ω_n is undamped natural frequency in rad/s and ζ is damping ratio. The model predicts resonance when damping is low and is applicable near an operating point where nonlinearities can be linearized.
Pure transport delay is represented by
Gd(s) = e^(−sTd)
where T_d is delay in seconds. Delay contributes phase lag without changing ideal magnitude. In digital systems, sampling, computation, filtering, and communication may combine to create significant effective delay.
1.3 Electromechanical example: DC motor
For a separately excited armature-controlled DC motor, a simplified model is
va = La dia÷dt + Ra ia + Ke ω
J dω÷dt = Kt ia − bω − τL
where v_a is armature voltage (V), i_a is armature current (A), L_a is inductance (H), R_a is resistance (Ω), K_e is back-emf constant, ω is angular speed (rad/s), J is reflected inertia (kg·m²), K_t is torque constant (N·m/A), b is viscous-friction coefficient (N·m·s/rad), and τ_L is load torque (N·m). With consistent SI units and negligible Coulomb friction, the equations are linear. In SI motor units, K_e and K_t have numerically related values, although their units differ.
Taking θ as position, with ω = dθ÷dt, gives a state model. Let x = [θ, ω, ia]T and input u = va. Then
This representation exposes internal states and supports simulation, observer design, and multivariable analysis.
2. State-space modeling and observability
The general continuous-time linear state model is
dx÷dt = Ax + Bu
y = Cx + Du
Here x is the state vector, u the input vector, y the measured output vector, A the system matrix, B the input matrix, C the output matrix, and D the direct-feedthrough matrix. The state is a minimum set of variables that, together with future inputs, determines future behavior. Physical states may include position, velocity, current, temperature, pressure, or stored charge.
A model is observable if the initial state can theoretically be reconstructed from known inputs and measured outputs over a finite interval. For an n-state linear system, the observability matrix is
O = [C; CA; CA2; …; CA^(n−1)]
The pair (A,C) is observable if O has rank n. This is a structural and mathematical property, not a guarantee of accurate estimation; poor conditioning, noise, saturation, and model error can still make practical observation difficult.
For example, a translational mass with position measurement has states x = [position, velocity]T. With
A = [[0, 1], [0, −b÷m]], C = [1, 0]
its observability matrix is O = [[1,0],[0,1]], which has rank 2. Thus velocity can be inferred from the history of position, although numerical differentiation may amplify noise. A velocity-only measurement can also be observable under suitable dynamics, but a measurement that is completely insensitive to an independent state is not.
3. Nonlinear models and linearization
Many practical effects are nonlinear. A general nonlinear model is
dx÷dt = f(x,u), y = h(x,u)
Examples include Coulomb friction, magnetic saturation, valve flow, hysteresis, backlash, dead zones, geometric trigonometric terms, and temperature-dependent resistance. A useful friction approximation is
τf = bω + τc sign(ω)
where τ_f is friction torque, bω is viscous friction, τ_c is Coulomb-friction magnitude, and sign(ω) changes according to direction. Near zero speed this equation is discontinuous and may require a regularized model or a specialized friction law.
For small deviations about an equilibrium (x₀,u₀), define δx = x − x₀ and δu = u − u₀. First-order Taylor expansion gives
δẋ ≈ Aδx + Bδu, δy ≈ Cδx + Dδu
where A = ∂f÷∂x, B = ∂f÷∂u, C = ∂h÷∂x, and D = ∂h÷∂u, all evaluated at the operating point. Linearization is local; a controller validated at one load, speed, or temperature may perform poorly elsewhere.
4. Bandwidth, noise, and uncertainty
Bandwidth describes how rapidly a device or closed loop can respond with acceptable gain and phase behavior. It is not simply the maximum sampling rate or catalogue update rate. A sensor’s bandwidth should exceed the highest relevant signal frequency, but excessive bandwidth may pass unwanted noise.
For a first-order low-pass sensor, the magnitude is
|G(jω)| = K ÷ √(1 + (ωτ)2)
where j is the imaginary unit and ω is angular frequency. At ω = 1÷τ, the magnitude is K/√2, approximately −3.01 dB relative to K.
Noise must be described by a measurement model, not merely by a single accuracy value:
ym = y + nb + nq + ns
where n_b may represent bias, n_q quantization error, and n_s stochastic noise. For ideal uniform quantization with step size q, quantization error is commonly modeled as zero-mean with variance
σq2 = q2 ÷ 12
when the input sufficiently exercises the quantizer and the error is not correlated with the signal. This assumption fails for slowly varying or periodic signals that remain locked to quantization levels.
For an N-bit converter with input span V_span, the ideal step size is
q = Vspan ÷ 2N
The effective number of bits may be lower because of electrical noise, nonlinearity, reference instability, and missing codes. Shielding, grounding, differential measurement, filtering, proper cable routing, and sensor excitation design are often more important than nominal resolution.
Uncertainty should distinguish repeatability, bias, drift, calibration uncertainty, environmental sensitivity, and dynamic error. Combining independent standard uncertainties by root-sum-square is justified only when the uncertainty components are appropriately characterized and sufficiently independent:
uc = √(u12 + u22 + … + uk2)
A coverage interval may require a stated coverage factor and distributional assumptions; it should not be confused with a manufacturer’s accuracy percentage.
5. Stability and control interaction
A component can be stable alone yet cause an unstable closed loop. For a negative-feedback loop with forward transfer function G(s) and feedback H(s), the characteristic equation is
1 + G(s)H(s) = 0
Stability depends on the locations of the closed-loop poles. Sensor delay, actuator dynamics, flexible modes, saturation, backlash, and unmodeled resonances can reduce phase margin. A high-gain controller cannot compensate safely for an actuator that saturates or a sensor that has excessive delay.
The open-loop transfer function is often written L(s) = G(s)H(s). Gain margin and phase margin are frequency-domain indicators of robustness, but their interpretation assumes a suitable linear model. Saturation may produce integrator windup, in which the integral state continues to accumulate while the actuator cannot deliver the requested command. Anti-windup logic, command limiting, rate limiting, and fault handling should be designed explicitly.
Control interaction also includes mechanical loading. A displacement sensor may alter a compliant mechanism through contact force; a pressure sensor may introduce dead volume; a motor coupled to a gearbox changes reflected inertia and friction. Electrical interaction includes input impedance, excitation current, common-mode range, grounding, electromagnetic compatibility, and power-supply transients.
6. Component selection as a systems decision
Selection begins with requirements rather than brand preference. A requirement should identify the variable, range, units, allowable error, bandwidth, environment, interface, lifetime, and verification method. “Accurate position sensor” is inadequate; “absolute position, 0–120°, ≤0.1° total error over 0–50 °C, ≥200 Hz bandwidth, 5 V supply, and diagnostic output” is testable.
A practical selection sequence is:
Define function, operating envelope, hazards, and interfaces.
Translate needs into measurable specifications.
Eliminate candidates that fail mandatory constraints.
Compare feasible candidates with a weighted decision matrix.
Prototype and test critical uncertainties.
Review procurement, obsolescence, maintenance, and lifecycle risk.
Document assumptions, evidence, and approval responsibilities.
A weighted score can support—but not replace—engineering judgment:
Sj = ∑(wi rij)
where S_j is the score of candidate j, w_i is the normalized importance weight for criterion i, and r_{ij} is the normalized rating of candidate j on criterion i. Weights should sum to 1. Mandatory safety or compatibility conditions should be treated as gates, not compensated by high scores elsewhere. Ratings must use a defined scale and evidence source.
Lead time, second source, lifecycle status, counterfeit risk, documentation?
Maintainability
Replaceability, accessibility, adjustment, test points, spare strategy?
Lifecycle cost is broader than acquisition cost. A simple present-value estimate is
CL = C0 + ∑[Ck ÷ (1+r)k]
where C_L is lifecycle cost, C₀ is initial cost, C_k is cost in period k, r is the discount rate per period, and the summation covers maintenance, energy, calibration, downtime, training, and disposal as appropriate. In a student design or early prototype, exact financial forecasts may be unavailable; the important practice is to expose recurring costs and risk rather than hiding them.
7. Mechatronic integration and validation
Integration should be performed at several levels:
Mechanical: datum references, stiffness, alignment, backlash, thermal expansion, cable strain relief, and service access.
Electrical: supply tolerance, current capacity, grounding, isolation, fusing, polarity protection, EMC, and safe energy removal.
Signal: scaling, filtering, sampling, synchronization, timestamping, sensor fusion, and diagnostics.
Software: units, range checking, plausibility checks, watchdogs, calibration storage, version control, and cybersecurity.
Verification: traceable tests for static accuracy, dynamic response, environmental robustness, faults, and end-of-life behavior.
A model validation experiment should excite the system over the frequencies and amplitudes relevant to operation. Step tests reveal rise time, overshoot, settling, and delay; swept-sine or pseudorandom excitation can reveal frequency response; repeated trials estimate repeatability. The test must avoid unsafe operating regions and must record sampling rate, filtering, loading, temperature, initial conditions, and instrumentation uncertainty.
Model validation is not achieved merely because simulated and measured curves look similar. Residuals should be examined, parameters estimated with appropriate data, and the model tested using data not used for fitting. If the model is intended for safety or certification, the evidence and independence requirements are stricter.
Consider an illustrative electrically driven vertical axis that moves a 4 kg gripper assembly over a 0.4 m stroke. The design requires ±0.5 mm positioning, a maximum speed of 0.5 m/s, operation from 10 to 40 °C, and safe holding during power interruption.
Problem
The initial concept uses a low-cost incremental encoder and a belt-driven DC motor. The team must determine whether the architecture supports accurate positioning and safe operation, and must select sensing and actuation components.
Analysis
The mechanical position x is measured by an encoder attached to the motor shaft. If the belt reduction ratio is 5:1 and the pulley converts motor rotation to 0.08 m of linear travel per motor revolution, one motor revolution produces 0.016 m of axis travel. An encoder providing 2,000 counts per motor revolution therefore gives an ideal linear count interval of
qx = 0.016 m ÷ 2000 = 8 × 10^(−6) m = 0.008 mm
This resolution is much finer than the required ±0.5 mm, but resolution does not guarantee accuracy. Belt elasticity, backlash, pulley eccentricity, missed counts, thermal expansion, and structural deflection may dominate.
The motor model includes armature current, speed, and position states. The controller uses position feedback and a current limit. At high acceleration, the required motor torque includes inertial, gravitational, frictional, and transmission terms. The actuator must be selected using continuous torque and peak torque, not peak torque alone. A normally engaged brake is considered because an incremental encoder cannot establish absolute position after power loss without a homing procedure.
Approach and solution
The team compares three architectures:
Architecture
Strength
Risk or limitation
Incremental encoder plus homing switch
Low cost, high resolution
Loses absolute position after power loss
Absolute encoder
Immediate position knowledge
Higher cost; protocol and EMC requirements
Linear scale plus motor encoder
Measures load position directly
Cost, installation, contamination, alignment
The selected baseline uses an absolute encoder for the motor, a secondary end-of-travel limit system, a normally engaged brake, and software plausibility checks. The encoder is not treated as the sole safety device. A current sensor supports torque estimation and detects abnormal load, while limit switches provide an independent protective layer.
The model is experimentally identified by measuring step response at several loads and temperatures. A first-order approximation is used for early controller tuning, followed by a model including belt compliance and delay. The controller includes command saturation, anti-windup, velocity limiting, and a controlled stop on invalid sensor data. The mechanical design provides access for brake replacement and encoder alignment.
Outcome
The architecture meets the nominal positioning requirement in bench tests, but testing reveals that belt compliance causes a load-dependent position error during reversal. A backlash compensation table improves performance but is not accepted as the only safeguard. The final design adds a stiffer transmission and validates accuracy under temperature, payload, and repeated reversal conditions. The lifecycle review shows that the absolute encoder costs more initially but reduces homing time and recovery risk.
Learning points
Resolution is only one part of measurement quality.
The sensor must measure the variable relevant to the control objective; motor position may not equal load position.
Safety requires independent protective functions and defined fault responses.
Dynamic and environmental tests can change the preferred component.
A weighted selection matrix is useful only when mandatory constraints are enforced separately.
9. Challenges, standards, ethics, and contemporary practice
Common technical challenges include incomplete datasheets, optimistic accuracy claims, parameter variation, undocumented filtering, connector failures, obsolescence, and dependence on proprietary software. Engineers should request uncertainty definitions, test conditions, derating curves, failure data, firmware commitments, and change-notification policies.
Regulatory obligations depend on the application and jurisdiction. Relevant concerns may include functional safety, machinery safety, electromagnetic compatibility, electrical safety, environmental restrictions, calibration traceability, and cybersecurity. The applicable standards must be identified by the responsible organization; a component’s compliance marking does not automatically certify the complete machine.
Sensor data can affect worker safety, quality decisions, and privacy. Systems should collect only necessary data, protect configuration and logs, control access, and preserve traceability of calibration and software versions. AI-based estimation or predictive maintenance can be valuable when trained and validated on representative data, but it should not conceal uncertainty or replace independent safety functions. An AI estimator must be monitored for distribution shift, sensor failure, bias, and inexplicable outputs.
Best practice is to maintain a requirements traceability matrix linking each requirement to a model, selected component, test, acceptance criterion, and responsible person. Use dimensional analysis, independent calculations, fault injection, design reviews, and configuration control. Select components that can be sourced, repaired, calibrated, and replaced throughout the expected service life.
Chapter Summary
Modeling converts physical behavior into a form suitable for prediction, design, and verification. Static models describe calibration; transfer functions describe linear input-output dynamics; state-space models expose internal states and support observability and estimation; nonlinear models represent friction, saturation, hysteresis, and operating-point effects. Poles, bandwidth, delay, noise, and saturation determine how sensors and actuators interact with control systems.
Observability asks whether internal states can be reconstructed from available measurements, while practical estimation also depends on noise and model conditioning. Component selection must combine performance and compatibility with environment, reliability, supply, maintainability, cost, and lifecycle risk. Integration requires coordinated mechanical, electrical, signal, control, software, safety, and verification work. The robotic-axis case demonstrates why resolution, accuracy, dynamic behavior, absolute position, and independent protective functions must be considered together.
Key Terms
Model: A purposeful representation of a real system.
Sensitivity: Change in output per unit change in input.
Transfer function: Zero-initial-condition ratio of Laplace-transformed output to input.
Time constant: Parameter describing the speed of a first-order response.
Pole: A value of the complex frequency variable at which a transfer function becomes unbounded.
State: Variable needed, with input history, to determine future system behavior.
State-space model: Differential and algebraic equations using state, input, and output vectors.
Observability: Ability to reconstruct internal state from inputs and measured outputs.
Linearization: Local approximation of a nonlinear model by first-order derivatives.
Bandwidth: Frequency range over which a specified response criterion is satisfied.
Noise: Unwanted random or deterministic variation in a measured signal.
Quantization: Mapping of a continuous-valued signal to discrete numerical levels.
Saturation: Limitation that prevents an actuator or signal from exceeding a bound.
Transport delay: Time interval between an input change and its effect at the output.
Gain margin: Frequency-domain measure of allowable gain increase before instability.
Lifecycle cost: Total cost of acquisition, operation, maintenance, downtime, and disposal.
Cross-sensitivity: Response to variables other than the intended measurand.
Traceability: Documented linkage between requirements, implementation, and verification evidence.
Review Questions
Short Answer Questions
What assumptions are implicit in a transfer-function model?
Define observability for a linear state-space system.
Why does sensor resolution not guarantee measurement accuracy?
State two effects of actuator saturation on closed-loop control.
What information should a testable sensor requirement contain?
Long Answer Questions
Explain how a DC motor can be modeled using electrical, mechanical, and position equations. Identify the states and parameters.
Compare static, transfer-function, state-space, and nonlinear models, including an appropriate use for each.
Discuss how bandwidth, delay, noise, and filtering influence controller design.
Develop a component-selection process that includes technical and lifecycle criteria.
Explain how mechanical, electrical, software, and safety integration should be coordinated in a mechatronic product.
Analytical / Application Questions
A first-order sensor has gain 2 V/unit and time constant 0.02 s. Determine its ideal cutoff angular frequency and explain whether it is suitable for a signal whose important content extends to 80 rad/s.
Design an observability test for a two-state actuator model when only position is measured. State what mathematical property must be checked and identify practical limitations.
A design team prefers a low-cost incremental encoder, although the machine must recover its absolute position after power loss. Evaluate the choice and propose an architecture that addresses the operational and safety requirements.
Multiple Choice Questions with Answers
Question 1
For a first-order model G(s) = K÷(τs+1), the pole is located at:
A. s = K
B. s = −1÷τ
C. s = τ
D. s = −K÷τ
Correct Answer: B. s = −1÷τ
Question 2
A linear n-state system is observable when its observability matrix has:
A. Zero determinant for every n
B. Rank less than one
C. Rank equal to n
D. Only positive eigenvalues
Correct Answer: C. Rank equal to n
Question 3
For an ideal N-bit converter with input span V_span, the quantization step is:
A. Vspan×2N
B. N÷Vspan
C. Vspan÷N
D. Vspan÷2N
Correct Answer: D. Vspan÷2N
Question 4
At the cutoff frequency of an ideal first-order low-pass system, the magnitude relative to its low-frequency gain is approximately:
A. −3 dB
B. +3 dB
C. −20 dB
D. 0 dB exactly
Correct Answer: A. −3 dB
Question 5
Which issue most directly results from a transport delay in a feedback loop?
A. Removal of all measurement noise
B. Additional phase lag
C. Automatic increase in actuator torque
D. Improved observability in every system
Correct Answer: B. Additional phase lag
Question 6
Which selection criterion should normally be treated as a mandatory gate rather than compensated by a high weighted score?
A. Colour preference
B. Catalogue page length
C. Safety compatibility
D. Supplier advertising style
Correct Answer: C. Safety compatibility
Question 7
In the DC motor equations, the term Keω represents:
A. Back electromotive force
B. Viscous friction torque
C. Load position
D. Quantization noise
Correct Answer: A. Back electromotive force
Question 8
Why is an absolute encoder advantageous in the illustrative vertical axis after power loss?
A. It eliminates all mechanical backlash
B. It provides position information without mandatory homing
C. It guarantees zero measurement uncertainty
D. It increases the motor’s continuous torque
Correct Answer: B. It provides position information without mandatory homing
Question 9
The weighted selection score Sj = ∑(wi rij) is meaningful only when:
A. All candidates fail mandatory constraints
B. Weights and ratings have defined scales
C. Every criterion has a different unit with no normalization
D. Lifecycle costs are ignored
Correct Answer: B. Weights and ratings have defined scales
Question 10
Which statement best describes model linearization?
A. It is a global exact replacement for every nonlinear system
B. It is a local first-order approximation about an operating point
C. It removes the need for experimental validation
D. It applies only to digital sensors
Correct Answer: B. It is a local first-order approximation about an operating point