Hand Gesture-Based Robotic Arm Controller (FPGA)

Published:

Best Project Award, EE-102 Term Project, Bilkent University (2025)

Tools: Basys 3 FPGA, VHDL, Arduino Nano, MPU6050 IMU, HC-05 Bluetooth modules, servo motors
Code: github.com/codalannce/Hand-Gesture-Robotic-Arm-Controller-via-FPGA
Demo video: youtu.be/fdpMsIATvdk

Sensor glove and robotic arm
The sensor glove (Arduino Nano, MPU6050 and HC-05 on a mini breadboard, powered by a power bank) and the servo-driven robotic arm.

Overview

A glove with an IMU sensor measures the orientation of the hand, and a robotic arm copies its movements in real time. The hand’s angles are sent wirelessly to a Basys 3 FPGA, which decodes them and drives the arm’s servo motors. The arm reproduces three motions: turning left and right, moving forward and backward, and opening and closing its gripper.

How it works

  • The Arduino reads pitch, roll and yaw from the MPU6050 and sends them as a packet: a start byte (0xA5), the three angles as 8-bit values, and an XOR checksum.
  • On the FPGA, a UART receiver state machine samples the serial line at 9600 baud and assembles each byte.
  • A second packet state machine waits for the start byte, stores the three angles, and accepts them only if the checksum matches, so noisy packets are dropped.
  • An angle-mapping module limits and converts each value to a 0-180° servo angle, and PWM modules generate the servo pulses (20 ms period).

What I did

  • Designed and implemented all VHDL modules: UART receiver, packet FSM with checksum verification, angle mapping and PWM servo drivers
  • Wrote the Arduino firmware that reads the IMU and transmits the angle packets
  • Configured the two HC-05 Bluetooth modules as a master-slave pair in AT mode
  • Integrated the mechanical arm with the servos and improved the power supply for the heavier joints

Results

The system worked as intended: every hand gesture was reproduced by the arm, including rotating left and right, moving forward and backward, and gradually closing the gripper as the hand rotates.