Common
Arduino Common blocks
Blocks
Analog Input | Measure voltage of analog input pin |
Analog Output | Generate voltage on the specified DAC pin |
CAN Transmit | Transmit message to CAN network |
CAN Receive | Receive message from CAN network |
Continuous Servo Write | Set direction and speed of continuous rotation servo motor |
Digital Input | Get logical value of digital input pin |
Digital Output | Set logical value of digital output pin |
I2C Write | Write data to an I2C slave device or an I2C slave device register |
I2C Read | Read data from I2C slave device or I2C slave device register |
SPI WriteRead | Write data to and read data from an SPI device |
PWM | Generate pulse width modulated signal on analog output pin |
Serial Receive | Receive an [Nx1] array of data on the specified serial port and write it to the Data block output. When data is not available, write 0 to the Data block output |
Serial Transmit | Send buffered data to the specified serial port |
Standard Servo Read | Measure shaft position of standard servo motor in degrees |
Standard Servo Write | Set shaft position of standard servo motor to angle specified in degrees |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine |
SD Card File Read | Read data from an SD card |
Input Capture | Measure frequency and duty cycle of external input signal |
Modbus RS485 Master Read | Master device reads data from slave device register(s) over RS485 network |
Modbus RS485 Master Write | Master device writes data to slave device register(s) over RS485 network |
Modbus RS485 Slave Read | Slave device reads data from the slave device register over RS485 network |
Modbus RS485 Slave Write | Slave device writes data to slave device register over RS485 network |
BLE Send | Send data using Bluetooth Low Energy (BLE) protocol |
BLE Receive | Receive data using Bluetooth Low Energy (BLE) protocol |
Protocol Encoder | Encode input data into a uint8 byte stream by specifying the packet structure |
Protocol Decoder | Decode a uint8 byte stream by specifying the packet structure |
L293D DC Motor | Control power and direction of a DC motor |
PCA9685 DC Motor | Control power and direction of a DC motor |
Topics
- Model Configuration Parameters for Simulink Support Package for Arduino Hardware
Parameter and configuration options for creating and running applications on Simulink® Support Package for Arduino® Hardware.
- Use Serial Communications with Arduino Hardware
Configure serial communication.
- Support I2C Communication
Support I2C communication.
- Support SPI Communication
Support SPI communication.
Tutorials
- Getting Started with Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to run a Simulink model on Arduino board. - Control Standard Servo Motor Using Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to control a standard servo motor. - Read Temperature from I2C-Based Sensor Using Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to configure and read temperature from an I2C based sensor. - Communicating with SPI-Based EEPROM Using Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to enable and write to/read from an SPI based EEPROM. - Send and Receive Serial Data Using Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to send and receive serial data with Arduino hardware. - Trigger Downstream Function-Call Subsystem Using Arduino External Interrupt Block
This example shows how to trigger a downstream function call subsystem by using an External Interrupt block from the Simulink® Support Package for Arduino® Hardware. - Working with Arduino SD Card File Read Blocks
This example illustrates reading from acsv
file using SD Card File Read block on an Arduino® hardware. - Monitor Engine RPM Using Arduino CAN Blocks
This example shows how to use Simulink® Support Package for Arduino® Hardware to monitor vehicle engine RPM using Arduino CAN blocks. - Transmit and Receive Data Using Arduino CAN Blocks
This example shows how to use Simulink® Support Package for Arduino® Hardware to transmit and receive data from the CAN network using the specified CAN device. - Measure PWM Frequency by Triggering an ISR on Arduino Hardware
This example shows you how to measure the frequency of a pulse-width modulation (PWM) signal on an Arduino® hardware using Arduino External Interrupt block. - Control LED Status Using BLE Peripheral and Central Devices on Arduino Boards
This example shows how to use the Simulink® Support Package for Arduino® Hardware to configure Bluetooth® Low Energy (BLE) communication between Arduino peripheral and central devices. - Encode and Decode Serial Data Using Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to encode and decode serial data with Arduino hardware. - Drive with PID Control Using Arduino Board
This example shows how to simulate a simple closed-loop control algorithm in Simulink® and how to run it on an Arduino® board. - Line Follower Application for Arduino Robot
This example shows how to create a line follower algorithm in Simulink® and how to run it on an Arduino® Robot. - Read Serial Data from GPS Shield Using Arduino Hardware
This example shows how to use Simulink® Support Package for Arduino® Hardware to receive serial data from a GPS shield on the Arduino hardware. - Gyroscope-Based Pedometer
This example shows how MATLAB® Function blocks are used in Simulink® models to implement algorithms using MATLAB functions. - Measure Servo Motor Shaft Angle Using a Device Driver Block in Connected I/O
A guide to enable Connected I/O on a Simulink system object block that contains hardware specific code allowing access to hardware specific features. - Add Echo to Audio File Stored in SD Card of Arduino Hardware
This example shows how to add echo to an audio file read using the SD Card File Read block from Simulink® Support Package for Arduino® Hardware. - Shift Pitch of Audio File Stored in SD Card of Arduino Hardware
This example shows you how to shift the pitch of an audio file that is stored in an SD card of the Arduino hardware using Simulink® Support Package for Arduino® Hardware. - Add Reverb to Audio File Stored in SD Card of Arduino Hardware
This example shows how to add reverb to an audio file read using the SD Card File Read block from Simulink® Support Package for Arduino® Hardware. - MODBUS RS485 Communication Between Master and Slave Devices Using Arduino Board
This example shows how to use the Simulink® Support Package for Arduino® Hardware to implement a MODBUS® RS485 asynchronous, serial communication between MODBUS master and slave devices. - Measure Frequency and Duty Cycle Using TCS230 Color Sensor and Arduino Hardware
This example shows how to use the Simulink® Support Package for Arduino® Hardware to measure frequency and duty cycle of the red color component of an object using a TCS230 color sensor and Arduino hardware.