Raspberry Pi Support from MATLAB

Use MATLAB to acquire sensor and image data from your connected Raspberry Pi.

Raspberry Pi™ is a tiny, low-cost, single-board computer designed for teaching. The Raspberry Pi features a Broadcom® system-on-a-chip which includes an ARM® processor, onboard RAM, and a VideoCore IV GPU.

Support for Raspberry Pi 2 New

Use MATLAB with your Raspberry Pi 2. Download support by clicking the "Get Support Package Now" button above.

With the MATLAB® Support Package for Raspberry Pi Hardware, you can access peripheral devices through the Raspberry Pi. This support allows you to acquire data from sensors and imaging devices connected to the Raspberry Pi. Specifically, a library of MATLAB functions are provided for the following Raspberry Pi add-ons and interfaces:

  • Raspberry Pi Camera Board
  • I2C interface
  • SPI interface
  • Serial interface
  • GPIO

Students can use MATLAB to acquire data from connected devices, and then they can analyze and visualize their data in MATLAB.

MATLAB support for Raspberry Pi also includes:

Note that you cannot run MATLAB code as a standalone application on a Raspberry Pi. To develop applications for the Raspberry Pi to be used in standalone operation, please see the Simulink® Support for Raspberry Pi.

Platform Support

Available on 32-bit and 64-bit Microsoft® Windows® and 64-bit Mac OS X.

Ready to install?

MathWorks Requirements

Software

Required

Also supported in student and home software.

Recommended

Support Package

Required

Support Package Installer installs this support package. 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 (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)
  • 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)

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

Recommended

Request Hardware Support