The Hand is an autonomous 6DOF robotic arm that uses a camera module powered by a fine-tuned YOLOv8 model to detect, classify, and sort medication pills into daily dose compartments — fully by itself.
Medication errors are one of the leading causes of preventable harm in elderly care, where managing multiple pills across multiple daily schedules is a real and ongoing problem. The Hand is a low-cost, open-source approach to automating that process — detecting pills by shape and colour in real time, then picking and placing them into the correct tray slot using a full vision-to-motion pipeline.
This project was inspired by the countless 4DOF robotic arms on YouTube, but I wanted to combine my knowledge of computer vision and robotics to build something more technically impressive — and actually useful.
Checked off as I go.
Progress updated by Ramy
Designing a full 6DOF arm in SolidWorks with manufacturable joints, linkages, and mounting points — then printing and iterating on real hardware.
Designing a custom PCB in Altium Designer to power and control the arm's actuators, handle signal routing, and interface with the microcontroller.
Building a full ROS2 stack from URDF modelling to MoveIt motion planning, running forward and inverse kinematics for real-time arm control.
Writing micro-ROS firmware for the ESP32 to subscribe to ROS 2 joint commands, drive servo PWM outputs via hardware timers, and communicate with the Raspberry Pi over UART.
Training and deploying a fine-tuned YOLOv8 model to detect and classify medication pills in real time, feeding localised coordinates into the arm's motion planning pipeline.
Tying everything together — writing performant C++ ROS2 nodes, integrating vision with motion planning, and debugging a full hardware-software system end to end.