hardware support

available now: control your raspberry pi from simulink online

capabilities and features

simulink® support package for raspberry pi™ lets you develop algorithms that run standalone on your raspberry pi. the support package extends simulink with blocks to drive raspberry pi digital i/o and read and write data from them. after creating your simulink model, you can simulate it and download the completed algorithm for standalone execution on the device. one particularly useful (and unique) capability offered by simulink is the ability to tune parameters live from your simulink model while the algorithm runs on the hardware.

the support package includes:

  • library of simulink blocks that connect to raspberry pi i/o, such as audio input and output, video input and display, gpio read and write, and thingspeak™ read and write
  • hardware setup screens to configure raspberry pi hardware and wi-fi network interface
  • customization of existing raspbian os images to make it compatible with the simulink support package
  • data logging from sensors and signals into mat files saved on the raspberry pi
  • udp and tcp/ip blocks to let your raspberry pi communicate with , , and mobile devices ( and )
  • read and write blocks to communicate with peripherals over serial and the spi and i2c protocols (raspberry pi board as the master)
  • publish and subscribe blocks for mqtt client support for machine-to-machine and iot applications
  • blocks to read input from the  used in , such as humidity, pressure, and acceleration, user input from the joystick, and a block to write to the rgb led matrix display
  • audio file read block to read audio files as pcm data, and multichannel support for audio capture and playback blocks
  • access to audio and video algorithms through add-on products such as audio toolbox™ and computer vision toolbox™
  • model deployment for standalone operation
  • interactive parameter tuning and signal monitoring of applications running on raspberry pi
  •  that guides you on how to create a device driver block to access specific features of your hardware board
  • simulink coder™ lets you access the c code generated from simulink and trace it back to the original model.
  • embedded coder® lets you generate optimized code, use code replacement libraries, and perform software-in-the-loop and processor-in-the-loop verification.
  •  on how to use the matlab function block in simulink models to deploy algorithms based on matlab code.

learn more about raspberry pi programming with matlab and simulink.

supported hardware

the following raspberry pi models are supported by the support package. 

raspberry pi model simulink releases supported
raspberry pi 1 model b (discontinued) r2014a - current 
r2014b - current 
r2014b - current 
r2016a - current 
r2018a - current 
r2018b - current
r2020a - current

note: raspberry pi 1 model a, raspberry pi 1 model a , and raspberry pi zero are currently not supported.

about raspberry pi

raspberry pi is a popular, low-cost, credit card sized single-board computer that supports embedded linux operating systems, such as raspbian. raspberry pi is powered by arm® cortex® a processors and provides peripheral connectivity for stereo audio, digital video (1080p), usb, and ethernet – with optional camera board and sensor board add-ons.

platform support

see the  for current and prior version, release, and platform availability.

view enhancements and bug fixes in .

ask a question or share your files with the matlab community.

related file exchange submissions

网站地图