MATLAB Support Package for Raspberry Pi Hardware
MATLAB®Support Package for Raspberry Pi™ Hardwareenables you to communicate with a Raspberry Pi remotely from a computer running MATLAB or through a web browser withMATLAB Online™. You can acquire data from sensors and imaging devices connected to the Raspberry Pi and process them in MATLAB. You can also communicate with other hardware through the GPIO, serial, I2C, and SPI pins.
The support package functionality is extended if you haveMATLAB Coder™. WithMATLAB Coder, you can take the same MATLAB code used to interactively control the Raspberry Pi from your computer and deploy it directly to the Raspberry Pi to run as a standalone executable.
Installation and Setup
Install support for the hardware, update the firmware, and connect to the hardware
Connection to Raspberry Pi Hardware
创建一个连接到覆盆子π硬件
Run on Target Hardware
Deploy a MATLAB function as a standalone executable on the hardware
LEDs
用the Raspberry Pi’s LED
GPIO Pins
用the Raspberry Pi’s GPIO pins
Serial Port
用the Raspberry Pi’s serial port
I2C Interface
用the Raspberry Pi’s I2C interface
SPI Interface
用the Raspberry Pi’s SPI interface
Camera Board
用the Raspberry Pi’s add-on Camera Board
Sense HAT
用the Raspberry Pi’s add-on Sense HAT Board
Web Camera
用the Raspberry Pi web camera
Pulse Width Modulation
用the Raspberry Pi to create pulse-width-modulation (PWM) signals on GPIO pins
Servo
Write to servo motors connected to the Raspberry Pi hardware
Linux
用the Linux®command shell and manage files on Raspberry Pi hardware
Display
用the Raspberry Pi’s Display