PlayStation 2 meets Matlab/Simulink and STM32F4

Using a PlayStation 2 as a Real-Time Control device. STM32F4 acts as I/O device. Comm using UDP Ethernet

Using a PlayStation 2 as a Real-Time Control device. STM32F4 acts as I/O device. Comm using UDP Ethernet

A new finished project, the “composition” of a Real-Time operating system executing Simulink models in a PlayStation 2 plus a STM32F4 as a powerful Input/Output device, that provides huge I/O capabilities to the powerful PS2 CPU, making an extremely powerful embedded control device.

 

Simulink.elf is the executable generated from C code from Matlab/Simulink

Simulink.elf is the executable generated from C code from Matlab/Simulink

The PlayStation 2 Simulink blockset is capable of generate all the required C source code. Special functions have been created as Scopes and data Displays that generates all the needed C code using SDL optimized graphical library, created by Antonio Flores Caballero at Robotics Lab, UC3M.

 

Next images show the Simulink model running, there is a Simulink model for the PS2 and another model for the STM32F4 Discovery board. Data exchange uses Ethernet UDP.

Beatiful and self-explanatory

Beatiful and self-explanatory

Scope and display functions of PS2 Blockset also generates source code

Scope and display functions of PS2 Blockset also generates source code