Examples Introduction
This Github Repository provides a set of demos to showcase the capabilities of the
adi_iio
ROS2 package and how you can use it to interface with various
Analog Devices IIO devices.
Setup
Before your can run the examples, you need to install the adi_iio
package.
Please follow the instructions in the Installation section, under build
from source.
Build examples from Source
With the
adi_iio
package installed, you can build the examples from source by running the following commands in your terminal:
export COLCON_WS=~/ros2_ws
cd $COLCON_WS
colcon build \
--symlink-install \
--event-handlers console_cohesion+ \
--base-paths ./src/iio_ros2/examples/
The previous command will build all the available examples in the
adi_iio
package. You can also build a specific example by specifying the
--base-path
of the example you want to build.
Examples Overview:
-
This example demonstrates how to call the services exposed by the
adi_iio
node. It provides a reference for using the services to read/write IIO attributes and manage IIO buffers. -
This demo showcases the usage of the AD5592R device, which is an 8-channel, 12-bit, configurable ADC/DAC with on-chip Reference using an SPI Interface.
-
This demo demonstrates the functionalities of the AD7124, a high-precision integrated ADC suitable for various industrial applications.
-
This demo illustrates how to interface with the hwmon subsystem to read temperature, current and voltage data from the system’s sensors.