Simulink® Support Package for Raspberry Pi™ lets you develop algorithms that run standalone on your Raspberry Pi. The support package extends Simulink with blocks to drive Raspberry Pi digital I/O and read and write data from them. After creating your Simulink model, you can simulate it and download the completed algorithm for standalone execution on the device. One particularly useful (and unique) capability offered by Simulink is the ability to tune parameters live from your Simulink model while the algorithm runs on the hardware.
The support package includes:
Learn more about Raspberry Pi programming with MATLAB and Simulink.
Watch video to learn how to implement serial communication between Raspberry Pi and Arduino.
Note: Raspberry Pi 3 requires release 2016a or later.
Raspberry Pi is a popular, low-cost, credit card sized single-board computer that supports embedded Linux operating systems, such as Raspbian. Raspberry Pi is powered by ARM® Cortex® A processors and provides peripheral connectivity for stereo audio, digital video (1080p), USB, and Ethernet – with optional camera board and sensor board add-ons.
See the hardware support package system requirements table for current and prior version, release, and platform availability.
View enhancements and bug fixes in release notes.
Ask a question or share your files with the MATLAB community.
Before installing the support package, confirm you have the correct setup. View system requirements and installation options.
Support Package Installer installs this support package and all required third-party software. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation.
Note: Raspberry Pi 1 Model A and Raspberry Pi 1 Model A+ are not currently supported.
All required third-party software is installed by the Support Package Installer.
Related Hardware Support Views: Raspberry Pi, Control Systems, Digital Signal Processing, Embedded Systems, Image Processing and Computer Vision, Internet of Things, Alsa, Ethernet, Serial, USB, V4L2, Webcam (USB Video), Simulink Product Family, Simulink, C/C++ Code Generation, MathWorks Supported, Project-Based Learning, Run on Target Hardware, Support Package Installer Enabled