أنظمة التحكم الآلي هي تخصصات هندسية غاية في الأهمية. تعلم هذه التخصصات والوصول الى خبرة عالية يتطلب أدوات مناسبة، إحدى هذه الأدوات هي تجهيزات التجارب المعملية. تلك التجهيزات مطلوبة لفهم استراتيجيات التحكم المختلفة وتطبيقاتها وربط النظريات العلمية بالتطبيق العملي. ولكن في بعض الاحيان قد لا يكون من السهل الحصول على مثل هذه التجهيزات لعدة أسباب من هذه الأسباب التكلفة العالية و عدم توفرها في الاسواق. عتاد محاكاة الواقع (HIL) هي طريقة لاستبدال التجهيز لتجربة مطلوب دراستها بعتاد مكافئ مثل جهاز كمبيوتر او متحكم دقيق. في هذا البحث تم استخدام متحكم دقيق ليحل محل نظامين فيزيائيين مختلفين. بالإضافة الى المحاكاة، تم ايضا استخدام متحكم آخر لاستبدال حلقة التحكم، والتي تشمل عقدة الجمع ووحدة التحكم. تم تنفيد المحاكاة للأنظمة وحلقة التحكم الكاملة على المتحكمات الدقيقة باستخدام طريقة معادلة الفرق وطريقة المعادلات التفاضلية كلما كان ذلك ممكنًا. حيث تم الربط بين المتحكمات الدقيقة باستخدام بروتوكول الاتصال التسلسلي و ESP NOW . وتمت مقارنة أداء نظام التحكم مع MATLAB وأظهر دقة عالية جدًا بعد تشغيل المحاكاة بزمن حقيقي بوقت عينة 10 مللي ثانية.
English Abstract:
Control systems engineering is a very interesting engineering disciplines. It requires proper tools to teach it effectively, one of the tools is experimental setups. They are needed to understand and apply different control strategies and to connect theory with application. However, such setups might not be easy to reach for a number of reasons such as their relatively high prices. Hardware in the Loop (HIL) is a way to replace an experimental setup to be studied with an equivalent hardware, such as a PC or a microcontroller. In this paper a microcontroller is used to replace two different physical systems. In addition to simulating the systems, another microcontroller is also used to replace the control loop, i.e. the summing node and the controller. The simulation of the systems and the whole control loop on the microcontroller was carried out using difference equation method and Ordinary Differential Equations method whenever it is applicable. The interface between the two microcontrollers was established using serial communication protocol and ESP NOW. The performance of the control system is compared with MATLAB and showed very high accuracy. The simulation was run in real time, with a sample time of 10ms