Hardware Support

Raspberry Pi Support from MATLAB

Acquire sensor and image data from your connected Raspberry Pi


Capabilities and Features

With MATLAB® Support Package for Raspberry Pi™ Hardware, you can remotely communicate with a Raspberry Pi computer and use it to control peripheral devices. This support allows you to acquire data from sensors and imaging devices connected to the Raspberry Pi.

Support for Raspberry Pi 3

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

Libraries of MATLAB functions are provided for the following Raspberry Pi add-ons and interfaces:
  • Raspberry Pi Sense HAT
  • Raspberry Pi Camera Board
  • I2C, SPI, and Serial interfaces
  • PWM and servo motor control
  • GPIO
  • Linux system shell

Connect to your Raspberry Pi over Ethernet or Wi-Fi, use MATLAB to acquire data from connected devices, and then analyze and visualize it in MATLAB. Access signal processing and video algorithms through add-on products such as DSP System Toolbox™Image Processing Toolbox™, and Computer Vision System Toolbox™.

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

Learn more about Raspberry Pi programming with MATLAB and Simulink.

About Raspberry Pi

Raspberry Pi is a tiny, low-cost, single-board computer that supports embedded Linux operating systems, such as Raspbian. The Raspberry Pi features a Broadcom® system-on-a-chip, which includes an ARM® processor, onboard RAM, and a VideoCore IV GPU.

Platform Support

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


Related Hardware Support Views: MATLAB, Computer Vision System Toolbox, Consumer Electronics, DSP System Toolbox, Digital Signal Processing, I2C ∕ SPI, Image Processing Toolbox, Image Processing and Computer Vision, Instrumentation, Internet of Things, MATLAB Product Family, MathWorks Supported, Medical Devices, Project-Based Learning, Raspberry Pi, Serial, Signal Processing Toolbox, Support Package Installer Enabled, Test and Measurement

Ready to install?

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

Get Support Package

Software

Required

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.

Get Support Package

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

  • Raspberry Pi camera board
  • Audio patch cables
  • USB hub with external power supply
  • Raspberry Pi Sense HAT

Don't see the hardware you're looking for?