Main Content

Common

Arduino Common blocks

Blocks

Analog InputMeasure voltage of analog input pin
Analog OutputGenerate voltage on the specified DAC pin
CAN Transmit Transmit message to CAN network
CAN Receive Receive message from CAN network
Continuous Servo WriteSet direction and speed of continuous rotation servo motor
Digital InputGet logical value of digital input pin
Digital OutputSet logical value of digital output pin
I2C WriteWrite data to an I2C slave device or an I2C slave device register
I2C ReadRead data from I2C slave device or I2C slave device register
SPI WriteReadWrite data to and read data from an SPI device
PWMGenerate pulse width modulated signal on analog output pin
Serial ReceiveReceive 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 TransmitSend buffered data to the specified serial port
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
External InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine
SD Card File ReadRead data from an SD card
Input CaptureMeasure frequency and duty cycle of external input signal
Modbus RS485 Master ReadMaster device reads data from slave device register(s) over RS485 network
Modbus RS485 Master WriteMaster device writes data to slave device register(s) over RS485 network
Modbus RS485 Slave ReadSlave device reads data from the slave device register over RS485 network
Modbus RS485 Slave WriteSlave device writes data to slave device register over RS485 network
BLE SendSend data using Bluetooth Low Energy (BLE) protocol
BLE ReceiveReceive data using Bluetooth Low Energy (BLE) protocol
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
L293D DC MotorControl power and direction of a DC motor
PCA9685 DC MotorControl power and direction of a DC motor

Topics

Tutorials