Raspberry Pi Blockset provides blocks and functions in MATLAB and Simulink for prototyping and implementing applications on Raspberry Pi® hardware. You can interface with hardware peripherals such as GPIO, I2C, SPI, and camera modules for rapid prototyping.
With Raspberry Pi Blockset, you can acquire sensor data, control actuators, and build applications for image and audio processing, signal processing, and Internet of Things (IoT) systems. You can also deploy machine learning or deep learning applications for edge computing on Raspberry Pi.
You can develop algorithms in MATLAB and Simulink and deploy them to Raspberry Pi using automatic code generation (with Embedded Coder). The blockset supports live parameter tuning, signal monitoring, and connected I/O workflows, enabling real-time interaction with hardware.
Getting Started
Set up and deploy MATLAB algorithms and Simulink models to Raspberry Pi hardware on Windows®, Mac®, and Linux® platforms.
Device Driver Blocks
Use device driver blocks to access hardware specific features of your board, such as communication protocols or hardware libraries.
Predictive Maintenance
Monitor the health of a rotating device or other equipment using a machine learning algorithm for predictive maintenance. Use ThingSpeak to view the operational state in the cloud.
Read Lidar Scan Data Over ROS
Read and receive a 2-D lidar scan data of an indoor environment from a ROS network using the Raspberry Pi hardware board.
Edge Detection
Acquire live image from a webcam and deploy an Edge detection function on the Raspberry Pi hardware as a standalone executable.
Deep Learning Image Classification
Generate and deploy code for ResNet-50 neural network to identify the image that is passed as an input using the command line of Raspberry Pi.
Supported Hardware
Raspberry Pi Model
- Raspberry Pi 5
- Raspberry Pi Compute Module 4
- Raspberry Pi Zero 2 W
- Raspberry Pi 4 Model B
- Raspberry Pi 3 Model B+
- Raspberry Pi Zero W
- Raspberry Pi 3 Model B
- Raspberry Pi 2 Model B
- Raspberry Pi 1 Model B+
Note: Raspberry Pi 1 Model A, Raspberry Pi Model B, Raspberry Pi 1 Model A+, and Raspberry Pi Zero are currently not supported. Raspberry Pi Pico is supported from the Arduino support package from R2024b.