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 and then analyze and visualize it in MATLAB.
Connect to your Raspberry Pi from a desktop installation of MATLAB or through a web browser with MATLAB Online™.
Libraries of MATLAB functions are provided for the following Raspberry Pi add-ons and interfaces:
Learn more about Raspberry Pi programming with MATLAB and Simulink.
The setup process for MATLAB Support Package for Raspberry Pi Hardware is different depending on whether you are using MATLAB on the desktop or MATLAB Online.
If you are using the desktop version of MATLAB, you need to install the support package in MATLAB.
If you are using MATLAB Online, the support package is already installed for you. However, you need to prepare your Raspberry Pi by installing the MATLAB package for Raspberry Pi on the device.
The following Raspberry Pi models are supported by the support package.
|Raspberry Pi Model||MATLAB Releases Supported||Supported in MATLAB Online?|
|Raspberry Pi 1 Model B (discontinued)||R2014a - Current||No|
|Raspberry Pi 1 Model B+||R2014b - Current||No|
|Raspberry Pi 2 Model B||R2014b - Current||Yes|
|Raspberry Pi 3 Model B||R2016a - Current||Yes|
|Raspberry Pi Zero W||R2018a - Current||No|
Note: Raspberry Pi 1 Model A, Raspberry Pi 1 Model A+, Raspberry Pi Zero, and Raspberry Pi 3 Model B+ are currently not supported.
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.
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.
Related Hardware Support Views: MATLAB, Consumer Electronics, Digital Signal Processing, I2C ∕ SPI, Image Processing and Computer Vision, Instrumentation, Internet of Things, MathWorks Supported, MATLAB Product Family, Medical Devices, Project-Based Learning, Raspberry Pi, Serial, Support Package Installer Enabled, Test and Measurement
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.