van der Kamp使用了Sim金宝appulink和Raspberry Pi的Si金宝appmulink支持包,开发了一种快速控制的原型系统,使学生能够在Raspberry PI硬件上进行测试和改进他们的控制设计。
The flexible support package system allowed van der Kamp to quickly add analog-to-digital and digital-to-analog interface boards to communicate with the DC motor and the inverted pendulum sensors, including encoders that measure the position of the cart and the pendulum. He wrote custom drivers for these boards and packaged them as C MEX S-functions for use in Simulink models.
After downloading and installing the Simulink Support Package for Raspberry Pi, van der Kamp verified the setup by testing it with a Simulink controller model for the loading bridge. The Raspberry Pi–based rapid control prototyping was used in the course the following semester.
在课程中注册的学生已经熟悉Matlab和Simulink。金宝appOstfalia大学已获得校园范围许可证,为学生提供校园广泛的Matlab和Simulink软件,并且该工具广泛集成到电气工程课程中。金宝app
Working in Simulink, students developed a plant model of the loading bridge based on differential equations.
They then developed a state controller model and ran closed-loop simulations in Simulink to check the stability of their designs. They incorporated the C MEX S-function blocks for the analog interface drivers into this model to enable communication with the plant.
使用Simu金宝applink外部模式,它们在Raspberry PI硬件上运行了它们的控制器模型,步长大约一毫秒。在此模式下,它们可以在模型运行时实时检查和可视化传感器信号并调整控制器参数值。
在载入桥模型上测试控制器后,学生将从传感器捕获的数据捕获的数据和Matlab中的绘图进行实验室报告。
Ostfalia plans to expand the use of Simulink with the Raspberry Pi rapid control prototyping system to other classes, including one in which the students will use the system to develop controllers for a magnetic suspension.