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®11 processor running at 700 MHz, 256 or 512 MB RAM, and a VideoCore IV GPU.

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® only.

Ready to install?

MathWorks Requirements



Also supported in student and home software.


Support Package


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



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

Note: Raspberry Pi Model A is not currently supported.


Request Hardware Support