Common
Arduino Common blocks
Create and configure Simulink® models with system and communication peripheral blocks, motor and device control blocks.
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 Communication with Arduino Hardware
Configure serial communication.
- Support I2C Communication
Support I2C communication.
- Support SPI Communication
Support SPI communication.
Tutorials
- Get 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. - Communicate 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 shows how to use the Simulink® Support Package for Arduino® Hardware to read data from acsv
file using the SD Card File Read block on 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. - Send and Receive Data Between Arduino and Host Using Serial Communication
This example shows how to use the Serial Transmit and Serial Receive blocks from the Simulink® Support Package for Arduino® Hardware to transmit and receive data between your host computer and Arduino hardware using a USB to serial converter. - 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. - Develop Gyroscope-Based Pedometer Using Arduino
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 Client and Server 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 client and server. - 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. - Send and Receive Data of Variable Lengths Using Arduino Serial Communication Blocks
This example shows how to use the Serial Transmit and Serial Receive blocks from the Simulink® Support Package for Arduino® Hardware to transmit and receive data of variable lengths on the Arduino serial port using a USB to serial converter. - Control NeoPixel LEDs Using On-Board EEPROM on Arduino
This example shows how to use the Simulink® Support Package for Arduino® Hardware to use the Adafruit® NeoPixel Digital LED strip and Arduino on-board EEPROM to create different lighting effects and patterns in External mode and Connected IO modes.