Hauptinhalt

Modeling

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

The set of Simulink® blocks and core functionality available for Simulink Coder™ Support Package for BeagleBone® Blue Hardware.

Blocks

expand all

DC Motor blockDC MotorSet power, direction, and stopping action of a DC motor
Servo Motor blockServo MotorSet shaft position of servo motor
Analog Input blockAnalog InputMeasure voltage of specified analog input pin
Button blockButtonRead logical state of button
Digital Read blockDigital ReadRead logical state of digital input pin
Digital Write blockDigital WriteSet the logical state of the digital output pin
LED blockLEDIlluminate built-in LED
PWM blockPWMPulse width modulation of digital output pin
Beaglebone Blue I2C Controller Read block iconI2C Master ReadRead data from I2C peripheral device or I2C peripheral device register
Beagleboneblue I2C Controller Write block iconI2C Master WriteWrite data to I2C peripheral device or I2C peripheral device register
SPI Master Transfer blockSPI Master TransferWrite data to and read data from SPI peripheral device
SPI Register Read blockSPI Register ReadRead data from SPI peripheral device register
SPI Register Write blockSPI Register WriteWrite data to registers of an SPI peripheral device
SCI Write blockSCI WriteSend serial data to UART port
SCI Read blockSCI ReadRead serial data from UART port
TCP/IP Receive blockTCP/IP ReceiveReceive data over TCP/IP network from remote host
TCP/IP Send blockTCP/IP SendSend data over TCP/IP network to another remote host
UDP Receive blockUDP ReceiveReceive UDP packets from another UDP host on an Internet network
UDP Send blockUDP SendSend UDP packets to another UDP host on Internet network
Encoder blockEncoderMeasure incremental position and direction of a rotating motor
Barometer blockBarometerMeasure barometric air pressure around the BMP280 sensor
MPU9250 blockMPU9250Measure acceleration, angular rate, and magnetic field, and calculate fusion values such as Euler angles and quaternion along the axes of MPU-9250 sensor
SDL Video Display blockSDL Video DisplayDisplay video using SDL
V4L2 Video Capture blockV4L2 Video CaptureCapture video from USB camera using V4L2

Topics

Tutorials

Featured Examples