MuTech Robotics
Join
Kids OK with adultROS 2Level 3/3

How to Build a Robot Arm With ROS 2

Four servos, one driver board and a small computer. ROS 2 turns them into a robot arm that plans its own pick-and-place moves.

Sign in to save
How to Build a Robot Arm With ROS 2
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Low voltage. Power the servos from their own supply, and keep fingers out of the arm while it moves.

Strictly follow the description given with this video.

Video

How it works

  1. Wire the four servos to a 16-channel servo driver.
  2. Connect the driver to a single-board computer over I2C.
  3. In ROS 2 each joint becomes a link in the robot model.
  4. MoveIt plans the path, and the arm picks and places, first in simulation.

Parts you need

  • Servo motorServo motor₹379× 4Buy
  • 16-channel servo driver (PCA9685)16-channel servo driver (PCA9685)₹345× 1Buy
  • Single-board computer (4 GB)Single-board computer (4 GB)₹6,670× 1Buy
  • 5 V 3 A supply (servos)5 V 3 A supply (servos)₹253× 1Buy

Wiring

Driverchannels 0–3SDA / SCLV+Servos 1–4Computer I2C pins5 V supplyCommon GNDAll grounds
PowerGroundSignal
#FromConnect to
1 SignalServos 1–4Driver channels 0–3
2 SignalDriver SDA / SCLComputer I2C pins
3 Power5 V supplyDriver V+ (servo power)
4 GroundAll groundsCommon GND

3D print files

This project has no 3D-printed parts.

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.