Implementation of a ROS 2-Based Differential Robot Drive System in a Robot Control System

Authors

  • Ivan Rivaldo Butarbutar Universitas Pertahanan Republik Indonesia, Bogor, Indonesia
  • Roni Permana Saputra National Research and Innovation Agency, Bandung, Indonesia
  • Hendrana Tjahjadi Universitas Pertahanan Republik Indonesia, Bogor, Indonesia

DOI:

https://doi.org/10.35335/int.jo.emod.v20i2.200

Keywords:

Arduino Nano, DAC GP8503, Differential Drive Robot, Odometry, Raspberry Pi, ROS2

Abstract

This study aims to develop and evaluate a ROS2-based differential-drive robot control system using a low-cost embedded robotic architecture consisting of a Raspberry Pi 4 and Arduino Nano. The proposed system redesigns the previous robot architecture by simplifying the embedded controller configuration from multiple microcontrollers into a single Arduino Nano integrated with dual independent BLDC motor drivers. The system utilizes ROS2 communication topics including /cmd_vel, /target_rpm, /wheel_rpm, and /odom to enable real-time motion control, wheel speed feedback, and odometry estimation. Motor control is implemented using a GP8503 DAC module and ZS-X11H motor drivers, while wheel RPM feedback is acquired using rotary encoders. Experimental results show that the robot is capable of performing real-time differential-drive motion and successfully generating real-time wheel RPM feedback and odometry information. However, deviations of approximately 40–45% between target RPM and actual RPM were observed due to the absence of PID-based wheel speed correction, wheel slip, and mechanical load imbalance and motor nonlinearity. This research demonstrates the successful integration of ROS2 middleware with a simplified low-cost embedded robotic architecture as a foundation for future autonomous navigation and localization development.

References

Ahmed, S., Rahman, M., & Noor, F. (2022). Encoder Calibration for Accurate Mobile Robot Odometry. Sensors, 22(18), 6912. https://doi.org/10.3390/s22186912

Alwan, H., Mahmood, A., & Kareem, Z. (2024). Improved AMCL Localization for Differential Drive Robots in Indoor Environments. Sensors, 24(2), 611. https://doi.org/10.3390/s24020611

Batista, L. G., Salarolli, P. F., Gamarra, D. F. T., De Almeida, G. M., Vivacqua, R. P. D., & Cuadros, M. A. S. L. (2022). Odometry and speed control of a 4WD mobile robot integrated with ROS 2.

Campos, C., Elvira, R., Rodriguez, J., Montiel, J., & Tardos, J. (2021). ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial, and Multi-Map SLAM. IEEE Transactions on Robotics, 37(6), 1874–1890. https://doi.org/10.1109/TRO.2021.3075644

Choi, H., Kim, J., & Lee, S. (2022). Stability Analysis of Differential Drive Mobile Robots Under Wheel Velocity Disturbance. Sensors, 22(11), 4211. https://doi.org/10.3390/s22114211

Ferreira, M., Moreira, L., & Lopes, A. (2023). Differential drive kinematics and odometry for a mobile robot using TwinCAT. Electronic Research Archive, 31(4), 1789–1803. https://doi.org/10.3934/era.2023092

Garcia, M., Torres, J., & Perez, A. (2023). Real-Time Communication Performance Evaluation of ROS2 for Autonomous Robotic Systems. Robotics and Autonomous Systems, 163, 104392. https://doi.org/10.1016/j.robot.2023.104392

Hassan, M., Rahman, T., & Islam, S. (2024). Wheel Odometry Error Compensation for Mobile Robots Using Adaptive Calibration. IEEE Access, 12, 22114–22128. https://doi.org/10.1109/ACCESS.2024.3361182

Khan, M., Ahmed, R., & Islam, T. (2023). Real-Time Teleoperation of Differential Drive Robots Using ROS2. IEEE Access, 11, 78122–78135. https://doi.org/10.1109/ACCESS.2023.3298712

Kim, D., Lee, J., & Park, Y. (2024). Real-Time Sensor Fusion for Differential Drive Robot Navigation Using Extended Kalman Filter. IEEE Access, 12, 42011–42025. https://doi.org/10.1109/ACCESS.2024.3375011

Kim, H., Park, J., & Choi, S. (2021). Odometry Error Analysis for Differential Drive Mobile Robots. Sensors, 21(14), 4823. https://doi.org/10.3390/s21144823

Koubaa, A. (2023). Robot Operating System (ROS): The Complete Reference. Springer.

Kumar, A., & Lee, S. (2023). Differential Drive Navigation and Motion Control for Autonomous Robots. IEEE Access, 11, 55421–55435. https://doi.org/10.1109/ACCESS.2023.3278451

Lee, D., Kim, S., & Park, H. (2024). High-Efficiency BLDC Motor Control for Autonomous Mobile Robots. Electronics, 13(1), 201. https://doi.org/10.3390/electronics13010201

Lv, X., Zhao, Y., & Wang, P. (2023). Recent Advances in SLAM for Autonomous Mobile Robots: A Review. Robotics, 12(4), 98. https://doi.org/10.3390/robotics12040098

Macenski, S., Foote, T., Gerkey, B., Lalancette, C., & Woodall, W. (2022). Robot Operating System 2: Design, Architecture, and Uses in Autonomous Robots. Science Robotics, 7(66), eabm6074. https://doi.org/10.1126/scirobotics.abm6074

Nguyen, T., Hoang, P., & Tran, D. (2021). Path-Following Control for Differential Drive Mobile Robots. Robotics, 10(2), 56. https://doi.org/10.3390/robotics10020056

Patel, R. (2023). Real-Time Encoder Feedback for Robotic Motion Control. IEEE Access.

Pereira, L., Costa, P., & Silva, R. (2021). Teleoperation Framework for ROS2-Based Mobile Robots. Robotics, 10(4), 112. https://doi.org/10.3390/robotics10040112

Rahman, M., Hasan, T., & Karim, A. (2024). Motion Stability Enhancement for Differential Drive Robots Using Adaptive Wheel Speed Compensation. IEEE Access, 12, 51123–51138. https://doi.org/10.1109/ACCESS.2024.3381924

Sai Prasad Reddy, M., Pranav, K., Rahman, W., Vijay Kumar, B., Jain, A., & Gurulakshmi, A. B. (2025). Speed Control of BLDC Motor using PWM and Arduino Uno. E3S Web of Conferences, 619. https://doi.org/10.1051/e3sconf/202561902007

Sarker, V. (2021). Low-Cost Mobile Robot Platform Using Raspberry Pi. Robotics.

Serineka, I. G. P., Piarsa, I. N., & Raharja, I. M. S. (2024). Design and Construction of an Arduino Nano-Based Robotic Arm. Jurnal Syntax Admiration, 5(11), 4526–4532. https://jurnalsyntaxadmiration.com/index.php/jurnal/article/view/1625

Sharma, V., Gupta, R., & Mehta, A. (2022). Closed-Loop Speed Control for Differential Drive Mobile Robots Using PID Algorithms. Sensors, 22(9), 3441. https://doi.org/10.3390/s22093441

Silva, J., Costa, A., & Lima, R. (2023). Autonomous Path Tracking for Differential Drive Robots Using ROS2. IEEE Access, 11, 92122–92137. https://doi.org/10.1109/ACCESS.2023.3307711

Singh, R., Patel, D., & Kumar, P. (2022). ROS2-Based Adaptive Monte Carlo Localization for Autonomous Mobile Robots. IEEE Access, 10, 113522–113535. https://doi.org/10.1109/ACCESS.2022.3214478

Sungkono, S. (2023). Improvement of Motion Accuracy in a Differential Drive Mobile Robot through Odometry-Compass Sensor Fusion Implementation. ELKHA Jurnal Teknik Elektro, 15(1).

Wang, T., Li, Q., & Sun, Y. (2021). Performance Analysis of BLDC Motors for Mobile Robotic Applications. IEEE Access, 9, 128331–128342. https://doi.org/10.1109/ACCESS.2021.3112274

Yoon, J., Park, M., & Choi, K. (2023). Real-Time Closed-Loop Velocity Control for Autonomous Mobile Robots. IEEE Access, 11, 99112–99126. https://doi.org/10.1109/ACCESS.2023.3310842

Zhang, Y., Chen, X., & Li, J. (2022). Kinematic Modeling and Control of Differential Drive Mobile Robots. Robotics and Autonomous Systems, 152, 104070. https://doi.org/10.1016/j.robot.2022.104070

Zhou, Y., Li, H., & Wang, Z. (2021). IMU and Odometry Sensor Fusion for Mobile Robot Localization. Sensors, 21(6), 2145. https://doi.org/10.3390/s21062145

Downloads

Published

2026-05-30

How to Cite

Butarbutar, I. R., Saputra, R. P., & Tjahjadi, H. (2026). Implementation of a ROS 2-Based Differential Robot Drive System in a Robot Control System. International Journal of Enterprise Modelling, 20(2), 212–224. https://doi.org/10.35335/int.jo.emod.v20i2.200