← All projects
PROJECT / 01ROBOTICS / MECHATRONICS / CONTROLS

6-DOF Robotic Arm + Digital Twin

Designed and built an integrated 6-axis robotic arm combining mechanical design, embedded motion control, computer vision, inverse kinematics, network communication, and a real-time Unity digital twin.

Mechanical DesignRoboticsEmbedded SystemsComputer VisionControlsUnityRaspberry PiESP32
HERO / 01Physical Object Detection
Physical robotic arm detecting objects with its eye-in-hand vision system poster
Unity digital twin interface showing the robotic arm and joint controls
HERO / 02Unity Digital Twin
01 / OVERVIEW

A physical robot and its digital counterpart, designed as one system.

This project connects a six-axis mechanical platform with embedded motion control, camera-based perception, inverse kinematics, network communication, and live Unity visualization.

02 / SYSTEM ARCHITECTURE

From digital intent to physical motion.

The architecture separates visualization, perception, control, and actuation while keeping robot state connected across the system.

01
Unity Digital TwinVisualization · commands
WI-FI / TCP
02
Raspberry PiPlanning · vision · TCP
USB SERIAL
03
ESP32Motion control · USB serial
CONTROL / STATE
04
PCA9685Servo signal distribution
CONTROL / STATE
05
Servo MotorsJoint actuation
CONTROL / STATE
06
6-DOF Robot ArmPhysical system
03 / MECHANICAL DESIGN

Six-axis modular assembly.

CAD assembly of the six-axis robotic arm and gripper
03 / 01CAD Assembly
Full six-axis robotic arm assembled on a desk beside its control electronics
03 / 02Full Robot Arm

ACTUATORS

J1
Base
TD-8135MG
J2
Shoulder
DS3240
J3
Elbow
DS3240
J4
Wrist
DS3225
J5
Wrist
DS3218
J6
Wrist
DS3218
GRIP
Gripper
MG90D

Designed and assembled a six-axis robotic arm using servo-driven joints and 3D-printed PETG structural components, with an integrated gripper and camera mount.

04 / JOINT DEVELOPMENT

Joint and end-effector development.

Exploded CAD view of the robotic arm base joint assembly
Underside CAD view of the robotic arm base joint assembly
04 / 01J1 Joint Assembly
04 / 02End Effector + Eye-in-Hand Camera
CAD turntable showing the end effector and eye-in-hand camera mount poster

Designed the joint interfaces and end effector around the selected servos, with an eye-in-hand camera mounted above the gripper for object detection.

05 / EDGE VISION

Custom-trained cube detection, deployed on the robot.

Raspberry Pi 4 with a connected Camera Module v2
05 / 01Raspberry Pi 4 + Camera Module v2
YOLO11n cube detector training and validation metrics across 100 epochs
05 / 02Cube Detector Training Results

Trained a YOLO11n cube detector for 100 epochs on a custom 500-image dataset and exported it to NCNN for inference on a Raspberry Pi 4 with Camera Module v2.

06 / COMPUTER VISION

Connecting image coordinates to the robot workspace.

Fixed-observation table XY homography calibration dashboard
06 / 01XY Homography Calibration
06 / 02Object Detection + Coordinate Mapping
Object detection and pixel-to-table coordinate mapping demonstration poster

At a fixed observation pose, an XY homography maps detected cube locations from camera pixels to robot-table coordinates for motion planning.

07 / UNITY DIGITAL TWIN

Live state, previewed motion, and physical synchronization.

Unity digital twin interface showing the robotic arm and joint controls
07 / 01Unity Digital Twin
07 / 02Robot Arm Pickup Demonstration
Physical robot arm pickup demonstration shown alongside its Unity digital twin poster

Built a Unity digital twin for live robot-state visualization, ghost-pose target preview, and trajectory prediction synchronized with the physical arm.