Analysis of Numerical Simulation for Nonlinear Robot Control Based on Dynamic Modeling Using Low-Cost and Open-Source Technology
Abstract
1. Introduction
2. Details of Open-Source Technology
2.1. Raspberry Pi
2.2. GNU-Octave
3. Benchmark Case Study
3.1. Scara Robot Manipulator
3.2. Control Law for Trajectory Tracking
4. Algorithm for Simulations
Numerical ODE Solver
- 1.
- The function handle projectileode45.m to be integrated, where the system of second-order differential equations that models the robotic system and its controller must be rewritten as a system of coupled first-order differential equations.
- (a)
- Define the name of the function and output/input arguments.
- The output argument will be a column vector of the derivatives.
- The input arguments will be the time t and system state x.
- (b)
- Establish the desired trajectory equations.
- The first and second derivatives of the desired trajectory are required.
- (c)
- Set parameter values.
- Parameters of the dynamical system and controller.
- (d)
- Build matrix M and C and vector G.
- (e)
- Establish the controller equation.
- (f)
- Solve dynamical equations for major order derivatives.
- (g)
- Form the vector of derivatives to be integrated.
- 2.
- Settings of the solver and plotting results SCARA_inicio_ode45.m.
- (a)
- Initialize time complexity counting using tic() function.
- (b)
- Specify the time interval tspan=0:0.01:10.
- (c)
- Set initial values for each state variable.
- (d)
- Specify non-default options for the ODE solver,odeset(’RelTol’,1e-4,’AbsTol’,1e-3,’NormControl’,’on’).
- (e)
- Build ode45 solver syntax.
- (f)
- Define the desired trajectory.
- (g)
- Plot customized figures.
- (h)
- Stop time complexity counting by the toc() function.
5. Results
5.1. Time Complexity and the Standard Error of the Mean
5.2. Frugality Score
- Case 1. The frugality score is used to compare the reference simulation tool MATLABTM + laptop versus the proposed simulation tool GNU-Octave + RPi 3B+, with and , respectively.
- Case 2. The frugality score is used to compare the reference simulation tool GNU-Octave + laptop versus the proposed simulation tool GNU-Octave + RPi 3B+, with and , respectively.
- Case 3. A hypothetical case where a supposed frugal simulation tool results in a complexity time equal to that of MATLABTM + laptop, .
- Case 4. A hypothetical case of a frugal simulation scheme that results in a complexity time lower than that of the proposed GNU-Octave + RPi 3B+ scheme .
- Case 5. The hypothetical case of a frugal simulation scheme that would take less complexity time than the reference simulation tool MATLABTM + laptop .
6. Discussion
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| CPU | Central Processing Unit. |
| dof | Degrees of Freedom. |
| FI | Frugal Innovation. |
| GPU | Graphics Processing Unit. |
| ODE | Ordinary Differential Equations. |
| OSH | Open-Source Hardware. |
| OSS | Open-Source Software. |
| RAM | Random Access Memory. |
| RPi | Raspberry Pi. |
| SCARA | Selective Conformal Assembly Robot Arm. |
| STEM | Science, Technology, Engineering and Mathematics. |
| TM | Trade Marker. |
| VR | Virtual Reality. |
References
- Tilak, J.B.; Kumar, A.G. Policy Changes in Global Higher Education: What Lessons Do We Learn from the COVID-19 Pandemic? High. Educ. Policy 2022, 35, 610. [Google Scholar] [CrossRef] [PubMed]
- Cardoso, A.; Oliveira, P.M.; Sá, J. Pocket Labs as a STEM Learning Tool and for Engineering Motivation. In Proceedings of the International Conference on Interactive Collaborative Learning, Vienna, Austria, 27–30 September 2022; Springer: Berlin/Heidelberg, Germany, 2022; pp. 413–422. [Google Scholar]
- Pokhrel, S.; Chhetri, R. A literature review on impact of COVID-19 pandemic on teaching and learning. High. Educ. Future 2021, 8, 133–141. [Google Scholar] [CrossRef]
- Ciolacu, M.I.; Mihailescu, B.; Rachbauer, T.; Hansen, C.; Amza, C.G.; Svasta, P. Fostering Engineering Education 4.0 Paradigm Facing the Pandemic and VUCA World. Procedia Comput. Sci. 2023, 217, 177–186. [Google Scholar] [CrossRef]
- Magana, A.J.; de Jong, T. Modeling and simulation practices in engineering education. Comput. Appl. Eng. Educ. 2018, 26, 731–738. [Google Scholar] [CrossRef]
- Chernikova, O.; Heitzmann, N.; Stadler, M.; Holzberger, D.; Seidel, T.; Fischer, F. Simulation-based learning in higher education: A meta-analysis. Rev. Educ. Res. 2020, 90, 499–541. [Google Scholar] [CrossRef]
- Bhatti, Y.; Basu, R.R.; Barron, D.; Ventresca, M.J. Frugal Innovation: Models, Means, Methods; Cambridge University Press: Cambridge, UK, 2018. [Google Scholar]
- Sowiński, P.; Rachwał, K.; Danilenka, A.; Bogacka, K.; Kobus, M.; Dąbrowska, A.; Paszkiewicz, A.; Bolanowski, M.; Ganzha, M.; Paprzycki, M. Frugal Heart Rate Correction Method for Scalable Health and Safety Monitoring in Construction Sites. Sensors 2023, 23, 6464. [Google Scholar] [CrossRef] [PubMed]
- Kwon, J.; Park, D. Hardware/software co-design for tinyml voice-recognition application on resource frugal Edge Devices. Appl. Sci. 2021, 11, 11073. [Google Scholar] [CrossRef]
- Sanchez, R.; Groc, M.; Vuillemin, R.; Pujo-Pay, M.; Raimbault, V. Development of a Frugal, In Situ Sensor Implementing a Ratiometric Method for Continuous Monitoring of Turbidity in Natural Waters. Sensors 2023, 23, 1897. [Google Scholar] [CrossRef] [PubMed]
- Jayabalan, J.; Dorasamy, M.; Raman, M. Reshaping higher educational institutions through frugal open innovation. J. Open Innov. Technol. Mark. Complex. 2021, 7, 145. [Google Scholar] [CrossRef]
- Wajid, B.; Ekti, A.R.; AlShawaqfeh, M.K. Ecebuntu-an innovative and multi-purpose educational operating system for electrical and computer engineering undergraduate courses. Electrica 2018, 18, 210–217. [Google Scholar] [CrossRef]
- Tapaskar, R.; Revankar, P.; Gorwar, M.; Hosmath, R. Pedagogical Interventions through Software Tools in Postgraduate Engineering Programme. J. Eng. Educ. Transform. 2018, 31. [Google Scholar] [CrossRef]
- Lotfi, N.; Auslander, D.; Rodriguez, L.A.; Mbanisi, K.C.; Berry, C.A. Use of Open-source Software in Mechatronics and Robotics Engineering Education–Part I: Model Simulation and Analysis. Comput. Educ. J. 2021, 12. [Google Scholar] [CrossRef]
- Saluja, M.K.; Thakur, S. Open Source Software Based Education and Training Framework for Software Engineering Education. Solid State Technol. 2020, 63, 9633–9645. [Google Scholar]
- Park, Y. Development of an Educational Code of Deriving Equations of Motion and Analyzing Dynamic Characteristics of Multibody Closed Chain Systems using GNU Octave for a Beginner. J. Appl. Comput. Mech. 2022, 8, 232–244. [Google Scholar]
- Raikar, M.M.; Desai, P.; Vijayalakshmi, M.; Narayankar, P. Upsurge of IoT (Internet of Things) in engineering education: A case study. In Proceedings of the 2018 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Bangalore, India, 19–22 September 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 191–197. [Google Scholar]
- Alex David, S.; Ravikumar, S.; Rizwana Parveen, A. Raspberry Pi in computer science and engineering education. In Intelligent Embedded Systems; Springer: Berlin/Heidelberg, Germany, 2018; pp. 11–16. [Google Scholar]
- Fernández-Pacheco, A.; Martin, S.; Castro, M. Implementation of an Arduino remote laboratory with raspberry Pi. In Proceedings of the 2019 IEEE Global Engineering Education Conference (EDUCON), Dubai, United Arab Emirates, 8–11 April 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1415–1418. [Google Scholar]
- Mbanisi, K.C.; Auslander, D.M.; Berry, C.A.; Rodriguez, L.A.; Molki, M.; Lotfi, N. Promoting Open-source Hardware and Software Platforms in Mechatronics and Robotics Engineering Education. In Proceedings of the 2020 ASEE Virtual Annual Conference Content Access, Virtual, 22 June 2020. [Google Scholar]
- Fuentes, P.; Camarero, C.; Herreros, D.; Mateev, V.; Vallejo, F.; Martinez, C. Addressing Student Fatigue in Computer Architecture Courses. IEEE Trans. Learn. Technol. 2022, 15, 238–251. [Google Scholar] [CrossRef]
- Vaca, N.; Garcia-Loro, F.; Martin, S.; Rodriguez-Artacho, M. Raspberry Pi Applications in Electronics and Control Laboratories. In Proceedings of the 2022 IEEE Global Engineering Education Conference (EDUCON), Tunis, Tunisia, 28–31 March 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1709–1713. [Google Scholar]
- Choi, H.; Crump, C.; Duriez, C.; Elmquist, A.; Hager, G.; Han, D.; Hearl, F.; Hodgins, J.; Jain, A.; Leve, F.; et al. On the use of simulation in robotics: Opportunities, challenges, and suggestions for moving forward. Proc. Natl. Acad. Sci. USA 2021, 118, e1907856118. [Google Scholar] [CrossRef] [PubMed]
- Mikac, M.; Logožar, R.; Horvatić, M. Performance Comparison of Open Source and Commercial Computing Tools in Educational and Other Use—Scilab vs. MATLAB. Teh. Glas. 2022, 16, 509–518. [Google Scholar] [CrossRef]
- Idoko, P.; Ezeamii, G.C.; Idogho, C.; Peter, E.; Obot, U.; Iguoba, V. Mathematical modeling and simulations using software like MATLAB, COMSOL and Python. Magna Sci. Adv. Res. Rev. 2024, 12, 062–095. [Google Scholar] [CrossRef]
- Herho, S.; Fajary, F.; Herho, K.; Anwar, I.; Suwarman, R.; Irawan, D.E. Reappraising double pendulum dynamics across multiple computational platforms. CLEI Electron. J. 2025, 28, 18. [Google Scholar] [CrossRef]
- Rooney, M.; Matthews, S. Evaluating FFT performance of the C and Rust Languages on Raspberry Pi platforms. In Proceedings of the 2023 57th Annual Conference on Information Sciences and Systems (CISS), Baltimore, MD, USA, 22–24 March 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 1–6. [Google Scholar]
- Pajankar, A.; Chandu, S. Introduction to GNU Octave. In GNU Octave by Example; Springer: Berlin/Heidelberg, Germany, 2020; pp. 1–31. [Google Scholar]
- Behal, A.; Dixon, W.; Dawson, D.M.; Xian, B. Lyapunov-Based Control of Robotic Systems; CRC Press: Boca Raton, FL, USA, 2009; Volume 36. [Google Scholar]
- Kelly, R.; Davila, V.S.; Perez, J.A.L. Control of Robot Manipulators in Joint Space; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
- Lewis, F.L.; Dawson, D.M.; Abdallah, C.T. Robot Manipulator Control: Theory and Practice; CRC Press: Boca Raton, FL, USA, 2003. [Google Scholar]
- Eaton, J.W.; Bateman, D.; Hauberg, S.; Wehbring, R. GNU Octave-A High-Level Interactive Language for Numerical Computations Edition 5 for Octave Version 5.1. 0 February 2019. Available online: https://docs.octave.org/octave-5.2.0.pdf (accessed on 5 January 2026).
- Evchenko, M.; Vanschoren, J.; Hoos, H.H.; Schoenauer, M.; Sebag, M. Frugal machine learning. arXiv 2021, arXiv:2111.03731. [Google Scholar] [CrossRef]
- Miscellaneous Techniques (GNU Octave (Version 9.2.0))—docs.octave.org. Available online: https://docs.octave.org/v9.2.0/Miscellaneous-Techniques.html (accessed on 5 January 2026).









| Attribute | Value |
|---|---|
| Processor | Broadcom BCM2837B0, Cortex-A53 64-bit SoC @ 1.4GHz |
| Memory | 1GB LPDDR2 SDRAM |
| Connectivity | 2.4 GHz and 5 GHz IEEE 802.11.b/g/n/ac wireless LAN, Bluetooth 4.2, BLE |
| Gigabit Ethernet over USB 2.0 (maximum throughput of 300 Mbps) | |
| 4 USB 2.0 ports | |
| Multimedia | H.264, MPEG-4 decode (1080p30) |
| H.264 encode (1080p30) | |
| OpenGL ES 1.1, 2.0 graphics | |
| SD card support | Micro SD format for loading operating systems such as Raspbian and data storage |
| Mass | Length | Moment of Inertia |
|---|---|---|
| kg | m | |
| kg | m | |
| kg | m | |
| m |
| Attribute | Value |
|---|---|
| Model | Acer Aspire F5-573 |
| Processor | Intel(R) Core(TM) i5-7200U CPU @ 3.10 GHz |
| RAM | 16.0 GB |
| Cache | 3 MB |
| OS | Windows 10 Home x64 |
| GPU | Intel HD Graphics 620 |
| Computer Simulation Tool | Value |
|---|---|
| MATLABTM + laptop computer | 0.86 s |
| Octave + laptop computer | 1.081 s |
| Octave + RPi 3B+ minicomputer | 7.32 s |
| Variable | MATLABTM + Laptop vs. GNU-Octave + RPi 3B+ | GNU-Octave + Laptop vs. GNU-Octave +RPi 3B+ |
|---|---|---|
| 0.0014844 | 0.0014845 | |
| 0.0044081 | 0.0044079 | |
| 0.00067653 | 0.00067652 | |
| 0.010358 | 0.010358 | |
| 0.027507 | 0.027507 | |
| 0.02343 | 0.02343 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Torres, F.J.; Martínez, I.; Balvantín, A.J.; Robles, E.H. Analysis of Numerical Simulation for Nonlinear Robot Control Based on Dynamic Modeling Using Low-Cost and Open-Source Technology. AppliedMath 2026, 6, 41. https://doi.org/10.3390/appliedmath6030041
Torres FJ, Martínez I, Balvantín AJ, Robles EH. Analysis of Numerical Simulation for Nonlinear Robot Control Based on Dynamic Modeling Using Low-Cost and Open-Source Technology. AppliedMath. 2026; 6(3):41. https://doi.org/10.3390/appliedmath6030041
Chicago/Turabian StyleTorres, Felipe J., Israel Martínez, Antonio J. Balvantín, and Edgar H. Robles. 2026. "Analysis of Numerical Simulation for Nonlinear Robot Control Based on Dynamic Modeling Using Low-Cost and Open-Source Technology" AppliedMath 6, no. 3: 41. https://doi.org/10.3390/appliedmath6030041
APA StyleTorres, F. J., Martínez, I., Balvantín, A. J., & Robles, E. H. (2026). Analysis of Numerical Simulation for Nonlinear Robot Control Based on Dynamic Modeling Using Low-Cost and Open-Source Technology. AppliedMath, 6(3), 41. https://doi.org/10.3390/appliedmath6030041

