Skip to content
Open access

State Machine Model of the Operation Control of a Differential- Drive Mobile Robot

Jul 2026 · Electronics · Vol 15, pp. 2993 · 0 citations · 37 references

TL;DR

A complete state-machine model for the reactive control layer of a differential-drive mobile robot and a discrete control strategy that approximates continuous behavior and incorporates a simplified proportional–integral–derivative (PID) controller for pose correction are presented.

Abstract

Existing robotic control frameworks often rely on complex hierarchical state machines or middleware infrastructures, which may be unsuitable for resource-constrained embedded systems and difficult to map directly to low-level code. This work presents a complete state-machine model for the reactive control layer of a differential-drive mobile robot. Although mobile-robot controllers often exhibit considerable complexity—particularly at lower levels, where numerous hardware-dependent operations occur—this work shows that a network of concurrent state machines provides a clear and lightweight method for specifying and implementing control behavior. The proposed approach decomposes the reactive controller into two concurrent extended finite-state machines (CEFSMs) responsible for locomotion and lidar operation, connected through simple and predictable protocols. This structure enables a direct mapping from model diagrams to procedural code in languages such as C++ and Lua. The method has been used extensively in an undergraduate Embedded Systems course since 2011, supporting both physical robots (Arduino-based) and their digital twins in CoppeliaSim. We also introduce a discrete control strategy that approximates continuous behavior and incorporates a simplified proportional–integral–derivative (PID) controller for pose correction. The approach reduces development effort, increases model clarity, and yields reusable code across hardware and simulation platforms. Quantitative evaluation shows that the proposed PID-based control strategy can improve positioning accuracy by up to an order of magnitude compared to a baseline on–off controller, without increasing the computational cost. In addition, the control cycle time has been significantly reduced (from 31 ms to 12 ms) in order to ensure a stable execution period; this, in turn, results in a more predictable controller output and improved trajectory consistency.

Read PDF

Similar papers

Conference Aug 2026

Performance Comparison of Blocking vs. Non-Blocking State Machines on a Semi-Humanoid Robot

State machines serve as the core modeling paradigm in embedded and robotic control systems. The architectural selection between blocking and non-blocking implementations under multithreaded control environments critically determines system responsiveness and development complexity, yet existing studies predominantly re...

Meng-Qi Deng, Xiang-Sen Han, Wen-Xi Tan et al. · 0 citations
Oct 2026

A Unified Framework for Mission-Gain-Aware Proactive Planning and Control of Autonomous Mobile Robots

Mobile robots often face challenges operating in partially known environments where success depends on factors such as robot capabilities, task characteristics, and the environment. This letter presents a generalized, modular framework that enables robots to explicitly account for these factors through the concept of a...

Patrick Sherman, N. Bezzo · 0 citations
Preprint Oct 2026

Distributed Motion Planning for Multi-Robot Systems under Topological Constraints

Efficient and distributed coordination of mobile robots is one of the main challenges in multi-robot systems. Topological constraints, often expressed as topological braids, are a popular tool to encode complex coordination patterns between multiple mobile robots, as they offer a compact and abstract representation of...

Gianpietro Battocletti, Dimitris Boskos, D. Dimarogonas et al. · 0 citations
Preprint Sep 2026

LEMCA: LLM-Guided Synthesis of Efficient Mode-Switching Control Architectures

Physical control tasks in the natural world, such as driving or object manipulation, frequently exhibit dramatic variations in sensory and compute complexity over time. Correspondingly, a natural resource-efficient choice for robot control is to dynamically switch between control modes with varying resource allocations...

Arjun Krishna, Vincent Pacelli, Dinesh Jayaraman · 0 citations
Review Sep 2026

Draft: A Parametric Tool for Robot Design Exploration

Draft is presented, a parametric generation tool whose generalized engine compiles any parametric tree of serial chains into a simulation-ready MJCF model, without CAD, that allows engineers to explore design tradeoffs through easily adjustable models and evaluate how changes influence controller performance.

David Nguyen, Marcelo Coelho, Sangbae Kim · 0 citations
Open access Sep 2026

Design and Redundancy Control Approach of a Novel Three-Platform Parallel-Coupled Mobile Robot

Based on the advantages of redundancy, high stiffness, and strong load-bearing capacity of parallel mechanisms, they can be applied in the field of mobile robots. This paper proposes a novel three-platform parallel-coupled mobile robot and conducts motion analysis and dynamic modeling for it. It proposes an active inte...

Wei-Wei Hu, Rui-Qin Li, Dian-Ying Lin · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.