13.2 Basic Mechatronics, Sensors & Closed-Loop Controls
Key Takeaways
Resistive strain gages quantify mechanical strain via ; configured in a full Wheatstone bridge with four active gages, output voltage quadruples (), maximizing sensitivity while inherently canceling thermal expansion and bending/axial crosstalk.
Incremental optical encoders generate quadrature pulse trains (channels A and B shifted by electrical) enabling edge-count resolution multiplication and direction sensing, whereas absolute encoders utilize Gray code tracks to prevent multi-bit transition errors during dynamic reading.
Brushed and brushless DC motors exhibit a linear inverse torque-speed relationship , producing peak mechanical output power at exactly half the stall torque and half the no-load speed ().
In PID control architectures, proportional gain reduces rise time and steady-state error, integral gain eliminates steady-state offset () by increasing system type at the expense of phase lag and overshoot, and derivative gain introduces phase lead to dampen transient oscillations.
Closed-loop system stability requires all roots of the characteristic equation to lie strictly within the open left-half complex plane (), verifiable algebraically via the Routh-Hurwitz stability criterion without factoring high-order polynomials.
13.2 Basic Mechatronics, Sensors & Closed-Loop Controls
Modern mechanical systems are rarely purely mechanical; they are integrated mechatronic systems that combine precision mechanisms, sensors, electronic signal conditioning, embedded digital processors, and electromechanical actuators. For machine designers, understanding how physical quantities (force, strain, displacement, temperature, and speed) are measured, converted into electrical signals, and regulated by feedback controllers is essential for designing automated machinery, robotic arms, precision positioning stages, and dynamic test equipment.
Mechatronic System Architecture & Signal Conditioning
A complete mechatronic control system functions as a closed information loop:
Mechatronic Control Loop
Reference + Error +------------+ Control +----------+
r(t) ------------>(+)----------> | Controller | --------> | Actuator |
(Setpoint) ^ - e(t) | (DSP/PLC) | u(t) | Driver |
| +------------+ +----------+
| |
| +-----------------------+ v
| | Mechanical Plant | <--------------+
| | (Mechanism / Load) | Driven |
| +-----------------------+ Motion |
| | |
| v |
| +-------------------+ |
+------------ | Sensor / Signal | <----------------+
Measurement | Conditioning | Process Feedback
y(t) +-------------------+
Signal Conditioning & Interfacing Fundamentals
-
Amplification & Common-Mode Rejection: Sensors frequently output low-level differential voltages (). Differential instrumentation amplifiers provide high input impedance and a high Common-Mode Rejection Ratio (CMRR) to amplify microvolt sensor signals while rejecting 60 Hz electrical mains noise and electromagnetic interference (EMI).
-
Anti-Aliasing Filtering & Sampling (Nyquist Criterion): Analog signals must be converted to digital numbers via an Analog-to-Digital Converter (ADC). To prevent aliasing (where high-frequency noise folds back into the measurement band as false low-frequency signals), an analog low-pass anti-aliasing filter must precede the ADC. By the Nyquist-Shannon sampling theorem, the sampling frequency must exceed at least twice the maximum frequency component present in the analog signal:
In practical machine control systems, is commonly set to to the closed-loop system bandwidth.
-
ADC Resolution & Quantization Error: An -bit ADC with an input voltage range divides the signal into discrete digital levels. The voltage resolution (quantization step size ) is:
The maximum quantization error is . For example, a 16-bit ADC operating over a range has .
Sensors & Transducers
1. Resistive Strain Gages & Wheatstone Bridges
A resistive foil strain gage consists of a thin metallic grid bonded to a flexible backing. When subjected to mechanical strain , its electrical resistance changes proportionally due to physical elongation and piezoresistive effects:
where:
- = nominal gage resistance (commonly ).
- = engineering strain (dimensionless, commonly expressed in microstrain ).
- = Gage Factor (dimensionless sensitivity factor; typically for metallic constantan foil gages, and for semiconductor silicon gages).
Wheatstone Bridge Circuit
(+) V_s (Excitation)
*
/ \
R_1 (Arm 1)/ \ R_2 (Arm 2)
/ \
*-------*
(-) V_out (+)
\ /
R_4 (Arm 4)\ / R_3 (Arm 3)
\ /
*
GND
Wheatstone Bridge Circuit Formulations
Because is tiny (typically ), a Wheatstone bridge converts small fractional resistance changes into measurable differential voltages . The general balanced bridge relation is . For small variations, the bridge output is:
-
Quarter-Bridge (1 active gage in arm 1, 3 fixed resistors):
Susceptible to thermal drift because temperature changes cause thermal resistance changes that mimic mechanical strain. A dummy unstrained gage in arm 2 exposed to the same ambient temperature cancels temperature drift.
-
Half-Bridge (2 active gages):
- Bending Application: Gage 1 mounted on top surface in tension (), Gage 2 on bottom surface in compression (): Doubles sensitivity, and inherently cancels both axial tension/compression and thermal expansion.
-
Full-Bridge (4 active gages):
- Bending Beam: Gages 1 and 3 in tension (), Gages 2 and 4 in compression (): Quadruples output sensitivity, completely rejects temperature drift, cancels axial loads, and provides maximum signal-to-noise ratio.
2. Linear Variable Differential Transformers (LVDTs)
An LVDT is an electromechanical transducer that produces an electrical output proportional to linear displacement:
- Construction: One primary coil centered between two identical secondary coils wound in series-opposition around a cylindrical hollow bobbin. A moveable high-permeability ferromagnetic core attaches to the moving machine member.
- Operation: The primary coil is excited with an AC carrier voltage (, ). When the core is centered at the null position, equal magnetic flux links both secondary coils; because they are wired in series-opposition, the net output voltage is zero ().
- Displacement: Moving the core from null increases flux in one secondary while decreasing flux in the other. The amplitude of scales linearly with core displacement, while its phase ( vs relative to primary excitation) indicates direction.
- Features: Frictionless non-contact operation, infinite theoretical resolution, high linearity (), and rugged resistance to shock, vibration, and contaminated environments.
3. Optical Encoders (Incremental vs. Absolute)
Optical encoders convert rotational displacement into digital pulses using a patterned glass or polymer disc and photodetectors.
-
Incremental Encoders:
- Utilize two optical tracks: Channel A and Channel B, offset by electrical phase (quadrature).
- Direction Sensing: If Channel A leads Channel B, shaft rotation is clockwise; if B leads A, rotation is counterclockwise.
- Resolution Multiplication ( Decoding): By counting both rising and falling edges of channels A and B, the effective resolution is quadrupled ( pulses per revolution).
- Index Channel (Z): Produces one pulse per complete revolution, serving as a physical reference marker for homing.
- Limitation: Loses absolute shaft position upon loss of power; requires a homing routine on power-up.
-
Absolute Encoders:
- Disc features multiple concentric tracks, where each angular sector corresponds to a unique digital binary word.
- Retains absolute position even during power outages; no homing sequence required.
- Gray Code vs. Binary: In natural binary code, transitioning between consecutive numbers often requires multiple bits to flip simultaneously (e.g., flips all 3 bits). Slight mechanical disc misalignment causes intermediate read glitches (e.g., momentarily reading ). Gray code is a reflected binary code designed so that only one bit changes between any two consecutive values, eliminating transition glitches.
4. Temperature Sensors
Temperature Sensor Comparison
+-----------------------------------------------------------------------------------------+
| Sensor Type | Transduction Principle | Operating Range | Key Characteristic |
|--------------+---------------------------------+---------------------+--------------------|
| Thermocouple | Seebeck thermoelectric effect | -200C to +1800C | Rugged, self-power |
| RTD (Pt100) | Positive temp-coefficient (PTC) | -200C to +650C | High accuracy/line |
| Thermistor | Negative temp-coefficient (NTC) | -50C to +150C | High sensitivity |
+-----------------------------------------------------------------------------------------+
-
Thermocouples:
- Two dissimilar metal wires joined at one end form a measuring (hot) junction. The Seebeck effect generates an open-circuit voltage proportional to the temperature difference between hot junction and reference (cold) junction : .
- Requires Cold-Junction Compensation (CJC) using a local IC temperature sensor on the isothermal terminal block.
- Common types: Type K (Chromel-Alumel, wide industrial range to , ), Type J (Iron-Constantan), Type T (Copper-Constantan).
-
Resistance Temperature Detectors (RTDs):
- Operating principle: Pure metals exhibit a linear increase in electrical resistance with temperature:
- Industrial standard: Pt100 ( at , ) and Pt1000 ( at ).
- Highly linear, stable, and accurate (). 3-wire and 4-wire lead configurations cancel lead-wire resistance in remote installations.
-
Thermistors:
- Semiconductor metal oxides with a Negative Temperature Coefficient (NTC):
- Extremely sensitive to small temperature changes over narrow ranges, but highly non-linear.
Basic Circuit Relations for Mechatronics
Sensor, actuator and controller hardware rests on a few circuit relations:
- Ohm's law and power: ; .
- Series and parallel resistors: in series; in parallel.
- Voltage divider: , used to scale signals and in potentiometer position sensors.
- RC circuits: time constant ; a capacitor charges to of its final voltage in one and about in . A first-order RC low-pass filter has cutoff frequency and is the simplest anti-aliasing filter.
- RL circuits: . Current in solenoids and motor windings rises with this time constant, which is why stepper torque falls at high step rates.
- Inductive loads (relays, solenoids, motor windings) produce a large voltage spike () when switched off, so a flyback (freewheeling) diode is placed across the coil to protect the switching transistor.
- Switching and drive circuits: transistors and MOSFETs let low-power logic switch loads; an H-bridge of four switches reverses a DC motor; pulse-width modulation (PWM) sets the average voltage for duty cycle . Relays, contactors and solid-state relays interface controller outputs with motors and heaters.
Mini-example: A resistor and a capacitor give and . A supply switched at duty cycle delivers an average of to a motor.
Electromechanical Actuators
1. DC Motors (Brushed vs. Brushless)
In a direct current (DC) motor, magnetic fields interact to produce torque:
where:
- = applied armature terminal voltage (V)
- = armature current (A)
- = armature winding resistance ()
- = counter-electromotive force / back-EMF (V)
- = rotor angular velocity (rad/s)
- = back-EMF constant ()
- = torque sensitivity constant ()
(In consistent SI units, numerically).
Torque-Speed Characteristic
Combining the electrical and torque equations yields the linear torque-speed curve for a permanent magnet DC motor:
- No-Load Speed ( at ):
- Stall Torque ( at ):
DC Motor Torque-Speed Curve
Speed w ^
w_nl +\
| \
| \ Operating Characteristic Curve
| \
w_nl/2 +----+----\ <-- Maximum Power Point: P_max
| | \
+----+------+---------> Torque T
0 T_stall/2 T_stall
Mechanical Output Power
The mechanical output power is :
Differentiating with respect to and setting to zero demonstrates that maximum mechanical power output occurs at exactly half the stall torque and half the no-load speed:
Brushed vs. Brushless DC Motors (BLDC)
- Brushed DC: Mechanical commutator rings and graphite brushes continuously reverse armature coil currents. Simple two-lead drive, but subject to brush arcing, wear, acoustic/RF noise, and limited operational life.
- Brushless DC (BLDC): Permanent magnets on rotor, multiphase electromagnetic windings on stator. Electronic inverter commutates currents based on rotor position (Hall effect sensors or sensorless back-EMF sensing). Offers higher efficiency, superior thermal dissipation, higher continuous torque, and virtually maintenance-free operation.
2. Stepper Motors
Stepper motors convert discrete digital pulses into precise incremental shaft rotations without closed-loop feedback.
- Step Angle (): for a hybrid stepper driven in full steps, where = number of phases (typically 2) and = number of rotor teeth (commonly 50). Each tooth pitch is crossed in full steps, giving the standard hybrid stepper angle:
- Microstepping: Modulating phase currents using Pulse-Width Modulation (PWM) into sinusoidal proportions divides each fundamental full step into fractions (), smoothing shaft torque and suppressing mid-frequency mechanical resonance.
- Torque Behavior: Stepper motors generate high holding torque at zero speed, but usable torque drops rapidly at higher stepping frequencies due to winding inductance ( time constant) limiting current rise.
Closed-Loop Feedback Control Systems
Open-Loop vs. Closed-Loop Systems
- Open-Loop: Control input is applied without measuring system output. Simple, low cost, unconditionally stable, but unable to compensate for external disturbances (load changes, friction variations) or plant parameter drift.
- Closed-Loop (Feedback): Sensor monitors the output , subtracts it from reference setpoint to generate error signal . Provides high disturbance rejection, reduced sensitivity to plant parameter changes, and stabilization of unstable systems.
Block Diagram Algebra & Transfer Functions
Consider a negative feedback system with forward controller , plant , and unity feedback ():
The open-loop loop transfer function is . The characteristic equation governing system stability is:
PID Control Fundamentals
The Proportional-Integral-Derivative (PID) controller is the most widely deployed feedback algorithm in machine design:
In the Laplace domain:
PID Tuning Influences
+----------------------------------------------------------------------------------------+
| Parameter | Rise Time | Overshoot | Settling Time | Steady-State Error | Stability |
|-----------+---------------+---------------+---------------+--------------------+-----------|
| Increase K_p | Decreases | Increases | Minor Effect | Decreases (offset) | Degrades |
| Increase K_i | Decreases | Increases | Increases | Eliminates to ZERO | Degrades |
| Increase K_d | Minor Effect| Decreases | Decreases | Minor Effect | Improves |
+----------------------------------------------------------------------------------------+
- Proportional Gain (): Provides immediate restoring action proportional to current error. Accelerates response and reduces steady-state error, but high induces excessive overshoot and oscillation.
- Integral Gain (): Integrates past error over time. Adds a free integrator (pole at ), raising system type by 1 and forcing steady-state error to zero () under step commands and constant disturbance loads. However, introduces phase lag, which reduces damping and can cause integral windup during actuator saturation.
- Derivative Gain (): Anticipates future error based on rate of change (). Adds phase lead, increasing effective damping, suppressing overshoot, and accelerating settling time. However, amplifies high-frequency measurement noise; practical implementations require a first-order low-pass filter on the derivative term: .
Stability Analysis & Routh-Hurwitz Stability Criterion
A closed-loop linear system is Bounded-Input Bounded-Output (BIBO) stable if and only if all roots of the characteristic equation lie strictly in the open left-half complex plane ().
For a general characteristic polynomial:
- Necessary Condition (Stodola): All coefficients must be strictly positive () and non-zero.
- Routh-Hurwitz Array: Form the array from polynomial coefficients: where: Criterion: The number of roots with positive real parts (unstable poles) equals the number of sign changes in the first column of the Routh array. For absolute stability, there must be zero sign changes in the first column.
For a Third-Order System ():
The system is strictly stable if and only if:
Step-by-Step Worked Sensor & Control Scenario
Problem Statement
An automated machine spindle drive requires precision torque measurement and closed-loop speed control.
Part A: Wheatstone Bridge Strain Gage Transducer
A solid steel shaft of diameter () transmits a steady working torque . The shear modulus of elasticity of the steel is . Four identical metallic foil strain gages with nominal resistance and Gage Factor are bonded to the shaft surface at helix angles to measure the principal tensile and compressive strains induced by torsion in a full Wheatstone bridge configuration. The bridge excitation voltage is .
Calculate:
- The maximum torsional surface shear stress and the resulting surface principal strain .
- The differential output voltage produced by the full Wheatstone bridge in millivolts.
Part B: Closed-Loop Speed Control & Stability
The DC spindle drive and load have the plant transfer function:
A proportional-derivative (PD) controller is placed in the forward path with unity negative feedback ().
Calculate:
- The closed-loop characteristic equation in terms of and .
- The required gains and to achieve a closed-loop natural frequency and a damping ratio .
- If an integral gain is added to form a full PID controller (), apply the Routh-Hurwitz criterion to determine the maximum upper bound on for which the closed-loop system remains strictly stable.
Step-by-Step Solution
Step 1: Torsional Stress & Principal Strain
Compute the polar moment of inertia of the solid circular shaft:
Compute maximum surface shear stress :
Compute the surface engineering shear strain :
In pure torsion, the principal normal stresses occur at to the shaft axis with magnitudes and . The corresponding principal normal strains are:
Step 2: Full-Bridge Output Voltage
In a full-bridge torsion setup, gages 1 and 3 experience tensile principal strain , and gages 2 and 4 experience compressive principal strain :
The full-bridge circuit outputs , which can be directly fed into an instrumentation amplifier.
Step 3: PD Control Parameter Tuning
The closed-loop transfer function is:
The characteristic equation is:
Compare to the standard second-order canonical form :
- Match the constant term:
- Match the linear damping coefficient:
Step 4: PID Stability Boundary via Routh-Hurwitz
With PID controller , the loop transfer function is:
The new third-order closed-loop characteristic equation is:
Substitute and :
The characteristic equation is:
Applying the Routh-Hurwitz stability criterion for a 3rd-order system ( with all ):
Therefore, for the system to remain strictly stable, the integral gain must satisfy:
Exceeding will drive the closed-loop poles across the imaginary axis into the right-half plane, causing sustained oscillations and unstable runaway.
A structural test engineer mounts strain gages on a cantilever beam subjected to pure bending. To achieve maximum voltage sensitivity while automatically compensating for thermal expansion and cancelling any stray axial loads, which Wheatstone bridge configuration should be selected?
A quarter-bridge with one active gage on the tension surface and an unstrained reference dummy gage.
A half-bridge with two active gages mounted side-by-side along the upper tension surface.
A half-bridge with one active gage on the tension surface and one passive precision resistor on the compression surface.
A full-bridge with two active gages on the upper tension surface and two active gages on the lower compression surface.
An industrial servo positioning system exhibits unacceptable steady-state position error when holding against a constant gravitational disturbance torque, but its transient response is already lightly damped with significant overshoot. How should the controller parameters be adjusted to eliminate the steady-state error without degrading high-frequency noise rejection?
Increase proportional gain K_p substantially and remove the derivative gain K_d entirely.
Add integral gain K_i to remove the steady-state offset, and add derivative gain K_d to restore damping.
Increase derivative gain K_d toward infinity while removing the proportional gain K_p from the controller completely.
Switch to open-loop control and disable all of the feedback error terms to stop the overshoot.
A closed-loop motor velocity control system has the characteristic equation s^3 + 6 s^2 + 11 s + K = 0, where K is the adjustable loop gain. According to the Routh-Hurwitz stability criterion, what is the allowable range of gain K for which the closed-loop system remains strictly stable?
0 < K < 11
6 < K < 11
0 < K < 66
K > 66
A resistor and a capacitor form a first-order RC low-pass filter ahead of an analog-to-digital converter. What is the filter's cutoff frequency?
Sections you finish are checked off in the contents.