Mechatronics cover
Interactive book · Semester 5-8

Mechatronics

Spin an encoder, balance a strain-gauge bridge, sample a signal, tune a PID loop and run PLC ladder logic in your browser

Sixteen chapters, 17 interactives, few words. Every chapter is mapped to the Anna University, VTU, SPPU, Mumbai University and KTU units it covers, in the order a mechatronic system works: sensors measure, signal conditioning and data acquisition clean and digitise, controllers decide (PID, PLC, microcontroller), actuators move (motors, cylinders), and the last chapters put it together in CNC machines, robots, cars and IoT devices.

  • AUME3791Mechatronics and IoT
  • VTUBME515AMechatronics
  • SPPU302044Mechatronics
  • MUMEC501Mechanical Measurements and Controls
  • MUMEC604Automation and Artificial Intelligence
  • KTUMET402Mechatronics

By Skill-Lync · Updated 16 Nov 2026 · 16 chapters · 17 interactives · free, no sign-up

Chapter 1

What a mechatronic system is: sense, decide, act

Which syllabus covers thisAU ME3791 Unit IVTU BME515A Module 1SPPU 302044 Units 1 and 3MU MEC501 Module 5; MEC604 Module 1KTU MET402 Modules 1 and 4

What makes a product mechatronic?

Mechanics, electronics, control and software designed together instead of one after another. Every mechatronic system has the same blocks: a sensor measures, signal conditioning cleans the reading, a controller (microcontroller, PLC or computer) compares it with what is wanted, and an actuator acts on the machine. A washing machine, an ABS unit, a CNC machine and a camera autofocus all fit this pattern.

What are the parts of a measurement system?

A sensing element turns the quantity into a signal (a thermocouple makes microvolts), signal conditioning makes it usable (amplify, filter, convert to digital) and a display or recorder presents it. The overall sensitivity is the product of the stage sensitivities, and the coarsest stage sets the resolution.

Open loop or closed loop?

Open loop sends a fixed command and hopes: a toaster timer, a stepper motor counting steps. Closed loop measures the output and corrects the error: cruise control, a servo, a thermostat. Feedback rejects disturbances and parameter changes, divided by , at the cost of sensors and the risk of instability if the gain is too high.

Open-loop vs closed-loop speed control of a conveyor motor under a load disturbance: interactive loads as you scroll

How is a mechatronic product designed?

Traditional design finishes the mechanism, then adds electronics and code to fix what it cannot do. Mechatronic design starts from the function: recognise the need, model the whole system, choose sensors, actuators and controller together, simulate, prototype and test. Software often replaces mechanism: an electronic cam instead of a steel one, an encoder count instead of a gear train.

Predict, then check

A closed-loop speed controller has loop gain 20. A load change would drop the open-loop speed by 10%. With feedback the drop is about:

Worked examples

Measurement chain resolution · Thermocouple 40 µV/°C, amplifier gain 250, 10-bit ADC with a 5 V range
  1. Sensitivity after the amplifier = 40 µV × 250 = 10 mV/°C
  2. ADC step = 5 V / 1024 = 4.883 mV

Answer: One ADC count = 0.488 °C

Feedback and steady-state error · Motor 50 rpm per volt, proportional gain 0.4 V per rpm of error
  1. Loop gain = 50 × 0.4 = 20
  2. Steady-state error = 1/(1 + 20) = 4.76% of the set speed
  3. A 10% open-loop speed drop becomes 0.48%

Answer: Feedback cuts the load effect 21 times

Chapter 2

Sensor characteristics: static and dynamic

Which syllabus covers thisAU ME3791 Unit IVTU BME515A Module 1SPPU 302044 Unit 1MU MEC501 Module 3KTU MET402 Module 1

Sensor or transducer?

A transducer converts energy from one form to another; a sensor is the element that responds to the measured quantity. A strain gauge is a sensor; the strain gauge bonded to a beam, wired into a bridge and giving volts per newton, is a load cell transducer. Active transducers generate their own signal (thermocouple, piezo); passive ones need excitation (strain gauge, RTD, LVDT).

Which static characteristics matter?

Range and span; sensitivity (output change per input change); accuracy (closeness to the true value) versus precision (repeatability); resolution (smallest detectable change); linearity, hysteresis and dead band, quoted as % of full scale; drift with time and temperature. Calibration against a known standard finds them. Errors are systematic (correctable) or random (average them out).

Why does a thermometer lag?

It must absorb heat before it reads, so it responds like a first-order system with time constant : 63.2% of a step in one , 95% in three. Following a ramp it reads late by a constant times the rate. A thinner sheath or a faster fluid shrinks .

Sensor dynamics: first-order and second-order response to a step and a ramp: interactive loads as you scroll

Why do accelerometers and pressure sensors ring?

They contain a mass on a spring, so they are second-order: natural frequency and damping ratio . Lightly damped sensors overshoot and ring; heavily damped ones are slow. Damping near 0.7 gives a flat amplitude response up to about 20% of , which is why sensor makers aim for it.

Predict, then check

A thermometer with a 10 s time constant follows an oven heating at 2 °C/s. Once settled, it reads:

Worked examples

Thermometer plunged into boiling water · = 10 s, from 25 °C into 100 °C
  1. After 20 s: 25 + 75(1 − ) = 89.85 °C
  2. Reading 99 °C needs = 43.2 s

Answer: 89.8 °C at 20 s; 43 s to read within 1 °C

Pressure transmitter datasheet · 0–10 bar → 4–20 mA, worst calibration deviation 0.05 bar
  1. Sensitivity = 16 mA / 10 bar = 1.6 mA/bar
  2. Non-linearity = 0.05/10 = 0.5% of full scale

Answer: 1.6 mA/bar, ±0.5% FS

Accelerometer flat range · = 0.7, natural frequency 1 kHz
  1. Amplitude ratio
  2. At 200 Hz ( = 0.2): 1.0000; at 400 Hz: 0.9905
  3. Step overshoot = = 4.6%

Answer: Within 1% up to 400 Hz, 4.6% overshoot on a shock

Chapter 3

Position, displacement and proximity sensors

Which syllabus covers thisAU ME3791 Unit IVTU BME515A Module 1SPPU 302044 Unit 1MU MEC501 Module 4.1KTU MET402 Module 1

How do potentiometers and LVDTs measure displacement?

A potentiometer is a voltage divider whose wiper moves with the part: cheap, but it wears and a meter that draws current bends its line (loading error). An LVDT has one primary and two secondary coils around a moving iron core; the secondaries are wired in opposition, so the output is zero at the centre and grows linearly, with phase showing direction. No contact, so no wear.

Inductive, capacitive, Hall effect or optical: which proximity switch?

Inductive switches sense metal through eddy currents in a few millimetres. Capacitive ones sense anything that changes permittivity, including plastic, grain and liquid through a tank wall. Hall effect sensors sense magnets (brushless motor rotor position, wheel speed). Photoelectric sensors break or reflect a light beam over metres; ultrasonic sensors time an echo.

Incremental or absolute encoder?

An incremental encoder gives two pulse trains, A and B, 90° apart: count edges for position, see which leads for direction, and decode all four edges for four times the line count. It forgets position at power-off. An absolute encoder reads a unique code track per position, in Gray code so that only one bit changes at a time and no reading is ever wildly wrong.

Optical encoders: incremental A/B quadrature and a 4-bit absolute Gray-code disc: interactive loads as you scroll

What about resolvers, tachogenerators and lidar?

A resolver is a rotary transformer whose two outputs vary as sine and cosine of shaft angle: rugged enough for engines and aircraft. A tachogenerator is a small DC generator whose voltage is proportional to speed. Eddy-current probes measure shaft vibration in microns. Lidar times laser pulses to map distances for robots and cars.

Predict, then check

An incremental encoder's channel A leads B by 90° when it turns clockwise. If B starts leading A:

Worked examples

Encoder on a ball-screw axis · 1024 lines per revolution, ×4 decoding, 5 mm lead, motor at 3000 rpm
  1. Counts per revolution = 4 × 1024 = 4096
  2. Angle per count = 0.0879°; travel per count = 5 mm / 4096 = 1.22 µm
  3. Pulse frequency per channel = 1024 × 3000/60 = 51.2 kHz

Answer: 1.22 µm resolution; the counter must take 204.8 kHz edges

Bits for an absolute encoder · Need 0.1° resolution
  1. 360/0.1 = 3600 positions
  2. = 2048 is too few, = 4096 is enough

Answer: 12-bit absolute encoder

Potentiometer loading error · 10 kΩ pot read by a 50 kΩ meter, wiper at mid-travel
  1. = 0.5 / (1 + 0.25 × 0.2) = 0.4762

Answer: Reads 4.76% low at mid-travel

Chapter 4

Force, pressure, temperature and flow sensors

Which syllabus covers thisAU ME3791 Unit IVTU BME515A Module 1SPPU 302044 Unit 1MU MEC501 Modules 4.2 to 4.5KTU MET402 Module 1

How does a strain gauge measure force?

A foil grid bonded to the part stretches with it, so its resistance changes by gauge factor times strain (GF about 2 for metal foil). The change is tiny, a fraction of an ohm, so the gauge sits in a Wheatstone bridge. Two or four active gauges double or quadruple the output, and a matching gauge in the adjacent arm cancels temperature effects. Load cells and torque sensors are built this way.

Strain gauges in a Wheatstone bridge: quarter, half and full bridge with temperature compensation: interactive loads as you scroll

How is pressure sensed?

An elastic element deflects: a Bourdon tube, diaphragm or bellows. Its deflection is read by strain gauges, a capacitance change or an LVDT. Silicon piezoresistive sensors diffuse the gauges into a micromachined diaphragm (chapter 9). Piezoelectric sensors suit fast-changing pressure such as engine combustion, but drift on static loads because their charge leaks away.

Thermocouple, RTD or thermistor?

A thermocouple makes a small voltage from two dissimilar metals (type K about 41 µV/°C, up to about 1200 °C) and needs cold-junction compensation. A Pt100 RTD is 100 Ω at 0 °C and rises about 0.385 Ω/°C: accurate and stable. A thermistor changes resistance hugely but non-linearly. Pyrometers read infrared radiation without contact.

How is flow measured?

Differential-pressure meters (orifice, venturi) use Bernoulli: flow grows with the square root of pressure drop. A rotameter's float rises until drag balances weight. Electromagnetic meters measure the voltage a conducting liquid induces moving through a magnetic field. Ultrasonic meters time sound pulses with and against the flow. Hot-wire anemometers measure cooling of a heated wire.

Predict, then check

A quarter-bridge strain gauge output is 1.31 mV. Swapping to a full bridge with four active gauges, same strain, gives:

Worked examples

Quarter-bridge output · 350 Ω gauge, GF 2.1, strain 500 µε, 5 V excitation
  1. = 2.1 × 500 × 10⁻⁶ × 350 = 0.3675 Ω
  2. Exact: = 1.3118 mV (linear estimate 1.3125 mV)
  3. Full bridge: = 5.25 mV

Answer: 1.31 mV quarter bridge, 5.25 mV full bridge

Type K thermocouple · Hot junction 300 °C, cold junction 25 °C; reference tables (ITS-90): 12.209 mV at 300 °C, 1.000 mV at 25 °C
  1. Measured emf = E(300) − E(25)
  2. = 12.209 − 1.000 = 11.209 mV

Answer: 11.209 mV; add back 1.000 mV (cold-junction compensation) before looking up the temperature

Pt100 and piezo · Pt100 at 100 °C ( = 0.00385); quartz = 2.3 pC/N under 100 N into 1000 pF
  1. = 138.5 Ω
  2. = 230 pC, = 0.23 V

Answer: 138.5 Ω; 0.23 V (which leaks away on a static load)

Chapter 5

Signal conditioning: amplify, filter, protect

Which syllabus covers thisAU ME3791 Unit IIVTU BME515A Module 2SPPU 302044 Unit 2MU not in syllabusKTU not in syllabus

What do the basic op-amp circuits do?

An ideal op-amp has huge gain and draws no input current, so with negative feedback its two inputs sit at the same voltage. Inverting amplifier: gain . Non-inverting: with very high input resistance. Voltage follower: gain 1, used as a buffer. Summing, integrating and differentiating amplifiers follow from the same two rules.

Why use an instrumentation amplifier on a bridge?

A bridge gives a few millivolts riding on half the excitation voltage. An instrumentation amplifier (three op-amps) amplifies only the difference between its inputs, rejects the common part (high CMRR), has very high input resistance and sets its gain with one resistor.

How does a filter remove noise?

An RC low-pass filter passes slow signals and attenuates fast noise: above the cut-off frequency the output falls 20 dB per decade per order. A high-pass filter does the opposite, removing drift and DC offset. A notch filter removes one frequency, typically 50 Hz mains hum. Filtering also comes before sampling, as an anti-aliasing filter (chapter 6).

RC filter cleaning a noisy sensor signal: time trace and Bode magnitude: interactive loads as you scroll

What protects the inputs and isolates them?

Series resistors and clamping diodes or Zener diodes stop overvoltage from reaching a microcontroller pin; fuses protect against overcurrent. Opto-isolators pass the signal as light so that the field side and the controller share no ground, which kills ground loops and protects against high voltages. A Wheatstone bridge, a current loop (4–20 mA) and a multiplexer complete the toolkit.

Predict, then check

An RC low-pass filter has a 159 Hz cut-off. A 1 kHz noise component comes out at:

Worked examples

Gain for a load cell · Load cell 2 mV/V at 5 V excitation into a 0–5 V ADC; in-amp with = 25 kΩ
  1. Full-scale output = 2 mV/V × 5 V = 10 mV
  2. Gain needed = 5 V / 10 mV = 500
  3. = 50 kΩ / 499 = 100.2 Ω

Answer: Gain 500 with ≈ 100 Ω

RC filter on a sensor · = 10 kΩ, = 100 nF; signal 10 Hz, noise 1 kHz
  1. = 1/(2π × 10⁴ × 10⁻⁷) = 159.2 Hz
  2. At 1 kHz: |H| = 0.157 (-16.1 dB)
  3. At 10 Hz: |H| = 0.998

Answer: Noise cut to 16%, signal kept at 99.8%

Amplifier gains · = 10 kΩ, = 100 kΩ
  1. Inverting: −100/10
  2. Non-inverting: 1 + 100/10

Answer: −10 and 11

Chapter 6

Data acquisition: sampling, ADCs, DACs and communication

Which syllabus covers thisAU ME3791 Unit IIVTU BME515A Module 2SPPU 302044 Unit 2MU not in syllabusKTU not in syllabus

What is inside a data acquisition system?

Sensors, signal conditioning, a multiplexer that switches many channels into one converter, a sample-and-hold that freezes the voltage while it is converted, the ADC, and a processor that stores, displays or acts. A data logger does this unattended for days; SCADA supervises a whole plant of them over a network.

How fast must you sample?

Faster than twice the highest frequency present (Nyquist). Anything above half the sampling rate does not vanish: it folds back and appears as a false lower frequency, an alias, that no software can remove later. So an analogue low-pass filter goes before the ADC, and practical systems sample five to ten times the signal bandwidth.

Sampling, aliasing and quantisation, with a successive-approximation ADC converting one sample: interactive loads as you scroll

How does an ADC convert?

A successive-approximation ADC guesses one bit at a time, most significant first: set the bit, compare the DAC output with the input, keep the bit if the input is higher. An n-bit conversion takes n steps. Flash ADCs compare against all levels at once (fast, many comparators); dual-slope ADCs integrate (slow, very accurate, reject mains noise). Quantisation error is half a step.

DACs and moving the data

An R-2R ladder DAC uses only two resistor values; each bit adds a binary-weighted share of the reference. Data then travels in parallel (one wire per bit, short distances) or serial: asynchronous (UART, with start and stop bits) or synchronous with a clock (SPI, I2C). Industrial links use RS-485, CAN and Ethernet.

Predict, then check

A 900 Hz vibration is sampled at 1 kHz. The recorded signal shows:

Worked examples

12-bit ADC on 0–10 V · 12 bits, 10 V range
  1. LSB = 10/4096 = 2.441 mV, quantisation error ±1.22 mV
  2. SQNR = 6.02 × 12 + 1.76 = 74.0 dB

Answer: 2.44 mV steps, 74 dB dynamic range

4-bit successive approximation · = 5 V, input 3.2 V
  1. Try 1000 → 2.5 V ≤ 3.2: keep
  2. Try 1100 → 3.75 V > 3.2: drop
  3. Try 1010 → 3.125 V ≤ 3.2: keep
  4. Try 1011 → 3.4375 V > 3.2: drop

Answer: Code 1010 (decimal 10), 4 comparisons

R-2R DAC and a UART link · 4-bit R-2R, = 5 V, code 1010; UART at 9600 baud, 8 data bits, no parity, 1 stop bit
  1. = 5 × 10/16 = 3.125 V
  2. Each byte = start + 8 data + stop = 10 bits
  3. 9600/10 = 960 bytes/s

Answer: 3.125 V; 960 bytes per second

Chapter 7

Electrical actuators: relays, DC, BLDC, stepper and servo motors

Which syllabus covers thisAU ME3791 Units I and IIVTU BME515A Module 2SPPU 302044 Unit 1MU MEC604 Module 4KTU MET402 Modules 1 and 5

How does a microcontroller switch a load?

A pin gives milliamps; a motor wants amps. Relays and solenoids switch with a coil (add a flyback diode across it). Transistors switch electronically: a Darlington pair multiplies current gain, a MOSFET needs almost no gate current, a thyristor or TRIAC switches AC mains. An H-bridge of four switches drives a DC motor both ways, and PWM sets its average voltage.

How does a DC motor settle on a speed?

Torque is proportional to current, and back-emf is proportional to speed. The motor speeds up until the load torque equals the motor torque on its straight torque-speed line: no-load speed at one end, stall torque at the other. PWM duty scales the voltage, which shifts the whole line, so speed is controlled without wasting power.

PWM-driven DC motor: torque-speed line, load line and the operating point: interactive loads as you scroll

Brushless DC and servo motors

A brushless DC motor puts magnets on the rotor and switches the stator coils electronically, using Hall sensors or back-emf to know rotor position: no brushes to wear, so drones, EVs and fans use it. A servo motor is any motor with position or speed feedback (encoder or resolver) and a closed-loop drive; AC servos run CNC axes and robot joints.

How does a stepper motor move without feedback?

Energising the phases in sequence pulls the rotor one step at a time: 1.8° (200 steps per revolution) for a common hybrid stepper. Wave, full-step and half-step sequences trade torque against smoothness. Permanent-magnet, variable-reluctance and hybrid types differ in how the rotor is attracted. Run open loop it is simple, but too fast or overloaded it misses steps without knowing.

Stepper motor drive sequences: wave, full step and half step: interactive loads as you scroll
Predict, then check

A DC motor runs a constant-torque load from a PWM drive. Halving the duty cycle:

Worked examples

DC motor operating point · 24 V, armature 1 Ω, = 0.05 N·m/A (V·s/rad), load 0.3 N·m
  1. No-load speed = 24/0.05 = 480 rad/s (4584 rpm); stall torque = 0.05 × 24 = 1.2 N·m
  2. Load current = 0.3/0.05 = 6 A; speed = (24 − 6)/0.05 = 360 rad/s (3438 rpm)
  3. Output 108 W, input 144 W

Answer: 3438 rpm at 75% efficiency

Same motor at 50% PWM · Average 12 V, same 0.3 N·m load
  1. Current still 6 A
  2. Speed = (12 − 6)/0.05 = 120 rad/s

Answer: 1146 rpm, a third of full-voltage speed, not half

Stepper on a lead screw · 1.8° stepper, 1000 full steps/s, 5 mm lead
  1. 200 steps/rev → 1000/200 × 60 = 300 rpm
  2. Linear speed = 5 rev/s × 5 mm = 25 mm/s
  3. Resolution = 5/200 = 0.025 mm per step

Answer: 300 rpm, 25 mm/s, 25 µm per step

Chapter 8

Hydraulic and pneumatic actuators and circuits

Which syllabus covers thisAU not in syllabusVTU BME515A Module 4 (PLC pneumatic applications)SPPU 302044 Units 1 and 6MU MEC604 Modules 2 and 3KTU MET402 Modules 1 and 2

Hydraulic or pneumatic?

Hydraulics uses oil at 100–300 bar: huge forces from small cylinders, stiff and precise (presses, excavators, injection moulding). Pneumatics uses compressed air at about 6 bar: clean, fast, cheap, but compressible, so it suits on-off motion (pick and place, clamping). Linear actuators are single- or double-acting cylinders; rotary actuators are vane or rack-and-pinion units and motors.

What do the valves do?

Directional control valves route the flow, named by ports and positions: a 5/2 valve has 5 ports and 2 positions and drives a double-acting cylinder. They are moved by hand, solenoid, pilot air or a roller. Pressure relief valves cap system pressure; flow control valves set speed (meter-in or meter-out). Cushioning slows the piston at the end of its stroke.

How is a two-cylinder sequence designed?

Write the sequence, for example A+ B+ B− A−, and draw the displacement-step diagram. If a limit valve is still signalling when the opposite move is needed, there is a signal conflict and the circuit jams. The cascade method splits the sequence into groups so that no cylinder moves twice in one group, and powers one group's air line at a time.

Two pneumatic cylinders: displacement-step diagram, signal conflicts and cascade groups: interactive loads as you scroll

Electro-pneumatics and PLCs

Replace the pilot valves with solenoid valves and the limit valves with switches, and the logic moves into relays or a PLC (chapter 13). Single-solenoid valves spring back when power goes; double-solenoid valves remember their last position, which matters for safety. The PLC version of a cascade is a latched step sequence.

Predict, then check

A double-acting cylinder at the same pressure pushes out and pulls in. Which force is larger?

Worked examples

Pneumatic cylinder forces · Bore 50 mm, rod 20 mm, 6 bar
  1. Extend: 6 × 10⁵ × π × 0.05²/4 = 1178 N
  2. Retract: 6 × 10⁵ × π(0.05² − 0.02²)/4 = 990 N

Answer: 1178 N out, 990 N in (before friction, usually 10–15% less)

Hydraulic cylinder speed and force · Pump 20 L/min, bore 63 mm, 100 bar
  1. Area = π × 0.063²/4 = 31.17 cm²
  2. Speed = (20 × 10⁻³/60)/0.003117 = 0.107 m/s
  3. Force = 10⁷ × 0.003117 = 31.2 kN

Answer: 0.107 m/s and 31.2 kN

Cascade groups · Sequence A+ B+ B− A−
  1. B+ then B− in one group would conflict, so split after B+
  2. Group I: A+ B+; group II: B− A−

Answer: 2 groups, one group-changing valve

Chapter 9

MEMS: micro-machined sensors

Which syllabus covers thisAU ME3791 Unit I (solid-state sensors)VTU not in syllabusSPPU 302044 Unit 1 (MEMS accelerometer)MU not in syllabusKTU MET402 Module 2

How are MEMS made?

With the same tools as chips. Deposit a thin film (oxidation, CVD, sputtering), pattern it by lithography (light through a mask onto photoresist), and etch away what is unprotected. Surface micromachining builds free-standing parts on sacrificial layers; bulk micromachining etches into the wafer. Deep reactive ion etching (DRIE) cuts deep vertical walls; LIGA electroplates high-aspect-ratio parts into X-ray-patterned moulds.

How does a MEMS accelerometer work?

A proof mass of micrograms hangs on silicon springs between fixed comb fingers. Acceleration pushes the mass, closing the gap on one side and opening it on the other; the circuit reads the difference in capacitance, femtofarads. A stiffer spring gives more bandwidth but less displacement per g: displacement equals acceleration divided by .

MEMS capacitive accelerometer: proof mass, springs and differential capacitance: interactive loads as you scroll

Gyroscopes and pressure sensors

A MEMS gyroscope vibrates a mass in one direction; rotation creates a Coriolis force at right angles that the sense combs measure. A MEMS pressure sensor is a thin silicon diaphragm with piezoresistors diffused at its edges in a bridge: pressure bends the diaphragm and unbalances the bridge. Phones, airbags, drones and tyre-pressure monitors all use them.

Predict, then check

To double a MEMS accelerometer's natural frequency (bandwidth), you make the spring stiffer. Displacement per g becomes:

Worked examples

Proof mass deflection · = 1 µg (10⁻⁹ kg), = 1 N/m, 1 g acceleration
  1. = 5033 Hz
  2. = 9.81 nm

Answer: About 5 kHz bandwidth, 9.8 nm per g

Differential capacitance · 50 finger pairs, overlap 100 µm × 2 µm, gap 2 µm, = 9.81 nm
  1. Each side at rest: = 44.3 fF
  2. = 0.434 fF

Answer: 0.43 fF per g: why the readout circuit sits on the same chip

Bandwidth against sensitivity · Design for = 1 kHz
  1. = 9.81/(2π × 1000)² = 0.248 µm

Answer: 0.25 µm per g, 25 times more than at 5 kHz

Chapter 10

System modelling, transfer functions and stability

Which syllabus covers thisAU not in syllabusVTU BME515A Module 1SPPU 302044 Unit 3MU MEC501 Modules 5.2 and 6.1KTU MET402 Module 3

What are the building blocks of a model?

Mechanical: mass, spring and damper. Electrical: inductor, capacitor and resistor. Fluid: inertance, capacitance (a tank) and resistance (a valve). Thermal: capacitance and resistance (no inertance). The equations have the same form, so a mass-spring-damper and an RLC circuit behave alike: an engineer who understands one understands all four.

Transfer functions and block diagrams

Take the Laplace transform with zero initial conditions and the output divided by the input is the transfer function. Blocks in series multiply; in parallel they add; a feedback loop becomes . Reduce the diagram step by step to one block. Poles (roots of the denominator) decide the response; zeros shape it.

How does Routh-Hurwitz test stability?

A system is stable if all its poles have negative real parts. Routh's table, built from the coefficients of the characteristic equation, tells you without solving it: the number of sign changes in the first column equals the number of poles in the right half-plane. A row of zeros marks the gain where the system oscillates steadily.

Routh-Hurwitz table and closed-loop poles as the gain rises: interactive loads as you scroll
Predict, then check

The loop has unity feedback. Raising from 10 to 100 makes the system:

Worked examples

Mass-spring-damper · = 2 kg, = 8 N·s/m, = 200 N/m
  1. = 10 rad/s, = 0.2

Answer: Underdamped: it rings at about 10 rad/s, static gain 5 mm per kN

Thermal model of an oven · Heat capacity 5000 J/K, loss resistance 0.02 K/W, 1 kW heater
  1. = 100 s
  2. Final rise = 1000 × 0.02 = 20 K

Answer: First order: 20 K rise, 63% of it after 100 s

Critical gain by Routh ·
  1. Row : ; row :
  2. Both positive for 0 < < 70
  3. At = 70 the auxiliary equation gives 3.162

Answer: Stable up to = 70; there it oscillates at 3.16 rad/s

Chapter 11

Time and frequency response

Which syllabus covers thisAU not in syllabusVTU not in syllabusSPPU 302044 Unit 4MU MEC501 Modules 5.3 and 6.2KTU not in syllabus

What do the step-response specifications mean?

Rise time: how fast the output first reaches the target. Peak time and percentage overshoot: how far it swings past. Settling time: when it stays within 2% (or 5%). For a second-order system all of them follow from the damping ratio and natural frequency, so designers translate a spec like 'less than 10% overshoot' straight into ≥ 0.59.

Second-order step response and its poles on the s-plane: interactive loads as you scroll

How do pole positions map to the response?

Poles further left decay faster (shorter settling). Poles further from the real axis oscillate faster. The angle from the negative real axis sets damping: , so all poles on one ray through the origin have the same overshoot. Poles on the imaginary axis oscillate forever; in the right half-plane they grow.

What sets the steady-state error?

The system type, the number of integrators in the loop. A type 0 loop leaves a step error of ; type 1 follows a step exactly but lags a ramp by ; type 2 follows a ramp and lags a parabola. More integrators remove error but push the loop towards instability.

What do Bode plots and margins tell you?

A Bode plot shows gain in dB and phase against log frequency, built from straight-line asymptotes. Gain margin is how much the gain can rise before the loop hits −180° at 0 dB; phase margin is the extra lag it can take at the gain crossover. Around 45–60° of phase margin gives a well-damped closed loop.

Predict, then check

Two second-order systems have poles on the same ray from the origin, one twice as far out. They have:

Worked examples

Step response of $\zeta$ = 0.2, $\omega_n$ = 10 rad/s · The mass-spring-damper of chapter 10
  1. = 9.798 rad/s
  2. Overshoot = 52.7%, peak time π/ = 0.321 s
  3. Rise time (0–100%) = (π − cos⁻¹ζ)/ = 0.181 s; settling (2%) = 4/(ζ) = 2.0 s

Answer: 53% overshoot, settles in about 2 s

Damping for 10% overshoot · = 0.1

Answer: = 0.591

Phase margin · Open loop
  1. Gain crossover where = 100: = 7.86 rad/s
  2. Phase there = −90° − tan⁻¹(7.86/10) = -128.2°

Answer: Phase margin 51.8°, gain margin infinite

Chapter 12

Controllers: P, I, D and PID tuning

Which syllabus covers thisAU ME3791 Unit II (PID controller)VTU BME515A Module 5 (adaptive controllers)SPPU 302044 Unit 5MU MEC604 Module 4 (robot joint control)KTU MET402 Module 4

What do P, I and D each do?

Proportional action pushes harder the bigger the error, but leaves a steady error on type 0 loops. Integral action keeps adding up the error until it is zero, at the cost of overshoot and slower settling. Derivative action reacts to how fast the error changes, adding damping, but amplifies sensor noise, so it is usually filtered.

PID control of a DC motor's position: P, PI, PD and PID responses: interactive loads as you scroll

How do you tune a PID?

Manually: raise until the response is quick with some overshoot, add to remove the offset, add to calm the overshoot. Ziegler-Nichols ultimate-gain method: with P only, raise the gain until steady oscillation (ultimate gain , period ), then set = 0.6, = /2, = /8. It aims for quarter-amplitude decay: an aggressive start, often 25% overshoot or more, that you then soften.

Feedforward, adaptive and digital control

Feedforward acts on a measured disturbance before it shows up as error, for example adding torque when a robot arm picks up a known load. Adaptive controllers retune themselves as the plant changes, such as a machine tool's feed adapting to cutting force. In practice every PID runs in a microcontroller or PLC as a sampled loop, a few hundred to a few thousand times a second.

Predict, then check

A P-controlled temperature loop settles 3 °C below its set point. Which term removes that offset?

Worked examples

Ziegler-Nichols from the Routh result · Chapter 10 loop: = 70, oscillation at 3.162 rad/s
  1. = 2π/3.162 = 1.987 s
  2. = 0.6 × 70 = 42, = 0.993 s, = 0.248 s
  3. = 42.3, = 10.43

Answer: Kp = 42, Ki = 42.3 s⁻¹, Kd = 10.4 s

Offset with proportional control · Plant , = 4, unit step
  1. = 11.1%

Answer: 11% offset; adding any integral term makes it zero

Chapter 13

Programmable logic controllers and ladder logic

Which syllabus covers thisAU ME3791 Unit IIVTU BME515A Module 4SPPU 302044 Unit 6MU MEC604 Module 3KTU MET402 Module 4

What is inside a PLC?

A rugged industrial computer: power supply, processor, memory, and input and output modules isolated by opto-couplers, digital (24 V DC, 230 V AC) and analogue (4–20 mA, 0–10 V). Inputs come from push buttons, limit switches and sensors; outputs drive contactors, solenoid valves and lamps. It is chosen by I/O count, memory, speed and communication ports.

How does a PLC run its program?

In a repeating scan: read every input into memory, solve the program rung by rung from top to bottom, then write all outputs at once. A scan takes a few milliseconds. An input pulse shorter than a scan can be missed, and a rung uses values from the start of the scan, so order matters.

How do you read ladder logic?

Each rung is a circuit between two power rails. Contacts in series mean AND, in parallel OR; a normally closed contact means NOT. A seal-in (latch) contact in parallel with the start button keeps a motor running after the button is released. Timers (on-delay, off-delay), counters, internal relays and shift registers handle time, quantity and sequence.

PLC ladder logic simulator: latching, on-delay timer and counter rungs with a timing diagram: interactive loads as you scroll

Typical PLC jobs

Extending and retracting a cylinder with latches, sequencing two cylinders, starting conveyor motors in order, filling and draining a process tank, counting parts into boxes, a car-park barrier. Other languages from IEC 61131-3 sit alongside ladder: function block diagram, structured text and sequential function charts.

Predict, then check

A start button and a seal-in contact are in parallel, in series with a normally closed stop button. Both buttons are pressed together. The motor:

Worked examples

Scan time · 4000 instructions at 0.1 µs each plus 1 ms of I/O handling
  1. Logic = 4000 × 0.1 µs = 0.4 ms
  2. Scan = 0.4 + 1.0 = 1.4 ms

Answer: 1.4 ms: input pulses must last longer than that

Two motors, 30 s apart · On-delay timer with a 0.1 s time base
  1. Preset = 30 / 0.1 = 300
  2. Rung 1: Start, latched by M1, broken by Stop; rung 2: M1 enables TON; rung 3: timer done bit drives M2

Answer: Preset 300; M2 starts 30 s after M1

Counting parts into boxes · Conveyor 0.5 m/s, parts 0.25 m apart, 6 per box
  1. Parts arrive at 0.5/0.25 = 2 per second
  2. Counter preset 6; done bit stops the conveyor and resets after the box is changed

Answer: A full box every 3 s

Chapter 14

Microcontrollers, Arduino, Raspberry Pi and IoT

Which syllabus covers thisAU ME3791 Units III and IVVTU BME515A Module 3SPPU 302044 Unit 2 (communication)MU not in syllabusKTU not in syllabus

Microprocessor or microcontroller?

A microprocessor (such as the Intel 8085) is a CPU alone: the ALU, registers, program counter and control unit, with memory and I/O on separate chips over address and data buses. A microcontroller puts CPU, memory, timers, ADC and serial ports on one chip, so it can run a washing machine by itself. Single-board computers like the Raspberry Pi run a full operating system.

Arduino or Raspberry Pi?

An Arduino Uno (ATmega328P, 16 MHz, 5 V, 10-bit ADC) runs one C++ sketch with real-time timing and no operating system: ideal for reading sensors and driving actuators. A Raspberry Pi runs Linux and Python with networking and a camera, but has 3.3 V pins and no ADC. Many projects use both: the Arduino handles I/O, the Pi handles vision and the cloud.

How do you interface sensors?

Digital sensors and buttons go to GPIO pins (with pull-up resistors); analogue sensors go to the ADC; smart sensors talk I2C, SPI or UART. An ultrasonic sensor is timed with a pulse-width measurement. Match voltage levels: a 5 V echo into a 3.3 V Pi pin needs a divider. Drive loads through transistors or relays, never straight from a pin.

Arduino and an ultrasonic sensor: trigger, echo pulse and distance with temperature correction: interactive loads as you scroll

What turns a gadget into an IoT device?

A network link and a cloud side. The usual stack: sensors and a microcontroller, a radio (Wi-Fi such as the ESP8266, Bluetooth LE, LoRa, cellular), a lightweight protocol such as MQTT or HTTP, and a cloud platform that stores, shows and acts on the data. Power budget dominates battery devices: they sleep most of the time and wake to measure and send.

Predict, then check

An Arduino reads an LM35 (10 mV/°C) with the default 5 V reference. Switching to the internal 1.1 V reference makes each ADC step:

Worked examples

LM35 on an Arduino · 10 mV/°C, 10-bit ADC (0–1023), 5 V reference, 25 °C
  1. Reading = 0.25 V / 5 V × 1023 = 51.15 → 51
  2. One count = 5/1023/0.01 = 0.489 °C; with the 1.1 V reference 0.108 °C

Answer: analogRead returns 51; 0.49 °C per count

Ultrasonic echo · Echo pulse 2900 µs, air at 20 °C
  1. = 331.3 + 0.606 × 20 = 343.4 m/s
  2. = 49.8 cm; the common duration/58 rule gives 50.0 cm
  3. Pi input: 5 V echo through 1 kΩ and 2 kΩ divider = 3.33 V

Answer: 49.8 cm; divide the echo before the 3.3 V pin

IoT sensor battery life · 15 mA for 2 s every 10 minutes, 20 µA asleep, 2000 mAh cell
  1. Average = (15 mA × 2 s + 0.02 mA × 598 s)/600 s = 69.9 µA
  2. 2000 mAh / 0.0699 mA = 28,599 h

Answer: About 3.3 years, before self-discharge

Chapter 15

Mechatronics in CNC machines and robots

Which syllabus covers thisAU ME3791 Unit VVTU BME515A Module 5SPPU not in syllabusMU MEC604 Module 4KTU MET402 Modules 3 and 5

What makes a modern CNC machine precise?

A stiff structure; linear-motion guideways with rolling elements (low friction and no stick-slip); recirculating ball screws, preloaded with two nuts or oversize balls to remove backlash; anti-friction or hydrostatic spindle bearings; servo motors on every axis. Direct measuring (a linear scale on the slide) sees the true position; indirect measuring (an encoder on the motor) trusts the screw.

How are robot joints driven and sensed?

Servo or stepper motors through high-ratio, zero-backlash gearing: a harmonic drive's flexible spline has two fewer teeth than its rigid circular spline, giving 30:1 to 160:1 in one compact stage. Encoders give joint angles; force and tactile sensors in the gripper feel contact; ultrasonic and light-based range finders and lidar see obstacles.

How does a robot see?

A CCD or CMOS camera turns light into a grid of pixel values (older systems used vidicon tubes; CID cameras read pixels individually). Image processing then works on grey levels: the histogram shows their spread, contrast stretching and equalisation spread them out, and thresholding splits parts from background so their position and size can be measured.

Robot vision: an image's grey-level histogram, contrast stretching, equalisation and thresholding: interactive loads as you scroll
Predict, then check

A harmonic drive has 200 teeth on the flexspline and 202 on the circular spline. With the circular spline fixed, the reduction is:

Worked examples

Ball-screw axis · 10 mm lead, motor 3000 rpm direct, axial load 2 kN, efficiency 90%
  1. Rapid feed = 3000 × 10 mm = 30 m/min
  2. Torque = 2000 × 0.010/(2π × 0.9) = 3.54 N·m

Answer: 30 m/min, 3.5 N·m of motor torque

Vision data rate · 640 × 480 camera, 8-bit grey, 30 frames/s
  1. Frame = 307,200 bytes
  2. × 30 = 9.22 MB/s

Answer: 9.2 MB/s before any compression

Laser range finder timing · Target 2 m away
  1. Round trip = 4 m / (3 × 10⁸ m/s) = 13.34 ns

Answer: 13.3 ns: 1 mm of range is 6.7 ps, so lidar uses phase or fast counters

Chapter 16

Case studies: cars, robots, drones and IoT systems

Which syllabus covers thisAU ME3791 Unit VVTU BME515A Modules 1 and 5SPPU 302044 Units 1 and 5 (applications)MU MEC604 Module 1KTU MET402 Module 4

How does ABS stop a car shorter and keep it steerable?

Tyre grip peaks at roughly 10–30% wheel slip, depending on the road, and falls when the wheel locks and slides. Wheel speed sensors let the ABS unit spot a wheel decelerating too fast; it dumps and reapplies brake pressure many times a second to hold slip near the peak. A rolling tyre can also steer; a locked one cannot. On snow or gravel ABS can stop longer, so its sure win is steering. EBD shares brake force front to rear.

Anti-lock braking: wheel slip, tyre friction curve and stopping distance with and without ABS: interactive loads as you scroll

Engine management, ignition and adaptive cruise control

The engine control unit reads air flow or manifold pressure, crank and cam position, coolant temperature and the oxygen sensor, then sets injector pulse width for the right air-fuel ratio (14.7:1 for petrol) and fires each spark at the best timing. Adaptive cruise control uses radar to keep a time gap to the car ahead by controlling throttle and brakes.

Car park barrier, washing machine, pick-and-place robot

Each is a sequence with sensors. A car park barrier: ticket or tag accepted, motor raises the boom until a limit switch, a loop detector waits for the car to pass, the boom lowers. A washing machine: fill to a level switch, heat to temperature, tumble, drain and spin, with a load sensor setting water and time. A pick-and-place robot repeats approach, grip, lift, move and release.

Drones and IoT systems

A drone flies by mechatronics alone: an IMU (MEMS gyro and accelerometer) feeds a flight controller that changes four brushless motor speeds hundreds of times a second. IoT systems scale the same loop to fields and fleets: soil moisture sensors switching irrigation, a water network with remote valves and level sensors, vehicle trackers choosing the best network to report on.

Predict, then check

Braking from 100 km/h on wet asphalt, holding peak grip stops a car in about 48 m. With the wheels locked it needs about:

Worked examples

Stopping distance with and without ABS · 100 km/h on wet asphalt: peak = 0.82 at 9% slip, locked-wheel = 0.637 (the tyre curve in the interactive), braking distance only
  1. = 27.78 m/s
  2. At peak grip: = 48.0 m
  3. Locked: = 61.7 m
  4. A real ABS cycles around the peak and the brakes take time to build up, so it lands between: the simulation gives 53.1 m

Answer: 48 m ideal, about 53 m with ABS, 62 m locked

Adaptive cruise time gap · 90 km/h, 1.8 s gap setting
  1. 25 m/s × 1.8 s = 45 m

Answer: 45 m to the car ahead

Fuel for an air flow · Air flow 10 g/s, stoichiometric petrol 14.7:1
  1. Fuel = 10/14.7 = 0.680 g/s

Answer: 0.68 g/s of fuel, set by injector pulse width

Keep going

Recommended reading

  • Mechatronics: Electronic Control Systems in Mechanical and Electrical Engineering, W. Bolton
  • Mechatronics: Integrated Mechanical Electronic Systems, K. P. Ramachandran, G. K. Vijayaraghavan and M. S. Balasundaram
  • Mechatronics System Design, D. Shetty and R. A. Kolk
  • Introduction to Mechatronics and Measurement Systems, D. G. Alciatore and M. B. Histand
  • Mechatronics: Electronics in Products and Processes, D. A. Bradley, N. C. Burd, D. Dawson and A. J. Loader
  • Modern Control Engineering, K. Ogata
  • Programmable Logic Controllers, W. Bolton
  • Introduction to Robotics: Analysis, Systems, Applications, S. B. Niku

How this book was made

Chapters follow the official syllabi listed above. Every interactive's formulas and every worked-example number were checked by script. Explanations, animations and examples are original to Skill-Lync. Topics informed by MIT OpenCourseWare 2.12 (Introduction to Robotics), CC BY-NC-SA. All explanations, animations and examples are original to Skill-Lync; MIT does not endorse this page.

From the exam to a core job

Talk to a counsellor.

Ask how embedded and controls engineers use mechatronics on real projects, and what the PG Program in Embedded Systems for EV Applications covers.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.