Main Content

Common

Arduino Common blocks

Create and configure Simulink® models with system and communication peripheral blocks, motor and device control blocks.

I/O Blocks

Analog InputMeasure voltage of analog input pin
Analog OutputGenerate voltage on the specified DAC pin
Digital InputGet logical value of digital input pin
Digital OutputSet logical value of digital output pin
Continuous Servo WriteSet direction and speed of continuous rotation servo motor
External InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine
Input CaptureMeasure frequency and duty cycle of external input signal
Protocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure
Protocol DecoderDecode a uint8 byte stream by specifying the packet structure
Standard Servo ReadMeasure shaft position of standard servo motor in degrees
Standard Servo WriteSet shaft position of standard servo motor to angle specified in degrees

Communication Protocol Blocks

BLE SendSend data using Bluetooth Low Energy (BLE) protocol
BLE ReceiveReceive data using Bluetooth Low Energy (BLE) protocol
CAN Transmit Transmit message to CAN network
CAN Receive Receive message from CAN network
I2C WriteWrite data to an I2C peripheral device or an I2C peripheral device register
I2C ReadRead data from I2C peripheral device or I2C peripheral device register
Modbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network
Modbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network
Modbus RS485 Server ReadServer device reads data from the server device register over RS485 network
Modbus RS485 Server WriteServer device writes data to server device register over RS485 network
SPI WriteReadWrite data to and read data from an SPI device
Serial ReceiveReceive data over Arduino serial port
Serial TransmitTransmit data over Arduino serial port

Motor Control Blocks

L293D DC MotorControl power and direction of a DC motor
PCA9685 DC MotorControl power and direction of a DC motor
L293D DC MotorControl power and direction of a DC motor
PCA9685 DC MotorControl power and direction of a DC motor

Device Control Blocks

NeoPixelControl color and brightness of RGB and RGBW Adafruit NeoPixel LED strip
PWMGenerate pulse width modulated signal on analog output pin
SD Card File ReadRead data from an SD card
On-board EEPROM ReadRead data from on-board Arduino EEPROM
On-board EEPROM WriteWrite data to on-board Arduino EEPROM

Topics

Tutorials