ThisCalculator

Everyday

Physical AI & Embedded Systems: Design Changes

Updated · Standard formula, shown below

Runtime on battery 4.17 h
Frames per second
66.7 fps
Result
Inference time per frame
15 ms
You entered
Battery capacity
500 Wh
You entered

Physical AI systems—robots, autonomous vehicles, and smart industrial equipment that perceive and act in the real world—demand a fundamentally different engineering approach than conventional embedded systems. To make them work safely and reliably, engineers must shift from deterministic, single-purpose firmware to a layered architecture that integrates machine learning, real-time control, and continuous safety validation. This article explains the key design changes required, from hardware selection to power and thermal management, and answers common questions about the transition.

Formula

The calculator above estimates two key metrics for a physical AI device: runtime on battery and inference throughput. The runtime formula is simply battery capacity (in watt-hours) divided by average power draw (in watts):

Runtime (hours) = Battery Capacity (Wh) / Average Power Draw (W)

The inference throughput (frames per second) is the reciprocal of the inference time per frame, converted to seconds:

Frames per Second = 1000 / Inference Time (ms)

Both are essential for balancing performance and energy budgets in physical AI systems.

Worked Example

Using the default values from the calculator: an inference time of 15 ms per frame, a battery capacity of 500 Wh, and an average power draw of 120 W.

First, compute the runtime:

Runtime = 500 Wh / 120 W = 4.166… hours, which rounds to 4.17 hours.

Next, compute the frames per second:

Frames per second = 1000 / 15 ms = 66.666… fps, which rounds to 66.7 fps.

These results show that the device can run for about 4 hours and process about 67 frames per second, assuming the power draw is constant and the battery is fully used.

Why Physical AI Is Not Just Another Embedded System

Traditional embedded systems follow a predictable pattern: sensors feed data to a microcontroller running fixed logic, which drives actuators or displays. The code is deterministic, the timing is well-understood, and the system rarely changes its behavior. Physical AI breaks this model. It uses machine learning models that are probabilistic, computationally heavy, and often need to be updated after deployment. The hardware must support both real-time control and flexible neural network inference, often on the same device.

This shift affects every layer of design: the processor architecture, memory hierarchy, power delivery, thermal management, and even the development toolchain. An engineer cannot simply add a GPU to a traditional MCU board and call it done. The entire system must be architected around the needs of the AI model and the physical environment it operates in.

Hardware Architecture: From MCU to Heterogeneous Computing

Most physical AI devices use a heterogeneous computing platform, combining multiple processing units:

  • Microcontroller (MCU) for low-level sensor reading, actuator control, and safety-critical functions that need deterministic timing.
  • CPU (Application Processor) for running the operating system, communication stacks, and high-level decision logic.
  • GPU or Neural Processing Unit (NPU) for accelerating the neural network inference that powers perception and planning.
  • FPGA for custom, low-latency signal processing or interface bridging when off-the-shelf chips don’t meet requirements.

The key design challenge is partitioning tasks across these units. For example, a robot arm might use an MCU for joint control at 1 kHz, a CPU for trajectory planning, and a GPU for object detection from camera feeds. Engineers must decide which parts of the AI model run on which unit, balancing latency, power, and cost. This is not a one-time decision; the partition may change as models are optimized or hardware evolves.

Software and Firmware: Real-Time Meets Machine Learning

Traditional embedded software is typically a single loop or a set of interrupt handlers. Physical AI requires a more complex software stack:

  • Real-Time Operating System (RTOS) or a real-time Linux variant to manage tasks with strict deadlines.
  • AI inference engine (e.g., TensorFlow Lite, PyTorch Mobile, or vendor-specific runtimes) to execute neural networks efficiently.
  • Middleware for communication between components, such as ROS 2 for robotics or custom message-passing systems.
  • Safety monitor that runs independently of the AI to check for anomalies and trigger failsafes.

A common mistake is to treat the AI model as just another function call. In reality, inference can take tens of milliseconds and is not deterministic in execution time. Engineers must design the system to handle variable inference times without missing control deadlines. One approach is to run the AI on a separate core and use a time-budgeted scheduler, while the safety-critical control loop runs on a dedicated MCU.

Power and Thermal Management

AI inference is power-hungry. A typical embedded MCU draws milliwatts, but a GPU or NPU can draw tens of watts. This creates two challenges: battery life and heat dissipation. Engineers must design the power delivery network to handle peak currents without voltage drops, and the thermal system to keep junction temperatures within safe limits.

For battery-powered devices, energy efficiency is critical. Techniques include:

  • Using low-power AI accelerators that are optimized for inference.
  • Implementing dynamic voltage and frequency scaling (DVFS) to match performance to workload.
  • Power gating unused peripherals and cores.
  • Designing the AI model to run at a lower precision (e.g., INT8) to reduce both computation and memory bandwidth.

Thermal management may involve heat sinks, fans, or even passive cooling strategies like using the device chassis. Engineers must simulate thermal behavior under worst-case workloads, not just average use, because sustained AI inference can generate significant heat.

Safety and Reliability: The New Imperative

Physical AI systems interact with the physical world, so failures can cause injury or property damage. This requires a safety architecture that goes beyond traditional embedded reliability. Key principles include:

  • Functional safety standards like ISO 26262 for automotive or ISO 13849 for machinery, which define processes for risk assessment and safety validation.
  • Redundant sensing and processing for critical functions, so that a single point of failure does not lead to unsafe behavior.
  • Safe states that the system can enter when an anomaly is detected, such as stopping a robot arm or pulling a vehicle to the side of the road.
  • Continuous monitoring of the AI model’s confidence and input data distribution to detect when the model is operating outside its training domain.

Engineers must also plan for over-the-air updates to improve the AI model, but these updates must be validated to ensure they do not introduce new safety risks. This is a significant departure from traditional embedded systems that rarely change after deployment.

Common Design Mistakes and How to Avoid Them

Many teams new to physical AI make the same mistakes:

  • Underestimating the power budget – AI inference can draw far more current than expected, leading to brownouts. Always measure actual current draw with the AI model running.
  • Ignoring thermal throttling – If the chip overheats, it will reduce performance, causing missed deadlines. Design for worst-case thermal load.
  • Using a single processor for everything – This can lead to timing conflicts between AI and control tasks. Partition tasks onto appropriate cores.
  • Not considering model updateability – The AI model will need updates; design the storage and bootloader to support this from day one.
  • Forgetting about sensor calibration – Physical AI relies on accurate sensor data, but sensors drift over time. Include calibration routines and health checks.

Avoiding these pitfalls requires a systems-level approach, where hardware, software, and AI model are co-designed rather than developed in isolation.

Frequently Asked Questions

Can I use a traditional microcontroller for physical AI?

For very simple tasks like keyword spotting or basic anomaly detection, yes, some MCUs have built-in neural accelerators. However, for complex perception (e.g., object detection in images) or planning, you will need a more powerful processor like an application processor with a GPU or NPU. The choice depends on the model’s computational requirements and latency constraints.

What is the difference between an NPU and a GPU for AI inference?

Both are designed for parallel computation, but NPUs are specifically optimized for neural network operations like convolutions and matrix multiplications. They often have higher efficiency (TOPS per watt) than GPUs, but GPUs are more flexible and can handle a wider range of workloads. For a fixed model, an NPU is usually the better choice for power-constrained devices.

How do I ensure real-time performance when AI inference time varies?

One approach is to use a two-tier system: a fast, deterministic controller for safety-critical tasks, and a slower, AI-based planner that provides setpoints. The controller can run at a fixed rate, while the planner runs asynchronously. Another is to use time-triggered scheduling and allocate a worst-case execution time for inference, even if it sometimes finishes early.

What are the main safety standards for physical AI systems?

The most relevant are ISO 26262 for road vehicles, ISO 13849 for machinery, and IEC 61508 for general industrial systems. These standards provide a framework for risk assessment, safety integrity levels, and validation. They do not specifically cover AI, but they are being updated to address machine learning components. Following them is often required for market access in regulated industries.

How do I choose between running AI on the edge versus in the cloud?

Edge processing is essential when low latency is required (e.g., real-time obstacle avoidance) or when connectivity is unreliable. Cloud processing can handle larger models and easier updates, but introduces latency and privacy concerns. Many systems use a hybrid approach: edge for time-critical tasks, cloud for training and occasional heavy analysis.

What does ‘model quantization’ mean and why is it important?

Quantization reduces the precision of the numbers used in a neural network (e.g., from 32-bit floats to 8-bit integers). This reduces memory usage and can speed up inference on hardware that supports integer operations. It is important for embedded systems because it allows larger models to fit on limited hardware and reduces power consumption, at the cost of a small accuracy loss.

Related

Formula used
in t | Inference time per frame | ms | 15 | 0
in b | Battery capacity | Wh | 500 | 0
in p | Average power draw | W | 120 | 0
out runtime | Runtime on battery | h | b / p | 2
out fps | Frames per second | fps | 1000 / t | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.