Accelerating the pace of engineering and science

Raspberry Pi Support from Simulink

Run models on Raspberry Pi

Capabilities and Features:

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.

Support for Raspberry Pi 3 New

Use MATLAB Release 2016a with your Raspberry Pi 3. Download support by clicking the "Get Support Package" button above.

The support package includes:

  • Library of Simulink blocks that connect to Raspberry Pi I/O, such as audio input and output, video input and display, UDP send and receive, GPIO read and write, and ThingSpeak write
  • Interactive parameter tuning and signal monitoring of applications running on Raspberry Pi
  • Model deployment for standalone operation
  • Access to audio and video algorithms through add-on products such as DSP System Toolbox™ and Computer Vision System Toolbox™

Learn more about Raspberry Pi programming with MATLAB and Simulink.

Watch video to learn how to implement serial communication between Raspberry Pi and Arduino.

About Raspberry Pi

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.

Platform Support

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.

Ready to install?

Before installing the support package, confirm you have the correct setup. View system requirements and installation options.

MathWorks Requirements

Software

Required

Also supported in student and home software.

Recommended

Support Package

Required

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.

Third-Party Requirements

Hardware

Required

  • Raspberry Pi 1 Model B or B+, Raspberry Pi 2 Model B, Raspberry Pi 3 Model B (Premier Farnell/Element 14 and RS Components)
  • 4 GB SD card (Raspberry Pi 1 Model B) or 4 GB microSD card (Raspberry Pi 1 Model B+, Raspberry Pi 2 Model B, Raspberry Pi 3 Model B)
  • 5 V power supply; 700 mA or greater
  • Ethernet cable from the host computer to the Raspberry Pi
  • SD card reader (Raspberry Pi 1 Model B) or microSD card reader (Raspberry Pi 1 Model B+, Raspberry Pi 2 Model B, Raspberry Pi 3 Model B)

Note: Raspberry Pi 1 Model A and Raspberry Pi 1 Model A+ are not currently supported.

Recommended

  • USB webcam
    (Support package tested with Logitech Webcam Pro 9000)
  • Audio patch cables
  • USB hub with external power supply

Software

Required

All required third-party software is installed by the Support Package Installer.

Request Hardware Support