Page cover

PART 2: Practical ROS 2 Applications with Hardware

We will focus on integrating ROS Foxy with an Arduino Nano, using Python for the ROS code. This tutorial will guide you through setting up simple communication between ROS and Arduino, controlling LEDs, a servo motor, and combining these elements for more complex interactions. By the end of the day, you’ll be able to control both LEDs and a servo motor using ROS, and teleoperate the system.

This step-by-step approach helps participants understand both the software and hardware aspects of robotics, starting with simple connections and expanding to more complex control using ROS topics.


Required Components

  1. Arduino Nano (or any compatible board)

  2. USB Cable (to connect Arduino to Raspberry Pi)

  3. Red and Blue LEDs (with 220Ω resistors)

  4. Mini Servo Motor (e.g., SG90)

  5. Breadboard and Jumper Wires

We'll begin with a basic connection to understand the communication between ROS and Arduino. The complexity will increase as we integrate LEDs and a servo motor into the setup.

Last updated