Robot controller

On this page 8

A robot controller is the dedicated computer and power electronics that turn task instructions into coordinated joint motion, reading sensors, computing trajectories and commanding motor drives many times per second. Robotics treats it as the robot’s central nervous system: the mechanical arm or mobile base provides the body, while the controller provides timing, kinematics, feedback control and safety logic.

In robotics fundamentals, the term covers both the physical cabinet or embedded board and the real-time software stack running on it. An industrial robot, a collaborative robot and an autonomous mobile robot all depend on a controller, although their architectures differ considerably in how much perception and autonomy they handle locally.

How a robot controller turns commands into motion

A robot controller works through a layered control hierarchy in which each layer runs at a faster rate than the one above it. At the top, a task layer interprets the robot program or mission, for example “pick part from conveyor and place it in fixture”. Below it, a motion planner converts targets into paths, and an interpolator samples those paths into setpoints for every joint.

At the bottom, servo loops compare each setpoint with encoder feedback and compute motor current commands. Industrial controllers typically close position and velocity loops at 1 to 8 kHz and current loops at 10 to 20 kHz inside the drives. This separation keeps slow decisions from disturbing deterministic low-level timing, which is essential for smooth, repeatable motion.

The following table summarizes the main layers, their typical update rates and what each one is responsible for.

LayerTypical rateMain responsibility
Task layerEvent-driven or 1-10 HzExecutes the program, handles logic and I/O
Motion planner10-100 HzComputes paths, avoids obstacles and joint limits
Interpolator250 Hz-4 kHzGenerates time-stamped joint setpoints
Servo loop1-8 kHzCloses position and velocity feedback
Current loop10-20 kHzRegulates motor torque inside the drive
Typical layers of a robot control hierarchy

Core components of a robot controller

A complete controller combines computing hardware, servo amplifiers, safety circuits and communication interfaces. In industrial systems these parts sit in a control cabinet connected to the arm by power and feedback cables, while smaller robots integrate them into the base or into each joint module.

The table below lists the principal hardware and software components and the function each performs.

ComponentFunctionTypical implementation
Main processorRuns planning, kinematics and the programIndustrial PC with a real-time operating system
Servo drivesConvert commands into motor currentsMulti-axis amplifiers with PWM output stages
Safety controllerMonitors speed, zones and stop signalsDual-channel certified safety processor
Fieldbus interfaceLinks drives, I/O and external devicesEtherCAT, PROFINET or EtherNet/IP
Teach pendantAllows jogging, programming and diagnosisHandheld unit with enabling switch
Feedback inputsRead joint position and motor stateAbsolute encoders and resolvers
Principal components and their functions

On the software side, the controller runs forward and inverse kinematics, dynamic models that estimate gravity and inertia torques, and a robot programming language or application interface. Many vendors still use proprietary languages, while research and service robots often rely on ROS 2 running alongside a separate real-time layer.

Control strategies inside the controller

The control strategy determines how the controller responds to errors and external forces. The most common approach is cascaded PID control with feedforward terms, but robots that touch people or parts need methods that regulate force as well as position.

  • Independent joint control treats each axis as a separate servo and relies on high gear ratios to suppress coupling between joints.
  • Computed torque control uses the robot’s dynamic model to cancel gravity, inertia and Coriolis effects, which improves tracking at high speed.
  • Impedance and admittance control make the arm behave like a programmable spring and damper, the foundation of compliant collaborative behavior.
  • Model predictive control optimizes commands over a short future horizon and is increasingly used in legged and humanoid robots.

Each method trades simplicity against capability. Model-based control delivers better accuracy and contact handling, but it depends on accurate payload and friction parameters, so a wrongly entered robot payload can degrade both performance and safety.

Controller architectures across robot types

Controller architecture varies with the robot category, because each category balances determinism, autonomy and cost differently. An industrial arm prioritizes precise repeatable paths, while a mobile robot must also process maps and sensor data in real time.

The comparison below shows how controller design differs across common robot types.

Robot typeController formKey emphasis
Industrial robotSeparate cabinet, proprietary softwarePath accuracy, cycle time, uptime
Collaborative robotCompact box or base-integrated unitForce limiting and certified safety functions
Autonomous mobile robotEmbedded computer plus motor controllersLocalization, navigation and fleet communication
Quadruped robotOnboard real-time computer and joint drivesBalance, gait generation and fast state estimation
HumanoidDistributed joint controllers with central plannerWhole-body control and perception integration
Controller characteristics by robot type

A clear trend is distributed control, in which smart joint modules close their own servo loops and a central computer sends higher-level setpoints over a deterministic network. This reduces cabling and allows modular robot designs, but it makes network timing and synchronization critical design parameters.

Safety functions and standards

Safety is a primary job of the robot controller, not an add-on. Modern controllers implement functional safety through redundant, monitored channels that can stop the robot independently of the motion software, which must be validated against recognized standards.

The most relevant requirements come from ISO 10218 for industrial robots, ISO/TS 15066 for collaborative operation and IEC 61508 or ISO 13849 for the reliability of safety-related control parts. Typical certified functions include safe torque off, safe speed monitoring, safe zones and protective stop categories 0, 1 and 2 as defined in IEC 60204-1.

Integrators must remember that a certified controller does not make a cell safe by itself. The full application, including tooling, fixtures and workpiece hazards, still requires a documented risk assessment.

Common problems and how to address them

Many robot faults that appear mechanical are in fact controller configuration issues. The table below links frequent symptoms to their likely causes and the usual corrective action.

SymptomLikely causeTypical fix
Vibration at the end of a moveServo gains too high or wrong payload dataRetune gains and enter correct payload
Path deviates at high speedMissing feedforward or dynamic model errorsEnable model-based compensation
Random protective stopsFieldbus jitter or noisy safety inputsCheck cabling, shielding and cycle times
Drift after a collisionEncoder offset or mastering lostRecalibrate the zero positions
Program runs slower than plannedConservative acceleration limitsOptimize motion parameters within safety limits
Frequent controller-related symptoms

A frequent misconception is that faster processors automatically yield better motion. In practice, timing determinism and accurate models matter far more than raw computing power, and an unstable real-time loop causes more defects than a slow planner.

The simple explanation

A robot controller is the brain of the robot. The arm, wheels or legs are only muscles and bones; on their own they cannot decide where to move or how fast.

The controller reads sensors that report where every joint is, compares this with where each joint should be and adjusts the motors thousands of times per second. It is a little like a driver who constantly corrects the steering wheel to stay in the lane. It also watches for danger and stops the robot immediately when something goes wrong.

How it is used in practice

An automotive supplier installs a six-axis welding robot that must trace a 1.2-meter seam on a steel bracket at 15 millimeters per second with a tolerance of about 0.1 millimeter. The robot controller interpolates the seam path at 4 kHz, synchronizes torch motion with the welding power source over EtherCAT and compensates for the weight of the torch and cable package using its dynamic model.

During commissioning, technicians notice slight waviness along the seam. Diagnostics on the teach pendant show that the payload data still describes a lighter gripper used in earlier tests. After entering the correct mass and center of gravity, the controller’s feedforward terms match the real load, the waviness disappears and the cell reaches its target cycle time of 42 seconds while the safety controller keeps the operator zone monitored at all times.