このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
Common
Arduino Common ブロック
ブロック
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 peripheral device or an I2C peripheral device register |
I2C Read | Read data from I2C peripheral device or I2C peripheral 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 data over Arduino serial port |
Serial Transmit | Transmit data over Arduino 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 (R2020b 以降) |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (R2020b 以降) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (R2020b 以降) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (R2020b 以降) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (R2020b 以降) |
BLE Send | Send data using Bluetooth Low Energy (BLE) protocol (R2021b 以降) |
BLE Receive | Receive data using Bluetooth Low Energy (BLE) protocol (R2021b 以降) |
Protocol Encoder | Encode input data into a uint8 byte stream by specifying the packet structure (R2021b 以降) |
Protocol Decoder | Decode a uint8 byte stream by specifying the packet structure (R2021b 以降) |
L293D DC Motor | Control power and direction of a DC motor (R2023a 以降) |
PCA9685 DC Motor | Control power and direction of a DC motor (R2023a 以降) |
L293D DC Motor | Control power and direction of a DC motor (R2023a 以降) |
PCA9685 DC Motor | Control power and direction of a DC motor (R2023a 以降) |
NeoPixel | Control color and brightness of RGB and RGBW Adafruit NeoPixel LED strip (R2024a 以降) |
On-board EEPROM Read | Read data from on-board Arduino EEPROM (R2024a 以降) |
On-board EEPROM Write | Write data to on-board Arduino EEPROM (R2024a 以降) |
トピック
- 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.
チュートリアル
- 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. The example uses the same board to generate and detect the PWM signal. The pin 2 is connected to the pin 3 of the Arduino Mega 2560 hardware. The pin 2 generates PWM signal. When there is a rising edge at pin 3, the External Interrupt block executes a function call to calculate the time between two consecutive rising edges of the signal, which in turn is used to calculate the frequency of the signal at pin 3. - 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. It also shows how to control the status of an onboard LED on a peripheral device from the central device and vice versa using BLE communication. - 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. When the Arduino hardware receives data, it transmits back the same data to the host. The host then displays both the transmitted and received data on the scope. - 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. An Arduino® MKR1000 board is used to count the number of steps a person takes while walking. The pedometer is attached to the thigh of the person in such a way that the x-axis of the gyroscope is perpendicular to the direction of walking. The data from a gyroscope sensor is sent to an Android device using the User Datagram Protocol (UDP). - 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. On deployment, the Simulink model reads audio from the SD card, adds an echo effect to the audio, and then plays the audio with the echo through the headphones connected to the analog output pin of the 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. On deployment, the Simulink model reads audio from the SD card, adds the reverb effect to the audio, and then plays the processed audio through the headphones connected to the analog output pin of the 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. It also shows the four modes of operation: Client Read, Client Write, Server Read, and Server Write. - 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.