Modeling
Blocks
ALSA Audio Capture | Capture audio from sound card using ALSA |
ALSA Audio Playback | Send audio to sound card for playback using ALSA |
Audio File Read | Read audio frames from an audio file |
eSpeak Text to Speech | Convert text to speech for output on default audio device |
GPIO Read | Read logical value of GPIO pin configured as input |
GPIO Write | Write logical value of GPIO pin configured as output |
LED | Illuminate built-in LED |
PWM | Pulse width modulation of digital output pin |
SDL Video Display | Display video using SDL |
Standard Servo Write | Drive servo motor to specified angle |
I2C Master Read | Read data from I2C slave device or I2C slave device register |
I2C Master Write | Write data to I2C slave device or I2C slave device register |
SPI Master Transfer | Write data to and read data from SPI slave device |
SPI Register Read | Read data from SPI slave device register |
SPI Register Write | Write data to registers of an SPI slave device |
ThingSpeak Read | Read data stored in ThingSpeak channel |
ThingSpeak Write | Publish data to the Internet of Things using ThingSpeak |
UDP Receive | Receive UDP packets over IP network |
UDP Send | Send UDP packets over IP network |
TCP/IP Receive | Receive data over TCP/IP network from remote host |
TCP/IP Send | Send data over TCP/IP network to another remote host |
Serial Write | Write data to the serial device |
Serial Read | Read data from serial device |
V4L2 Video Capture | Capture video from USB camera using V4L2 |
8x8 RGB LED Matrix | Control pixel(s) color of 8x8 RGB LED Matrix |
HTS221 Humidity Sensor | Measure relative humidity and ambient temperature from Humidity sensor |
Joystick | Read the state of five-position Joystick |
LPS25h Pressure Sensor | Measure barometric air pressure and ambient temperature |
LSM9DS1 IMU Sensor | Measure linear acceleration, angular rate and magnetic field along X, Y, and Z axis |
MQTT Publish | Publish messages to MQTT broker on specified topic |
MQTT Subscribe | Receive messages from MQTT broker for specified topic |
Topics
Model Configuration Simulink Support Package for Raspberry Pi Hardware
Specify hardware options to simulate and generate code for models of computer-based systems, such as embedded controllers.
Open Block Library for Raspberry Pi Hardware
Locate Simulink®block library for Raspberry Pi™ hardware
Use Camera Board with V4L2 Video Capture Block
Add Support for Raspberry Pi Camera Board
测井信号仿真软件模型在一个SD卡谅金宝app解备忘录nted on the target hardware
Tutorials
Get Started
Getting Started with Simulink Support Package for Raspberry Pi Hardware
This example shows you how to use Simulink® Support Package for Raspberry Pi™ Hardware to run a Simulink models on Raspberry Pi hardware.
Getting Started with Robot Operating System (ROS) on Raspberry Pi®
这个例子展示了如何背包e and build a standalone ROS node from a Simulink model on the Raspberry Pi hardware.
This example shows how to use Simulink® Support Package for Raspberry Pi Hardware to read from and write to an SPI EEPROM.
Read temperature from a TMP102 sensor
This example illustrates how to use Simulink® Support Package for Raspberry Pi™ Hardware to configure and read temperature from a TMP102 sensor.
MAT-file logging on Raspberry Pi™ Hardware
This example shows you how to log signals from a Simulink® model on Raspberry Pi™ hardware in the MAT-file format.
Publish and Subscribe to Messages on ThingSpeak Using MQTT Blocks
This example shows you how to publish and subscribe to messages from a ThingSpeak broker using MQTT blocks provided by the Simulink® Support Package for Raspberry Pi™ Hardware.
Communicating with Smartphones and Tablets
LED Control from Android™ Device
This example shows you how to control Raspberry Pi® LED from an Android device.
LED Control from Apple iOS Device
This example shows you how to control Raspberry Pi® LED from iPhone or iPad.
Surveillance Camera with Android™ Device
This example shows how to use Raspberry Pi® hardware and an Android device to build a surveillance camera.
Surveillance Camera with Apple iOS Device
This example shows how to use Raspberry Pi® hardware and an Apple iOS device, such as iPhone or iPad, to build a surveillance camera.
Applications
This example shows how to use ALSA Audio Playback block from the Raspberry Pi® block library to implement a parametric audio equalizer algorithm with a Simulink® model and to run the model on Raspberry Pi hardware.
This example shows how to use the V4L2 Video Capture and the SDL Video Display blocks from the Raspberry Pi® block library to implement an image inversion algorithm with a Simulink® model, and to run the model on Raspberry Pi hardware.
This example shows how to use Raspberry Pi® hardware to interface to a motion sensor and control an external LED.
Stream Images from Raspberry Pi using Robot Operating System (ROS)
This example shows you how to stream images captured from a webcam on Raspberry Pi board to the host computer using ROS communication interface.
Auto-rotate an image displayed on Sense HAT LED matrix
This example shows you how to develop a Simulink model to implement an algorithm to read the Accelerometer On-board Sense HAT and control the rotation of the image displayed on the LED matrix.
Controlling LEGO MINDSTORMS EV3 robot using Raspberry Pi Sense HAT
This example shows how to read the Accelerometer on Raspberry Pi Sense HAT and use this data to control the motion of a LEGO MINDSTORMS EV3 robot.
Counting Steps using Raspberry Pi Sense HAT
This example demonstrates an application that counts the number of steps a person walked while holding a Raspberry Pi™ Sense HAT.
Audio Visualizer Using Raspberry Pi™ Sense HAT
This example shows how to simulate an audio visualizer on Sense HAT using the Simulink® Support Package for Raspberry Pi™ Hardware.