- Version
- Download 11
- File Size 3.32 MB
- File Count 1
- Create Date August 19, 2025
- Last Updated August 19, 2025
UDP Communication with the Robot Computer and Arduino
Receive From Arduino
Summary
The purpose of this task is to demonstrate how the Kinarm Lab can receive data from a device connected to the Dexterit-E LAN using UDP. This task uses an Arduino as an example, receiving an integer value which controls the state of a single target in the task.
Description
The purpose of this task is to demonstrate how the Kinarm Lab can receive data from a device connected to the Dexterit-E LAN using UDP. This task uses an Arduino as an example, receiving an integer value which controls the state of a single target in the task.
The Arduino only serves as an example device to show what is required for UDP communication in your task's Simulink code. It can be changed to another device, but the Simulink code will need to be updated to parse the UDP packet sent by the device.
In order to run this task, the following are required:
- A Kinarm Lab with Dexterit-E LAN available
- An Arduino Ethernet Board or an Arduino with an Arduino Ethernet Shield (see https://docs.arduino.cc/libraries/ethernet/#Usage/Examples for more information)
- An Ethernet cable to connect the Arduino to the Dexterit-E LAN
How to use this task:
- Connect the Arduino to Dexterit-E LAN using the Ethernet cable
- Start the included task and task protocol on your Kinarm Lab
- Compile and upload the .ino file included in the download package to your Arduino
- When the upload is complete, a target should start blinking every 500 ms.
Send to Arduino
Summary
The purpose of this task is to demonstrate how the Kinarm Lab can send data to a device connected to the Dexterit-E LAN using UDP. This task uses an Arduino as an example, where the robot computer sends a delay to the Arduino to control the frequency of toggling an LED.
Description
The purpose of this task is to demonstrate how the Kinarm Lab can send data to a device connected to the Dexterit-E LAN using UDP. This task uses an Arduino as an example, where the robot computer sends a delay to the Arduino to control the frequency of toggling an LED.
The Arduino only serves as an example device to show what is required for UDP communication in your task's Simulink code. The external device can be changed, but the Simulink code will need to be updated to package UDP packets in the structure the receiving device expects.
In order to run this task, the following are required:
- An Arduino Ethernet Board or an Arduino with an Arduino Ethernet Shield (see https://docs.arduino.cc/libraries/ethernet/#Usage/Examples for more information)
- An Ethernet cable to connect the Arduino to the Dexterit-E LAN
How to use this task:
- Connect the Arduino to Dexterit-E LAN using the Ethernet cable
- Compile and upload the .ino file included in the download package to your Arduino
- Configure the Arduino Serial Monitor to 9600 bps.
- When the upload is complete, "LED ON" and "LED OFF" will now be printed every second.
- Start the included task and task protocol on your Kinarm Lab
- After the task runs, the "LED ON" and "LED OFF" will now be printed every 500 ms.
- The print interval can be changed by modifying the "Blink Interval" column included in the task protocol.