Main Content

常用

Arduino 常用模块

创建和配置具有系统和通信外设模块、电机和设备控制模块的 Simulink® 模型。

I/O 模块

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

通信协议模块

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

电机控制模块

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

设备控制模块

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

主题

教程