Please use this identifier to cite or link to this item: https://scidar.kg.ac.rs/handle/123456789/23337
Full metadata record
DC FieldValueLanguage
dc.contributor.authorKelić, Lazar-
dc.date.accessioned2026-10-01T11:36:55Z-
dc.date.available2026-10-01T11:36:55Z-
dc.date.issued2026-
dc.identifier.isbn978-86-82434-15-3en_US
dc.identifier.urihttps://scidar.kg.ac.rs/handle/123456789/23337-
dc.description.abstractHybrid simulation (Hardware-in-the-Loop) of an inverted pendulum is an approach that combines numerical simulation and physical experimentation, with the aim of faithfully replicating real operating conditions in the control of dynamic systems. In this paper, an experimental setup is implemented in which the system dynamics - the cart motion and the pendulum angle - are calculated on a personal computer using the Python environment and the SciPy library, while the control algorithm is executed on the Arduino microcontroller platform. This division enables the simulation and control to run on independent processors, which brings the operating conditions closer to real systems. The mathematical model of the system is based on nonlinear differential equations that describe the cart position and the pendulum deflection angle, while the microcontroller receives the state values in real time and calculates the control signal using the LQR algorithm. In this way, interaction is achieved between the software and hardware parts - Python represents the physics model, while Arduino represents the real controller. The advantage of this approach is the possibility of analyzing delay and time response under conditions close to real ones, which is often neglected in classical simulations. Different microcontroller platforms (ATmega328P, ATmega32u4, ESP32 with FPU) make it possible to experimentally evaluate stability, latency and control-computation speed. The influence of the sampling frequency and communication channels (serial transmission) on system performance is also analyzed. Hybrid simulation represents a bridge between theoretical modeling and practical implementation, enabling safe testing of control algorithms and comparison of hardware platforms in real time.en_US
dc.language.isoenen_US
dc.publisherFaculty of Mechanical and Civil Engineering in Kraljevo, University of Kragujevacen_US
dc.relation.ispartofTriennial International Scientific Conference Engineering Today (12 ; 2026 ; Vrnjačka Banja)en_US
dc.rightsCC0 1.0 Universal*
dc.rights.urihttp://creativecommons.org/publicdomain/zero/1.0/*
dc.subjectInverted pendulumen_US
dc.subjectHybrid simulationen_US
dc.subjectLQR controlen_US
dc.subjectSystem delayen_US
dc.subjectMultithreaded modelingen_US
dc.subjectReal-time systemsen_US
dc.subjectHardware-in-the-Loop (HIL)en_US
dc.subjectArduino Leonardoen_US
dc.subjectESP32en_US
dc.subjectSystem dynamicsen_US
dc.subjectPython simulationen_US
dc.subjectController optimizationen_US
dc.subjectLatencyen_US
dc.subjectDigital controlen_US
dc.titleHybrid simulation of an inverted pendulumen_US
dc.typeconferenceObjecten_US
dc.description.versionPublisheden_US
dc.identifier.doi10.46793/ET26.D01Ken_US
dc.type.versionPublishedVersionen_US
Appears in Collections:Faculty of Mechanical and Civil Engineering, Kraljevo


Files in This Item:
File Description SizeFormat 
et2026-d01.pdf459.66 kBAdobe PDFView/Open


This item is licensed under a Creative Commons License Creative Commons