Embedded Systems in Mechatronics

Chapter 15
Advanced Platforms, Industry Trends and Integrated Design

Bachelor Program in Mechatronics Engineering
Embedded Systems in Mechatronics   •   Bachelor

Advanced Platforms, Industry Trends and Integrated Design

Introduction and Context

Embedded systems in mechatronics have evolved from isolated microcontrollers into heterogeneous computing platforms connected to sensors, actuators, industrial networks, cloud services, and autonomous decision-making software. A modern robotic arm, autonomous vehicle, smart machine tool, or medical device may combine real-time control, machine learning, high-speed communication, functional safety, cybersecurity, and mechanical design in one engineered system.

This chapter examines the platforms and design practices needed to develop such systems. It compares field-programmable gate arrays (FPGAs), systems-on-chip (SoCs), multicore processors, and RISC-V architectures; introduces ROS 2 and time-sensitive networking (TSN); discusses autonomous and low-power systems; and concludes with a disciplined process for integrating these technologies into a tested and professionally reviewed capstone system.

The central engineering principle is that platform selection must follow system requirements. Clock frequency alone does not determine suitability. Determinism, latency, throughput, energy, safety, tool support, software maturity, cost, and long-term maintainability are equally important.

Learning Objectives

By the end of this chapter, the reader should be able to:

  1. Compare FPGA, SoC, multicore, and RISC-V platforms for mechatronic applications.
  2. Allocate functions between hardware, firmware, real-time operating systems, and high-level software.
  3. Explain the roles of ROS 2, DDS, and TSN in distributed robotic systems.
  4. Analyse design trade-offs involving performance, determinism, energy, safety, security, and cost.
  5. Describe contemporary architectures for autonomous and low-power embedded systems.
  6. Plan, verify, document, and professionally review an integrated capstone system.

1. Heterogeneous Embedded Computing Platforms

1.1 FPGA-based systems

An FPGA contains configurable logic blocks, routing resources, memory blocks, clock-management circuits, and often high-speed transceivers. Instead of executing instructions sequentially on a fixed processor, an FPGA implements spatial hardware structures. Many operations can therefore occur concurrently.

FPGAs are especially appropriate when an application requires:

  • deterministic and very low latency;
  • high-rate signal processing;
  • custom communication protocols;
  • parallel image, radar, or motor-control computation;
  • hardware-in-the-loop interfaces; or
  • long-term hardware customisation without fabricating an application-specific integrated circuit.

Their disadvantages include complex hardware-description-language development, difficult debugging, substantial verification effort, and higher engineering cost. FPGA timing is expressed through constraints such as clock frequency, setup time, hold time, and path delay. A design that is logically correct but fails timing analysis is not a functioning design.

1.2 SoC and heterogeneous SoC platforms

A system-on-chip integrates several subsystems on one device. A typical embedded SoC may contain application processor cores, real-time processor cores, programmable logic, memory controllers, graphics or neural accelerators, timers, and communication peripherals.

A heterogeneous SoC permits functional partitioning. For example, Linux may run on application cores for perception and user interfaces, while a real-time core executes a motor-control loop. Programmable logic may perform encoder capture or pulse-width modulation with bounded latency.

The principal design challenge is not merely integration but communication between domains. Shared memory, interrupts, mailboxes, DMA, cache coherency, and device ownership must be specified. Poor partitioning can produce race conditions, unpredictable latency, or difficult fault diagnosis.

1.3 Multicore systems

Multicore processors provide multiple execution cores in one package. They may be symmetric, in which all cores execute the same operating system, or asymmetric, in which different cores run different software environments.

Parallelism may be task-level, data-level, or pipeline-level. However, adding cores does not guarantee proportional speed improvement. Synchronisation, memory bandwidth, cache misses, communication overhead, and serial sections limit the benefit. A useful upper-bound model is Amdahl’s law:

S(N) = 1 / [(1 − p) + p/N]

Here, S(N) is the speed-up using N parallel processing units, and p is the fraction of execution that can be parallelised. The remaining fraction, 1 − p, is serial. The model assumes fixed problem size and neglects communication and scheduling overhead; real systems usually achieve less speed-up.

For example, if 90% of a workload is parallelisable and four cores are used:

S(4) = 1 / [0.10 + 0.90/4] = 2.5

Thus, four cores provide an ideal speed-up of 2.5 rather than 4. This result shows why algorithm restructuring and memory-system analysis are important.

1.4 RISC-V

RISC-V is an open instruction-set architecture (ISA), not a single processor. Its base integer instruction set can be extended with standard or custom extensions. This openness supports educational processors, safety-oriented controllers, accelerators, and domain-specific designs.

Advantages include architectural transparency, customisation, avoidance of dependence on one proprietary ISA supplier, and a growing software ecosystem. Limitations include variation among implementations, immature support in some commercial toolchains, and the need to verify that a selected core and its extensions meet real-time, safety, and security requirements.

A RISC-V selection should document the exact core, privilege modes, interrupt controller, memory-protection facilities, floating-point support, debug interface, compiler version, and certified software components. “RISC-V compatible” is not sufficiently precise for a production specification.

1.5 Comparative platform selection

CriterionMicrocontrollerFPGAHeterogeneous SoCMulticore CPURISC-V implementation
Deterministic controlVery strongVery strongStrong with real-time domainVariableDepends on implementation
Parallel computationLimitedExcellentExcellent with acceleratorsGoodDepends on core/extensions
Software complexityLow to moderateModerate to highHighModerate to highVariable
AI and perceptionLimitedGood with accelerator designVery goodGoodIncreasingly available
Development costLowModerateModerate to highModerateVariable
Main riskLimited resourcesTiming/debug complexityPartitioning and integrationContention and schedulingEcosystem variation

A practical selection procedure is to define worst-case latency, sustained throughput, memory capacity, energy budget, safety integrity, communication needs, software constraints, and lifecycle requirements before comparing devices.

Heterogeneous embedded platform integration Application layer: autonomy, HMI, diagnostics Middleware: ROS 2 / DDS / service interfaces Application coresLinux or RTOS Real-time corescontrol and safety FPGA / acceleratorsparallel processing Sensors, actuators, memory, Ethernet, fieldbus and power
Layered architecture showing heterogeneous embedded platform integration
Figure: Layered architecture showing heterogeneous embedded platform integration

Figure: A heterogeneous embedded architecture separates high-level applications, middleware, real-time control, acceleration, and physical interfaces.

2. Real-Time and Multicore Design

A real-time system is judged by whether required events occur within specified deadlines, not simply by average execution speed. Hard real-time failure may create unacceptable safety consequences; soft real-time failure may degrade quality but remain recoverable.

Important measures include response time, jitter, deadline miss ratio, interrupt latency, execution-time variation, and resource utilisation. For a periodic task, the deadline is commonly equal to or less than its period, but this is a design choice rather than a universal rule.

A simplified utilisation measure for periodic tasks is:

U = ∑(Cᵢ/Tᵢ)

where Cᵢ is the worst-case execution time of task i, Tᵢ is its period, and U is processor utilisation. The equation assumes one processor, independent periodic tasks, and a specified scheduling model. It is not by itself a proof of schedulability, especially when blocking, interrupts, precedence, and shared resources exist.

Multicore real-time design requires attention to shared caches, memory buses, locking, priority inversion, and migration between cores. Common practices include assigning safety-critical tasks to dedicated cores, using bounded queues, avoiding unbounded dynamic allocation in control paths, measuring worst-case rather than average timing, and isolating noisy workloads.

3. ROS 2 and Robotic Software Architecture

ROS 2 is a middleware ecosystem for robotic software rather than an operating system. It commonly uses the Data Distribution Service (DDS) communication model. Nodes publish and subscribe to topics, provide services, or expose actions. Quality-of-service (QoS) policies specify properties such as reliability, durability, history depth, and deadline behaviour.

ROS 2 is valuable because it provides reusable interfaces, device drivers, simulation tools, visualisation, lifecycle management, and a distributed software model. It is not automatically deterministic or safety-certified. A robot requiring hard real-time control should normally keep the innermost control loop in a dedicated real-time component, microcontroller, FPGA, or real-time core. ROS 2 can supervise, configure, coordinate, and provide higher-level planning.

A sound architecture separates:

  • Device layer: sensor drivers, actuator interfaces, timestamping, calibration.
  • Control layer: state estimation, feedback control, safety limits.
  • Coordination layer: planning, task execution, fault management.
  • Application layer: human-machine interaction, logging, fleet or production integration.

Interfaces should define units, coordinate frames, timestamps, validity flags, failure behaviour, and ownership. A message containing a position without a reference frame or timestamp is not an adequate engineering interface.

4. Time-Sensitive Networking

Conventional Ethernet provides high bandwidth but does not inherently guarantee bounded delivery time. TSN is a family of IEEE standards that adds time synchronisation, traffic scheduling, shaping, redundancy, and resource management to Ethernet networks.

Relevant mechanisms include:

  • precise time synchronisation, commonly associated with IEEE 802.1AS;
  • scheduled traffic and time-aware shaping, associated with IEEE 802.1Qbv;
  • frame pre-emption, associated with IEEE 802.1Qbu and related specifications;
  • stream reservation and configuration mechanisms; and
  • redundancy approaches for improving availability.

TSN does not remove the need for engineering analysis. The designer must specify cycle time, maximum frame size, propagation delay, switch behaviour, synchronisation accuracy, queue configuration, and failure response. Network schedules should be validated using measurement or formal analysis.

The value of TSN in mechatronics is convergence: control traffic, diagnostics, machine vision, and supervisory data may share infrastructure while maintaining differentiated timing and priority. Nevertheless, safety isolation, cybersecurity, and independent fallback mechanisms may still be required.

5. Autonomous Systems

An autonomous mechatronic system repeatedly performs the following functions:

  1. perceive the environment and internal state;
  2. estimate state and uncertainty;
  3. interpret the situation;
  4. plan or select an action;
  5. execute the action;
  6. monitor results and faults.

Autonomy should be treated as a bounded capability, not an assumption of perfect intelligence. Requirements must specify operational design domain, permitted speeds, environmental conditions, detectable obstacles, degraded modes, and human override.

A typical mobile robot may combine cameras, lidar, inertial sensors, wheel encoders, and force sensors. Sensor fusion improves robustness but introduces calibration, time-synchronisation, uncertainty, and failure-correlation problems. Machine-learning perception should therefore be surrounded by conventional checks such as range validation, plausibility tests, watchdogs, geofencing, and safe-state transitions.

AI is useful for classification, prediction, anomaly detection, and planning assistance. It creates additional governance requirements: dataset traceability, bias assessment, robustness testing, explainability appropriate to the risk, protection against adversarial inputs, and monitoring for distribution shift. A learned component must have a defined fallback when confidence is low or the environment lies outside its validated domain.

6. Low-Power and Energy-Aware Computing

Energy-aware design is important in battery-powered robots, wireless sensors, wearable devices, and systems with thermal constraints. Average power is related to energy consumption by:

E = Pavg × t

where E is energy in joules, Pavg is average power in watts, and t is operating time in seconds. The equation assumes power is averaged over the interval. If power changes significantly, energy must instead be found by integration:

E = ∫₀ᵗ P(τ) dτ

Dynamic digital power is often approximated by:

Pdynamic ≈ α C V² f

where α is switching activity, C is effective switched capacitance, V is supply voltage, and f is switching frequency. This is an approximation; leakage, short-circuit current, regulators, memories, peripherals, and workloads also contribute to total power.

Low-power strategies include duty cycling, event-driven wake-up, sensor fusion at the edge, voltage and frequency scaling, accelerator use, data compression, efficient communication, and power-domain shutdown. These strategies can conflict with latency, accuracy, security, and reliability. For example, aggressive sleep modes may increase wake-up latency and complicate deadline analysis.

7. Evolving Toolchains and Engineering Practice

Modern embedded development commonly combines cross-compilers, build systems, package managers, hardware-description tools, debuggers, simulators, continuous integration, static analysis, test frameworks, containerised environments, and hardware-in-the-loop platforms.

Reproducibility is a professional requirement. A project should record compiler versions, board revisions, FPGA constraints, operating-system versions, middleware distributions, dependencies, configuration files, calibration data, and build commands. Source control should include reviewable commits and protected release branches.

A useful verification ladder is:

  1. unit tests for algorithms and drivers;
  2. static analysis and coding-rule checks;
  3. software-in-the-loop simulation;
  4. processor-in-the-loop tests;
  5. hardware-in-the-loop tests;
  6. subsystem integration tests;
  7. environmental, fault-injection, and acceptance tests.

Continuous integration should build the system, execute automated tests, report coverage or justified exclusions, check interfaces, and preserve artefacts. Coverage is evidence of exercised code, not proof that requirements are satisfied.

8. Integrated Design Methodology

An integrated capstone system should be developed from requirements rather than from available boards. Each requirement should have an identifier, rationale, verification method, acceptance criterion, owner, and status. Examples include maximum stopping distance, control-loop period, communication loss response, battery endurance, noise immunity, and allowable temperature.

A functional architecture maps requirements to functions; a logical architecture maps functions to software and hardware components; a physical architecture maps components to processors, networks, sensors, actuators, and enclosures. Traceability links each requirement to design elements and verification evidence.

Interface control documents should specify:

  • signal name and physical meaning;
  • units and scaling;
  • data type and range;
  • update rate and timing tolerance;
  • timestamp and coordinate frame;
  • valid, invalid, and degraded states;
  • communication ownership;
  • startup and shutdown behaviour; and
  • cybersecurity and access requirements.

Safety analysis should identify hazards, causes, effects, detection, mitigation, and residual risk. Depending on the application, relevant practices may be informed by standards such as IEC 61508, ISO 13849, ISO 10218, ISO 26262, IEC 62443, or sector-specific regulations. Standards must be selected according to the domain; citing a standard does not itself establish compliance.

Professional review

A design review should include mechanical, electrical, software, controls, safety, cybersecurity, manufacturing, and user perspectives. Reviewers should challenge assumptions, inspect test evidence, examine failure modes, and verify that performance claims are reproducible. A professional review is not a ceremonial presentation: it is a controlled decision about whether evidence supports progression.

9. Illustrative Case: Autonomous Warehouse Mobile Robot

Background

This illustrative case concerns a battery-powered mobile robot transporting bins in a structured warehouse. It must navigate marked aisles, avoid people, communicate with a fleet server, and stop safely when a protective sensor detects danger.

Problem

A single high-performance computer initially performed perception, planning, motor control, logging, and wireless communication. Demonstrations were successful, but motor-loop jitter increased when cameras were active, and communication delays caused inconsistent fleet updates. The design lacked a documented degraded mode.

Analysis

The requirements team identified a 1 kHz motor-control loop, obstacle-detection latency below a specified limit, bounded stopping response, eight hours of target operation, and safe behaviour during loss of wireless communication. Average latency measurements were rejected as insufficient; worst-case timing and fault response were required.

Approach and solution

The revised architecture used:

  • a real-time microcontroller for encoder capture, current control, watchdogs, and emergency stopping;
  • an application processor running Linux and ROS 2 for mapping, perception, planning, and diagnostics;
  • a hardware accelerator for selected image-processing operations;
  • Ethernet with TSN-capable infrastructure for time-sensitive internal communication;
  • a battery-management interface with current, voltage, temperature, and state-of-charge monitoring; and
  • a safety state machine defining normal, reduced-speed, stop, recovery, and maintenance modes.

The ROS 2 interface included timestamps, frame identifiers, validity flags, and explicit QoS settings. The control processor did not depend on Linux scheduling for safe stopping. Loss of application communication caused the controller to enter a reduced-speed or stop state according to the hazard analysis.

Verification and outcome

Testing included processor-in-the-loop simulation, recorded sensor replay, hardware-in-the-loop fault injection, network-load testing, battery-discharge testing, and repeated emergency-stop trials. The design review required evidence for every safety-related requirement and rejected a perception model that had not been tested under low light and partial obstruction.

The architectural change reduced interference between perception and control, made failure behaviour explicit, and improved maintainability. It also increased hardware cost and integration effort. The case therefore demonstrates that heterogeneous design is not automatically superior; its value arises when partitioning is justified by requirements and verified by evidence.

Learning points

  1. Hard real-time functions should not depend on best-effort application scheduling.
  2. Middleware QoS must be designed rather than left at defaults.
  3. Autonomy requires defined boundaries and degraded modes.
  4. Energy, safety, timing, and maintainability must be considered together.
  5. A successful demonstration is not equivalent to validated engineering performance.

10. Challenges, Limitations, and Governance

Advanced platforms increase capability but also increase integration risk. Common risks include vendor lock-in, obsolete toolchains, undocumented binary dependencies, inadequate cybersecurity updates, timing interference, thermal limits, data privacy, and unclear responsibility when autonomous decisions cause harm.

Security should begin with threat modelling. Assets, trust boundaries, attack surfaces, likely threats, mitigations, and residual risks should be documented. Secure boot, signed updates, least privilege, network segmentation, credential management, logging, vulnerability monitoring, and recovery procedures are practical controls. Security can conflict with latency and energy, so its cost must be included in architecture decisions.

Ethical design requires attention to human safety, surveillance, accessibility, environmental impact, employment effects, and accountability. Systems that collect images or location data should minimise collection, control access, define retention, and comply with applicable law. Designers should not claim autonomy, safety, or AI reliability beyond the evidence.

Best-Practice Checklist

  • Begin with measurable system requirements.
  • Select platforms using worst-case timing, energy, safety, and lifecycle criteria.
  • Separate hard real-time control from non-critical computation.
  • Specify every software and hardware interface.
  • Use timestamps, units, coordinate frames, and validity states consistently.
  • Test under overload, faults, temperature, vibration, and communication loss.
  • Maintain traceability from requirement to test evidence.
  • Automate builds and preserve reproducible toolchain configurations.
  • Review cybersecurity, privacy, safety, and ethical impacts.
  • Obtain independent technical review before release.

Chapter Summary

Advanced embedded mechatronic systems combine processors, programmable logic, real-time controllers, networks, sensors, actuators, and high-level software. FPGAs provide deterministic parallel hardware; SoCs enable heterogeneous partitioning; multicore systems provide parallel execution but suffer from contention and serial limits; and RISC-V offers an open ISA whose suitability depends on the exact implementation and ecosystem.

ROS 2 and DDS support modular robotic software, but they do not automatically guarantee hard real-time behaviour. TSN can provide more predictable Ethernet communication when time synchronisation, scheduling, configuration, and failure handling are engineered carefully. Autonomous systems require perception, estimation, planning, execution, monitoring, bounded operating domains, and safe degraded modes. Low-power design requires analysis of energy, duty cycle, voltage, workload, and thermal constraints.

The integrated design process is requirement-driven, traceable, testable, secure, and professionally reviewed. The strongest capstone systems do not merely demonstrate functionality; they provide evidence that timing, safety, energy, reliability, maintainability, and ethical obligations have been addressed.

Key Terms

FPGA: Reconfigurable digital hardware that implements user-defined logic structures.

SoC: System-on-chip integrating processors, memory interfaces, peripherals, and sometimes programmable logic.

Heterogeneous computing: Use of different processing elements for specialised functions.

Multicore processor: A device containing multiple processor cores.

RISC-V: An open instruction-set architecture with extensible instruction sets.

Determinism: Predictability of system behaviour, especially timing.

Jitter: Variation in the timing of an event from its intended occurrence.

Worst-case execution time: Upper-bound execution time used for real-time analysis.

ROS 2: A distributed robotics software framework and ecosystem.

DDS: Data Distribution Service middleware commonly used by ROS 2.

Quality of service: Communication policies governing reliability, history, deadlines, and durability.

TSN: Time-sensitive networking technologies for predictable Ethernet communication.

Autonomous system: A system that senses, decides, and acts with limited direct human control.

Edge computing: Processing data near its source rather than sending all data to a remote system.

Duty cycling: Alternating active and low-power states to reduce energy consumption.

Traceability: Documented linkage among requirements, design elements, and verification evidence.

Fault injection: Deliberately introducing faults to evaluate system response.

Functional safety: Reduction of risk arising from hazardous system behaviour through safety-related functions.

Threat modelling: Structured identification of assets, threats, vulnerabilities, and mitigations.

Review Questions

Short Answer Questions

  1. What distinguishes an FPGA from a conventional sequential processor?
  2. Why does adding processor cores fail to produce proportional speed-up in many systems?
  3. What role does QoS play in ROS 2 communication?
  4. Why is a hard real-time control loop often separated from Linux application software?
  5. State two methods for reducing energy consumption in an embedded system.

Long Answer Questions

  1. Compare FPGA, heterogeneous SoC, multicore CPU, and RISC-V options for a robotic vision-and-control application.
  2. Explain how TSN can improve industrial communication and identify the engineering information required to validate it.
  3. Describe a complete ROS 2 architecture for a mobile robot, including device, control, coordination, and application layers.
  4. Discuss how safety, cybersecurity, privacy, and ethical responsibility influence autonomous-system design.
  5. Develop a verification strategy for an integrated mechatronic capstone system from unit testing through acceptance testing.

Analytical / Application Questions

  1. A workload is 80% parallelisable. Using Amdahl’s law, calculate the ideal speed-up on eight cores and explain why the practical speed-up may be lower.
  2. Design a platform partition for a battery-powered robot requiring a 1 kHz current loop, machine vision, wireless communication, and safe stopping during software failure. Justify each allocation.
  3. Construct a requirements-and-test traceability plan for a TSN-connected autonomous machine. Include timing, fault, security, and energy requirements.

Multiple Choice Questions with Answers

Question 1

Which platform is most directly suited to implementing highly parallel, deterministic signal-processing pipelines?

A. FPGA

B. Single-core desktop application

C. Unmanaged cloud database

D. Mechanical relay panel

Correct Answer: A. FPGA

Question 2

Using Amdahl’s law, what ideal speed-up results when 90% of a workload is parallelised over four cores?

A. 1.90

B. 2.50

C. 3.60

D. 4.00

Correct Answer: B. 2.50

Question 3

Which statement best describes RISC-V?

A. A single commercial microcontroller model

B. An open instruction-set architecture

C. A robotics middleware package

D. A time-synchronised Ethernet cable

Correct Answer: B. An open instruction-set architecture

Question 4

What is the principal purpose of QoS policies in ROS 2 communication?

A. To define communication behaviour such as reliability and deadlines

B. To replace all real-time controllers

C. To increase battery voltage automatically

D. To compile FPGA hardware

Correct Answer: A. To define communication behaviour such as reliability and deadlines

Question 5

Which function should generally remain independent of best-effort Linux scheduling when safe stopping is required?

A. Emergency stopping and innermost safety control

B. User-interface colour selection

C. Historical data compression

D. Fleet dashboard rendering

Correct Answer: A. Emergency stopping and innermost safety control

Question 6

What does TSN add to conventional Ethernet?

A. Only wireless connectivity

B. Mechanisms for synchronisation and scheduled traffic

C. A replacement for all sensors

D. An instruction-set architecture

Correct Answer: B. Mechanisms for synchronisation and scheduled traffic

Question 7

If average power is 10 W and operating time is 3,600 s, what energy is consumed?

A. 36 J

B. 360 J

C. 3,600 J

D. 36,000 J

Correct Answer: D. 36,000 J

Question 8

Which statement about machine-learning perception in an autonomous system is most appropriate?

A. It eliminates the need for fault handling

B. It should operate within a validated domain and have fallback behaviour

C. It guarantees correct decisions in unseen environments

D. It makes timestamping unnecessary

Correct Answer: B. It should operate within a validated domain and have fallback behaviour

Question 9

What is the main purpose of requirements traceability?

A. To link requirements to design and verification evidence

B. To increase processor clock frequency

C. To remove the need for testing

D. To select a programming language automatically

Correct Answer: A. To link requirements to design and verification evidence

Question 10

Which item is an example of a reproducible-toolchain practice?

A. Recording compiler and dependency versions

B. Changing libraries manually before every build

C. Using undocumented binary files

D. Testing only the final demonstration

Correct Answer: A. Recording compiler and dependency versions

Embedded Systems in Mechatronics
Chapter 15 of 15