Ostfalia大学学生使用Simulink和Raspberry 金宝appPI硬件进行快速控制原型

Challenge

为州控制器设计的研究生电气工程实验室开发低成本的快速控制原型系统

Solution

Use Simulink and Simulink Support Package for Raspberry Pi to enable students to run control design models interactively on Raspberry Pi hardware

Results

  • Lab setup costs reduced by thousands of euros
  • Interactive controller tuning and visualization enabled
  • 学生释放到实验室以外的工作

“The low-cost rapid control prototyping system that we created with the Raspberry Pi enables students to design and implement controllers by combining what they’ve learned in lecture with Simulink skills they already have—and without spending valuable class time learning another software package.”

Axel van der Kamp, Ostfalia University of Applied Sciences

接口板旨在将覆盆子PI连接到实验。


Ostfalia应用科学大学的电气工程硕士课程包括一个控制设计课程,其中学生模型,模拟和使用MATLAB实现状态控制器®and Simulink®. The course,Praktikum Moderne Regelungsverfahren, teaches students control design skills that are in high demand in automotive and other industries across the region.

在最后的实验室项目中,学生设计了一个用于反转摆锤的状态控制器,通过模拟验证控制器,然后将其部署到快速控制原型系统。基于低成本的Raspberry PI™硬件,该系统由Axel Van der Kamp开发,Ph.D。在Ostfalia的学生,在课程讲师的要求下,博士博士。爸爸迈耶。

“用仿真软件模型运行在t金宝apphe Raspberry Pi, students can easily see how well the controller design is working, and even tune parameters to make it work better,” says van der Kamp. “Another big advantage of this approach is its low cost. The Raspberry Pi setup costs less than a textbook. It was ideal for this student project.”

Challenge

The course lab assignments culminate in the design of a control system for a loading bridge like those used to move shipping containers onto a ship or aircraft. The controller must minimize the oscillation of a container—modeled as an inverted pendulum—as it is moved along on a cart driven by a DC motor.

博士。Meyer需要一个经济的原型制作系统,用于该介绍性控制实验室。该系统需要为该项目拥有足够的计算能力,并且可以轻松学习学习和使用。

Crane trolley used in the experimental setup.

Solution

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.

Loading bridge lab setup.

Results

  • 实验室设置成本降低了数千欧元。“The controller designs for the loading bridge project are not especially complex and, as a result, do not need all the processing power and capabilities of commercial hardware,” says van der Kamp. “Simulink and Simulink Support Package for Raspberry Pi enabled us to create an alternative prototyping lab setup for this project that costs thousands of euros less.”
  • 启用交互式控制器调整和可视化。“通过Sim金宝appulink外部模式,学生可以观看他们的控制器的输入和输出数据,因为它在Raspberry PI上运行并在飞行时调整控制器参数,”van der Kamp Notes。“之前不可能的相互作用水平是不可能的。”
  • 学生释放到实验室外面完成工作。“通过校园范围的许可证,我们的学生可以使用Matlab,而不是在实验室中使用,而是在家里或校园的任何地方使用自己的笔记本电脑,”Van d金宝apper Kamp说。“这种灵活性会使他们对完成课程项目的动力。”

Ostfalia University of Applied Sciences is among the nearly 1000 universities worldwide that provide campus-wide access to MATLAB and Simulink. With the Campus-Wide License, researchers, faculty, and students have access to a common configuration of products, at the latest release level, for use anywhere—in the classroom, at home, in the lab or in the field.