Skip to content
MCU Atlas

Waveshare RoArm-M2: ESP32 desktop robot arm firmware

Open firmware for the Waveshare RoArm-M2, a 4-DOF desktop robot arm driven by an ESP32: web control, position teaching and ROS2 support.

Difficulty:IntermediateSource available

Photos

Waveshare RoArm-M2: ESP32 desktop robot arm firmware photo 1
Waveshare RoArm-M2: ESP32 desktop robot arm firmware photo 2
Waveshare RoArm-M2: ESP32 desktop robot arm firmware photo 3
Waveshare RoArm-M2: ESP32 desktop robot arm firmware photo 4

Photos: waveshareteam/roarm_m2

Key Facts

  • Chip: ESP32
  • Actuators: serial bus servos
  • DOF: 4 (3 joints + gripper)
  • Control: web app, JSON, ESP-NOW, ROS2

About This Project

RoArm-M2 is a commercial 4-DOF arm kit from Waveshare whose ESP32 firmware is open on GitHub. It uses serial bus servos, a 360-degree base and offers a web app with coordinate control, plus JSON commands over Wi-Fi, serial or ESP-NOW and ROS2 compatibility. Listing it as a reference for ESP32 robot-arm control code; the hardware is a purchased kit.

Source & Attribution

Source: GitHub
License: AGPL-3.0
Last verified: 10/15/2026
Waveshare RoArm-M2: ESP32 desktop robot arm firmware

How to Build It

This is the open-source firmware for Waveshare's RoArm-M2, a 4-DOF desktop robot arm on an ESP32 driving serial bus servos. It reaches about 1m across and carries 0.5kg at 0.5m. You can control it from a built-in web app, JSON commands over serial or HTTP, ESP-NOW, or ROS2 with MoveIt2.

Parts Needed

  • Waveshare RoArm-M2-S kit (ESP32 driver board + bus servos)
  • 12V power supply (included with the kit)
  • USB data cable

Steps

  1. 1

    Assemble and power

    Build the arm according to Waveshare's wiki, clamp the base firmly and connect the 12V supply.

  2. 2

    Use the web app

    The arm creates its own Wi-Fi hotspot. Connect to it and open the web page to jog the joints, use coordinate control and record moves.

  3. 3

    Flash or update firmware

    To modify the firmware, open the code in the Arduino IDE with the ESP32 core and the libraries listed on Waveshare's wiki, then upload over USB.

  4. 4

    Control it programmatically

    Send JSON commands over USB serial or HTTP (they're documented on the wiki), use ESP-NOW for leader/follower setups, or try the ROS2 + MoveIt2 examples.

  5. 5

    Safety

    Gripper force is capped at 30% in recent firmware. Keep your hands clear during moves, and fix the base before running fast motions.

Available as a complete kit

4-DOF ESP32 desktop robot arm kit

Part details in our parts library
Buy from Waveshare

Related Projects

ESP-Drone: Espressif's open mini quadcopter on ESP32
Illustration
ESP32ESP32-S2
ESP-Drone is Espressif's open-source mini quadcopter firmware for ESP32, ESP32-S2 and S3 boards — build the drone, connect over Wi-Fi and fly it from a phone app.
Advanced·Code
4 parts listed
3D-printed ESP32 self-balancing robot with steppers
Illustration
ESP32
A 3D-printed two-wheel balancing robot: an ESP32 reads an MPU6050 IMU and drives two stepper motors through DRV8825 drivers to keep itself upright.
Intermediate·Code
5 parts listed
SimpleFOC Arduino balancer: BLDC two-wheel balancing robot
Illustration
ARDUINOUNO
A modular two-wheel balancing robot using gimbal BLDC motors and the SimpleFOC library on Arduino-class boards.
Advanced·Code
5 parts listed