Mechanical Engineering‹⌂ 0:00 studied

Module 17 · 9 min read · Free chapter

Mechatronics: sensors, actuators, controllers, PLCs and robotics

In short

Mechatronics joins mechanical systems with electronics, control and software in a loop of sensor, controller and actuator. LVDTs, encoders, strain gauges and thermocouples sense the process, while stepper, servo, hydraulic and pneumatic actuators move it. PID control and PLC ladder logic make decisions, and industrial robots need six degrees of freedom for full position and orientation.

See it in 3DA six-axis robot arm picking a part: vision, inverse kinematics and grip. Turn it, cut it open, or just press Watch.
What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: machines that sense, think and act

A washing machine senses the load and water level, decides how long to wash, and drives a motor at the right speed. A car's anti-lock brakes read wheel speed many times a second and pulse the brake pressure. A CNC lathe, a packaging line and a camera's autofocus all follow the same pattern.

This blend of mechanical design, electronics, control and software is called mechatronics. It grew from CNC machines into almost every modern product. Microcontrollers are covered in detail in 8051 microcontroller, timers, serial port and peripheral interfacing, instruments and transducers in Electronic instruments and transducers: oscilloscopes, analysers, sensors and data acquisition, and control system modelling in Feedback, transfer functions, block diagrams and signal-flow graphs; here we look at them from the mechanical engineer's side.

This chapter covers the structure of a mechatronic system, sensors and signal conditioning, actuators, controllers and PLCs, and industrial robotics.

Why it matters. ESE Mechanical Paper II asks sensors, actuators, PLC ladder logic, PID control and robot configurations. State AE papers ask automation and CIM basics.

Sensors and signal conditioning

The mechatronic loop. A sensor measures a physical quantity; signal conditioning amplifies, filters and converts it (analog to digital, ADC); the controller compares it with the desired value and decides; a driver (digital to analog converter, power amplifier, relay) powers the actuator, which acts on the mechanical process. Feedback closes the loop.

Sensor characteristics. Range, sensitivity, resolution, accuracy, repeatability, linearity, hysteresis, response time and drift. A sensor is chosen to match the quantity, environment and required speed.

Displacement and position.

  • Potentiometer: a wiper on a resistive track gives voltage proportional to position; simple but wears.
  • LVDT (linear variable differential transformer): a moving core changes coupling between a primary and two secondaries; output is zero at the centre and its phase shows direction. Contactless, very fine resolution and long life.
  • Optical encoders: a disc with N lines and a light source; incremental encoders count pulses, giving resolution 360°N\dfrac{360°}{N}; absolute encoders give a unique binary or Gray code for each position.
  • Capacitive, inductive and Hall-effect proximity sensors detect nearby objects without contact.

Force, strain and pressure.

  • Strain gauge: resistance changes with strain; gauge factor G=ΔR/RεG = \dfrac{\Delta R / R}{\varepsilon}, about 2 for metal foil. Used in a Wheatstone bridge to measure small changes, as in load cells.
  • Piezoelectric sensors: generate charge under dynamic force; used for vibration and impact, not static loads.

Temperature.

  • Thermocouple: two dissimilar metals produce a voltage (Seebeck effect); wide range, needs cold junction compensation. Type K (chromel-alumel) is common.
  • RTD: platinum resistance rises almost linearly with temperature; accurate and stable.
  • Thermistor: semiconductor with large, non-linear resistance change; very sensitive over a narrow range.

Speed and flow. Tachogenerators give voltage proportional to speed; encoders count pulses; flow is measured by turbine, electromagnetic or ultrasonic meters.

A worked example. A strain gauge of 120 Ω with gauge factor 2.0 is strained by 500 microstrain. Then ΔR=GεR=2.0×500×10−6×120=0.12\Delta R = G \varepsilon R = 2.0 \times 500 \times 10^{-6} \times 120 = 0.12 Ω, a tiny change that needs a bridge and amplifier.

Actuators: electric, hydraulic and pneumatic

Electric actuators.

  • DC motors: speed roughly proportional to voltage, torque to current; speed controlled by PWM (pulse width modulation). Brushless DC motors avoid brush wear.
  • Stepper motors: move in fixed steps for each pulse, so position is known without feedback (open loop). Step angle is 360 degrees divided by steps per revolution; a 200-step motor moves 1.8 degrees per step. They can lose steps under overload and resonate at some speeds.
  • Servo motors: DC or AC motors with an encoder or resolver in a closed loop, giving precise, fast position and speed control; used in CNC axes and robots.
  • AC induction motors with variable frequency drives for conveyors, pumps and fans.
  • Solenoids and relays for short linear strokes and switching.

Fluid power actuators.

  • Hydraulic cylinders and motors: oil at high pressure (often 100 to 300 bar) gives very large forces and stiff, smooth motion; used in presses, earthmovers and aircraft controls. Force is pressure times piston area.
  • Pneumatic cylinders: compressed air at about 6 bar; cheap, clean and fast but compressible, so less precise. Used in pick-and-place, clamping and packaging.
  • Directional control valves, named by ports and positions such as 5/2 (five ports, two positions), operated by solenoid, lever or pilot air; flow control and pressure relief valves complete the circuit.

A worked example. A stepper motor with 1.8 degrees per step drives a lead screw of pitch 5 mm. Each step moves the table by 1.8360×5=0.025\dfrac{1.8}{360} \times 5 = 0.025 mm. Moving 30 mm needs 300.025=1200\dfrac{30}{0.025} = 1200 pulses.

Controllers, PID and PLCs

Open and closed loop. An open-loop system acts without checking the result, like a toaster on a timer. A closed-loop system measures the output and corrects the error between set point and output, like an oven thermostat or a cruise control.

Control actions.

  • On-off (two-position): simple, used in thermostats; output cycles around the set point with a dead band.
  • Proportional (P): output =Kpe= K_p e; faster response but leaves a steady-state error (offset).
  • Integral (I): output proportional to accumulated error; removes steady-state error but can cause overshoot and slow oscillation.
  • Derivative (D): output proportional to rate of change of error; adds damping and anticipates, but amplifies noise.
  • PID combines all three:
u(t)=Kpe(t)+Ki∫0te dt+Kddedtu(t) = K_p e(t) + K_i \int_0^t e \, dt + K_d \frac{de}{dt}

Tuning methods such as Ziegler-Nichols set the three gains. Response is judged by rise time, overshoot, settling time and steady-state error.

Microcontrollers. A single chip with CPU, memory, timers, ADC and input-output ports, programmed in C or assembly; ideal for compact products like appliances and drones.

Programmable logic controllers (PLCs). Rugged industrial computers for machine and process control.

  • Scan cycle: read all inputs, execute the program, update all outputs, then repeat, typically every few milliseconds.
  • Ladder logic: rungs between two power rails with contacts (normally open, normally closed) and coils, like relay circuits. Series contacts make AND, parallel contacts make OR.
  • Latching (seal-in) circuit: a start push button energises a coil, and a contact of that coil in parallel with the button keeps it on until the stop button breaks the rung. This is the classic motor start-stop circuit.
  • Timers (on-delay, off-delay) and counters complete most sequences; SCADA systems supervise many PLCs.

Industrial robotics

Anatomy of a robot. A base, a chain of links joined by joints (revolute or prismatic), a wrist, and an end effector (gripper, welding torch, spray gun, vacuum cup). Each independent joint motion is a degree of freedom (DOF). Six DOF give full position (three) and orientation (three) in space.

Robot configurations.

  • Cartesian (gantry): three prismatic joints; rectangular work envelope; simple control, used for pick-and-place and 3D printers.
  • Cylindrical: one revolute and two prismatic joints; cylindrical envelope.
  • Spherical (polar): two revolute and one prismatic; spherical envelope.
  • Articulated (anthropomorphic): all revolute, like a human arm; large, flexible envelope; used for welding and painting.
  • SCARA: two parallel revolute joints and a vertical prismatic; stiff vertically, compliant sideways; ideal for fast assembly.

Performance terms.

  • Work envelope: the space the end effector can reach.
  • Payload: the maximum load handled.
  • Accuracy: how close the robot gets to a commanded point.
  • Repeatability: how closely it returns to the same point again and again; usually much better than accuracy.
  • Resolution: the smallest increment of motion.

Kinematics. Forward kinematics finds the end-effector position from joint angles. For a planar two-link arm with lengths l1l_1, l2l_2 and angles θ1\theta_1, θ2\theta_2:

x=l1cos⁡θ1+l2cos⁡(θ1+θ2),y=l1sin⁡θ1+l2sin⁡(θ1+θ2)x = l_1 \cos\theta_1 + l_2 \cos(\theta_1 + \theta_2), \qquad y = l_1 \sin\theta_1 + l_2 \sin(\theta_1 + \theta_2)

Inverse kinematics finds the joint angles for a desired position; it may have several solutions (elbow up or elbow down) or none outside the envelope.

Programming and uses. Robots are taught by a teach pendant (lead-through) or programmed off-line with simulation. Typical uses are spot and arc welding, painting, machine loading, palletising, assembly and inspection with machine vision. Collaborative robots (cobots) work safely beside people with force limiting.

Descriptive lens: how this topic is asked in written papers

Written papers test this chapter in four ways:

  1. Explain: the elements of a mechatronic system with a block diagram.
  2. Describe: working of an LVDT, encoder, strain gauge, stepper motor or servo.
  3. Draw: a ladder diagram for a start-stop or sequence circuit, or explain P, I and D actions.
  4. Compare: robot configurations, and find a two-link arm's position.

Practice questions (our own, not previous-year questions).

  1. Explain the working of an LVDT with a sketch and state its advantages. (10 marks)
  2. A stepper motor has a step angle of 0.9 degree and drives a lead screw of 4 mm pitch. Find the table movement per step and the pulses needed to move 18 mm. (5 marks)
  3. Draw a ladder diagram for starting and stopping a motor with a latching contact and explain it. (10 marks)

Answer plan for question 2.

  • Movement per step =0.9360×4=0.01= \dfrac{0.9}{360} \times 4 = 0.01 mm.
  • Pulses =180.01=1800= \dfrac{18}{0.01} = 1800.

Quick revision

  • Loop: sensor, signal conditioning, controller, driver, actuator, process, feedback.
  • LVDT contactless; encoder resolution 360°N\dfrac{360°}{N}; gauge factor G=ΔR/RεG = \dfrac{\Delta R / R}{\varepsilon}, about 2.
  • Thermocouple Seebeck; RTD platinum, linear; thermistor sensitive, non-linear; piezo dynamic only.
  • Stepper open loop, 200 steps give 1.8 degrees; servo closed loop; hydraulic force, pneumatic speed.
  • P leaves offset; I removes offset; D adds damping.
  • PLC scan: inputs, program, outputs; series AND, parallel OR; latching start-stop.
  • Robots: Cartesian, cylindrical, spherical, articulated, SCARA; six DOF; repeatability better than accuracy.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 16 answered

  1. The correct order of blocks in a closed-loop mechatronic system is:

  2. An LVDT is used to measure:

  3. An incremental optical encoder with 500 lines per revolution has a resolution of:

  4. A 120 Ω strain gauge with gauge factor 2 is strained by 500 microstrain. The change in resistance is:

  5. Piezoelectric sensors are not suitable for measuring:

  6. A thermocouple works on the:

  7. A stepper motor with 200 steps per revolution has a step angle of:

  8. A 1.8 degree stepper drives a lead screw of 5 mm pitch. The table movement per step is:

  9. For very large forces with smooth, stiff motion, the preferred actuator is:

  10. In a PID controller, the action that removes steady-state error is:

  11. Derivative control action mainly:

  12. In PLC ladder logic, two normally open contacts in series represent:

  13. The PLC scan cycle consists of:

  14. The number of degrees of freedom needed for a robot to reach any position with any orientation in space is:

  15. A SCARA robot is best suited for:

  16. The ability of a robot to return to the same point repeatedly is called:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is the difference between a stepper motor and a servo motor?

A stepper moves in fixed steps per pulse and runs open loop; a servo uses feedback from an encoder in a closed loop for precise, fast control.

What does each term in a PID controller do?

Proportional reacts to present error, integral removes steady-state error, and derivative adds damping by reacting to how fast the error changes.

What is ladder logic in a PLC?

A graphical program of rungs with contacts and coils between two rails, where series contacts act as AND and parallel contacts as OR.

More in this module: Engineering drawing and mechatronics

Official sources

Facts in this chapter were checked against these official sources.

  1. UPSC Engineering Services Examination syllabus, Mechanical Engineering Paper II
  2. NPTEL Mechatronics (IIT Roorkee, 112107298)