AI for Industrial Robots: Architecture, Hardware, and First Applications of Your Own
What you are actually operating after the build
In the end, no freely learning robot is moving through the cell. You are operating a camera, a separate edge computer, and an existing robot controller. The camera detects a defined part or quality state. The edge computer calculates the result, confidence, and validity time. The controller executes only a preprogrammed motion routine. If the camera, model, network, or heartbeat fails, motion is not enabled.
The target setup can be summarized in one sentence: AI detects, the controller moves, safety decides. That is exactly what makes sense for a first application of your own. I would start with pose detection and pick enablement, not autonomous path planning. For example, the model provides the object class and a limited offset. The robot then moves to a known approach point and performs a known gripping motion.
“AI for industrial robots” means in this context: AI expands the perception, classification, or parameter selection of a robot cell. It replaces neither the robot controller nor motion control, and certainly not the safety function. The model must never determine the emergency stop, protective space, safe speed, safety enable, or unchecked axis commands.
Before the first cable, I set three limits. First, the action space remains finite. The model may provide only the class, offset, and job status. Second, an independent safety chain decides on the guard door, emergency stop, and safe states. Third, every error becomes REJECT, TIMEOUT, or FAULT, never an estimated movement.
The technical implementation builds on the practical guide to reproducible AI robotics. The data basis, frozen test dataset, clear development limits, and measurable acceptance criteria belong together. Therefore, a publication must document the robot actually built, the software versions used, measured cycle times, real error patterns, and photos of the wiring. I do not enter unmeasured values as project results.
The first use case
A suitable part is one that lies in a defined work area and can be picked up with a specified gripper. The AI may decide: part present, class A or B, offset within a window. It may not decide: free path, collision avoidance, or overwriting the robot program.
Reference architecture: AI beside the controller, not in its safety chain
The cell consists of five components:
[Camera / Trigger]
|
v
[Edge computer: preprocessing, model, validation]
|
| Process data, job status, heartbeat
v
[PLC / Cell logic] ---- [Robot controller: kinematics, interpolation, job]
|
v
[Safety controller and certified components]
|
+-- Emergency stop, guard door, safe speed, protective space
Display More
The camera supplies images and, preferably, a hardware trigger. The edge computer handles distortion correction, scaling, inference, and result validation. The PLC or cell logic controls the sequence. The robot controller handles kinematics, interpolation, and manufacturer-specific real-time functions. The safety controller operates with certified components and remains logically independent of the model.
The handover contract must be defined before implementation:
The controller accepts the result only if the class, offset, and confidence are valid, the timestamp is still within the window, and the heartbeat is advancing. An offset outside the work volume, an incorrect model version, or a timeout leads to an already programmed error path. The robot then remains stopped or executes a defined, safe retreat routine. The permissible response must be specified by the system and safety assessment.
For a small number of states, digital I/O or a fieldbus is sufficient. Process values and diagnostics are better handled through a manufacturer-specific robot API. OPC UA is suitable for standardized system and state data, but it is not a substitute for a safety interface. Even a fast robot channel does not turn an unvalidated model value into a safe signal. An RTDE client can exchange process data with a robot controller, but it does not automatically handle deterministic real-time logic or the safety assessment.
Documentation should include photos of the 24-volt power supply, fuse, DIN-rail mounting, Ethernet segments, camera connection, and shielding. In the published setup, these photos should show the actual wiring, not merely a block diagram.
The safety assessment is based on ISO 10218-1:2025 and ISO 10218-2:2025. This does not replace a risk assessment, conformity assessment, or professional integration.
Which AI methods are worthwhile on an industrial robot
For a first application of your own, a supervised vision model with a limited action space is more sensible than learning-based path planning or reinforcement learning on a real robot. For sorting, one class is sufficient. For a component whose position varies, you need detection or pose estimation. For overlapping parts, segmentation provides a real advantage, but it requires clean masks and more test data.
Three failure cases belong in the acceptance report. A reflection can cause detection to place the result on a shiny surface. The result is discarded or a new image is triggered. An occluded part can produce a mask that is too small. The part is rejected or operator intervention is requested. An unknown part must not pass through as a known class. It leads to REJECT. Motion blur and a network timeout lead to a retry if the cell logic permits the time window; otherwise, they lead to rejection or operator intervention.
A confidence value is not a safety metric. At most, it describes how confident the model appears within its training distribution. The threshold of 0.92 is a process parameter, not proof of safe detection.
The model remains an interchangeable artifact. The training data version, model format, model hash, model version, confidence threshold, and frozen test dataset must be versioned. Without this information, a later comparison cannot be reproduced.
Selecting edge hardware and rebuilding it as a bill of materials
A NVIDIA Jetson Orin NX 16 GB is a suitable verifiable starting point. The datasheet specifies up to 100 Sparse-INT8-TOPS or 50 Dense-INT8-TOPS and external NVMe support. These values are not a promise for your application. What matters is the measured inference time, camera latency, temperature, and end-to-end time.
A reliable bill of materials must belong exactly to the system actually built. The following structure is therefore intended as a project BOM to be completed. Prices may be published only after purchase, together with the purchase month and currency:
These open fields are not measurement results and must not remain open in a published rebuild guide. The purpose of the table is to distinguish the developer kit, production component, and variant that can actually be procured. For long-term operation, you should also check product life cycles. A developer kit is suitable for a laboratory setup, but is not automatically the best production component.
An industrial PC is the better choice when several high-resolution cameras, additional PCIe cards, high ambient temperatures, or Windows-bound manufacturer tools are required. The Jetson is attractive when a single vision model is to run compactly and energy-efficiently at the edge. I would not justify the decision with TOPS. Camera resolution, exposure time, hardware trigger, memory, network, power reserve, cooling, EMC, mounting, and service access determine the setup.
For every power supply, document voltage, power consumption under load, fuse, connector type, and cable length. For every Ethernet segment, include its role, cable length, and shielding in the plan. The published measurements must come from the specific setup: time from image acquisition to result, p50 and p95 inference time, end-to-end latency, image failures, temperature after continuous operation, and restart time after power loss.
Integrating AI into an existing robot controller
I always start in observation mode. First, only images, model responses, and operator decisions are recorded. Then the model runs in shadow mode against the operator's decision. In the third step, the cell displays the result. Only in the fourth step is a single limited robot job enabled.
The state machine is:
IDLE -> REQUEST -> INFER -> VALIDATE -> READY -> EXECUTE -> ACK
| |
+-> REJECT +-> TIMEOUT
|
+-> FAULT
The robot controller waits for a job status, reads only validated process values, and calls an approved motion routine. It receives no free axis values from the model. After the job, it acknowledges with ACK or an error code. The PLC stops the sequence if the response does not arrive.
This compact Python example separates the model response from the enable signal. It does not control an axis directly:
from dataclasses import dataclass
from time import time
WORKSPACE = {"x": (-50.0, 50.0), "y": (-50.0, 50.0), "rz": (-30.0, 30.0)}
ALLOWED_CLASSES = {"part_a", "part_b"}
MIN_CONFIDENCE = 0.92
MAX_AGE_MS = 250
ALLOWED_MODELS = {"vision-2025-02-03"}
@dataclass
class Decision:
status: str
reason: str
job_id: str | None = None
object_class: str | None = None
offset: dict | None = None
def reject(reason: str) -> Decision:
return Decision(status="REJECT", reason=reason)
def validate(packet: dict, last_heartbeat: int) -> Decision:
required = {"job_id", "timestamp_ms", "object_class", "offset",
"confidence", "model_version", "valid_until_ms", "heartbeat"}
if not required.issubset(packet):
return reject("SCHEMA")
now_ms = int(time() * 1000)
if now_ms - packet["timestamp_ms"] > MAX_AGE_MS:
return reject("STALE_TIMESTAMP")
if now_ms > packet["valid_until_ms"]:
return reject("EXPIRED")
if packet["heartbeat"] <= last_heartbeat:
return reject("HEARTBEAT")
if packet["model_version"] not in ALLOWED_MODELS:
return reject("MODEL_VERSION")
if packet["object_class"] not in ALLOWED_CLASSES:
return reject("UNKNOWN_CLASS")
if packet["confidence"] < MIN_CONFIDENCE:
return reject("LOW_CONFIDENCE")
for axis, (low, high) in WORKSPACE.items():
value = packet["offset"].get(axis)
if value is None or not low <= value <= high:
return reject("OUT_OF_WORKSPACE")
return Decision("READY", "VALID", packet["job_id"],
packet["object_class"], packet["offset"])
Display More
Before automatic operation, I check at least the following points:
- Misclassifications on a frozen test set remain below the specified limit.
- End-to-end latency remains below the maximum specified for the process.
- Disconnecting a camera produces
REJECTorTIMEOUT. - A stopped inference process loses the heartbeat and provides no enable signal.
- A network interruption leads to the defined error path.
- An incorrect model version is rejected.
- Protective space, guard door, and emergency stop function independently of the edge computer.
Each cycle writes the image or dataset reference, model hash, confidence, parameters, controller job, result, operator intervention, and timestamp to the log. I also record camera failures, retries, rejects, and restarts. Only then can it later be determined whether an error originated in the lighting, model, network, sequence, or robot program.
Next, I would add a second camera or expand the limited gripping-point correction with an anomaly check. I am interested in which robust fallback pattern you use in your robot cell: retry, reject, or immediate operator intervention?
Written by
Daniel Böhmel has been developing software for over 20 years and has been self-employed since 2007. He started out with interactive web design back in the Flash era; later, he built his own online projects, such as a fitness forum and a supplement store, including the editorial content. Today, his…
View the profile of Daniel BöhmelParticipate now!
Don’t have an account yet? Register yourself now and be a part of our community!