Main Content

Modeling

Prepare model for hardware connection, add blocks to support hardware protocols

Prepare Simulink® models for hardware connection, add blocks to support hardware protocols, examples featuring various applications.

Blocks

expand all

V4L2 Video CaptureCapture video from USB camera using V4L2 framework
SDL Video DisplayDisplay video using SDL
eSpeak Text to SpeechConvert text into speech on default audio device
ALSA Audio CaptureCapture audio from sound card using ALSA
Audio File ReadRead audio frames from an audio file
ALSA Audio PlaybackSend audio to sound card for playback using ALSA
GPIO ReadRead GPIO pin status
GPIO WriteSet GPIO pin status
Standard Servo WriteSet shaft position of standard servo motor to angle specified in degrees
LEDIlluminate built-in LED on Raspberry Pi board
PWMGenerate pulse width modulated signal of digital output pin
External InterruptTrigger downstream function-call subsystem from interrupt service routine
EncoderMeasure incremental position and direction of rotating motor
Pan Tilt HatControl pan and tilt motions using PCA9685-based PWM driver
ADS1x15Read digital output data from ADS1015 and ADS1115 ADCs
CAN Receive Receive message from CAN network
CAN TransmitTransmit message to CAN network
SPI Master TransferWrite data to and read data from SPI slave device
SPI Register WriteWrite data to registers of an SPI slave device
SPI Register ReadRead data from SPI slave device register
I2C Master ReadRead data from I2C slave device or I2C slave device register
I2C Master WriteWrite data to I2C slave device or I2C slave device register
Serial WriteWrite data to the serial device
Serial ReadRead data from serial device
NNG SendSend data through nanomsg next gen (NNG) using publish/subscribe protocol
NNG ReceiveReceive data through nanomsg next gen (NNG) using publish/subscribe protocol
ThingSpeak ReadRead data stored in ThingSpeak channel
ThingSpeak WritePublish data to Internet of Things using ThingSpeak
MQTT SubscribeReceive messages from MQTT broker for specified topic
MQTT PublishPublish messages to MQTT broker on specified topic
TalkBack ReadRead command(s) from TalkBack ID on ThingSpeak TalkBack server
TalkBack WriteWrite command(s) to TalkBack ID on ThingSpeak TalkBack server
UDP ReceiveReceive UDP packets over IP network
UDP SendSend UDP packets over IP network
TCP/IP ReceiveReceive data over TCP/IP network from remote host
TCP/IP SendSend data over TCP/IP network to another remote host
Websocket PublishPublish data to WebSocket server in JSON format
Websocket SubscribeSubscribe to the JSON data received by a WebSocket server
Modbus TCP/IP Master ReadMaster device reads data from slave device register(s) over TCP/IP network
Modbus TCP/IP Master WriteMaster device writes data to slave device register(s) over TCP/IP network
Modbus TCP/IP Slave ReadSlave device reads data from slave device register over TCP/IP network
Modbus TCP/IP Slave WriteSlave device writes data to slave device register over TCP/IP network
HTS221 Humidity SensorMeasure relative humidity and ambient temperature from Humidity sensor
LPS25h Pressure SensorMeasure barometric air pressure and ambient temperature
LSM9DS1 IMU SensorMeasure linear acceleration, angular rate and magnetic field along X, Y, and Z axis
JoystickRead the state of five-position Joystick
8x8 RGB LED MatrixControl pixel(s) color of 8x8 RGB LED Matrix

Environmental Sensors

BME280 Pressure SensorMeasure barometric air pressure, relative humidity, and temperature from BME280 sensor
BMP280 Pressure SensorMeasure barometric air pressure and ambient temperature from BMP280 sensor
CCS811 Air Quality SensorMeasure equivalent CO2 (eCO2) and the equivalent total volatile organic compound concentration (eTVOC)
LPS22HB Pressure SensorMeasure barometric air pressure and temperature from LPS22HB sensor

IMU Sensors

ADXL34x AccelerometerMeasure linear acceleration along axes of ADXL34x family of accelerometers
BMI160 IMU SensorMeasure linear acceleration, angular rate, and temperature from BMI160 sensor
BMM150 MagnetometerMeasure magnetic field from BMM150 sensor
ICM20948 IMU SensorMeasure linear acceleration, angular velocity, magnetic field, and temperature from ICM20948 IMU sensor
LIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor
LSM303C IMU SensorMeasure linear acceleration, magnetic field strength, and temperature from LSM303C sensor
LSM6DS3 IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DS3 sensor
LSM6DS3H IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DS3H sensor
LSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor
LSM6DSM IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSM sensor
LSM6DSO IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSO sensor
LSM6DSR IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSR sensor
Ultrasonic SensorMeasure distance between ultrasonic sensor and object
VL53L0X Time of Flight SensorMeasure distance to a target object

Functions

getRunOnBootGet name of Simulink model added to Run-on-boot
addToRunOnBootAdd Simulink model to Run-on-boot
removeRunOnBootRemove a Simulink model from Run-on-boot
listAudioDevicesList available ALSA audio devices

Topics

Tutorials