Sample Report
Sample Report
Bachelor of Technology
in
May, 2025
i
DECLARATION
We hereby declare that the thesis entitled “Gesture-Controlled Robot for Medical
Assistance Using Laptop Camera, ESP32, and Motor Driver” submitted by us, for the
award of the degree of Bachelor of Technology in Electronics and Communication
Engineering to Galgotias College of Engineering and Technology, Greater Noida
affiliated to Dr. A.P.J. Abdul Kalam Technical University, Lucknow is a record of
bonafide work carried out by us under the supervision of Ms. Nahid Malik.
We further declare that the work reported in this thesis has not been submitted and
will not be submitted, either in part or in full, for the award of any other degree or
diploma in this institute or any other institute or university.
ii
CERTIFICATE
This is to certify that the thesis entitled “Gesture-Controlled Robot for Medical
Assistance Using Laptop Camera, ESP32, and Motor Driver” submitted by Ishika
Raj, Isha Srivastava and Harshvardhan , Department of Electronics and Communication
Engineering, Galgotias College of Engineering and Technology, Greater Noida affiliated
to Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow, for the award of the
degree of Bachelor of Technology in Electronics and Communication Engineering, is a
record of bonafide work carried out by them under my supervision, as per AKTU code of
academic and research ethics.
The contents of this report have not been submitted and will not be submitted
either in part or in full, for the award of any other degree or diploma in this institute or
any other institute or university. The thesis fulfils the requirements and regulations of the
University and in my opinion meets the necessary standards for submission.
Approved by
iii
ABSTRACT
This project focuses on the development of a gesture-controlled robot specifically
designed to assist in medical environments where contactless operation is crucial,
such as isolation wards, quarantine zones, and pandemic-response units. The system
uses a vision-based human–machine interface, allowing users to control a mobile
robot through intuitive hand gestures captured by a laptop’s inbuilt camera. Using
Python with OpenCV and MediaPipe libraries, specific gestures—such as open palm,
closed fist, and directional pointing—are detected and mapped to movement
commands. These commands are sent via USB serial communication to an ESP32
microcontroller, which controls two DC motors through an L298N motor driver. This
enables the robot to execute movements like forward, backward, left, right, and stop
in real time.
This gesture-controlled robot is tailored to meet the growing demand for contactless
medical assistance in hospitals and quarantine zones. By enabling hands-free control
without wearable devices, it ensures a hygienic interface ideal for infection-prone
areas. The system is affordable, easy to deploy, and well-suited for automating
routine hospital tasks like medicine delivery or remote communication. Its reliable
performance in controlled environments highlights its potential for real-world
medical applications. This project provides a strong foundation for future innovations
in healthcare robotics.
iv
ACKNOWLEDGEMENT
First of all, we would like to express our gratitude to our beloved Chairman Shri.
Suneel Galgotia and CEO Shri. Dhruv Galgotia for proving necessary facilities to
carry out and finish the project successfully. We are grateful to our Director Prof.
Vikram Bali for his support and encouragement.
Our special thanks goes to Dr. R L Yadav, Head of the Department, Electronics
and Communication Engineering, for providing an environment that encouraged us
in working towards our goal and supported in completion of our project. This project
gave us an opportunity to apply creative and critical thinking skills.
We would like to present our deep sense of gratitude to our project guide, Ms. Nahid
Malik Assistant Professor, Department of Electronics and Communication
Engineering who has always been a source of motivation and firm support for
carrying out the project. The supervision and support that he gave truly helped in the
progression of the project. His cooperation is much indeed appreciated. We are
highly obliged to him for his valuable advices and moral support during research
period.
Finally, our greatest and special gratitude goes to our family for their love and support.
v
TABLE OF CONTENTS
CHAPTER CONTENTS PAGE
NO. NO.
Title Page i
Declaration ii
Certificate iii
Abstract iv
Acknowledgement v
Table of Contents vi
List of Figures xi
1 Introduction 1
1.3 Objective 3
vi
1.5.2 Future Scope 7
vii
1.6 Summary 7
2 Literature review 9
2.1 Introduction 9
2.7 Summary 20
3.1 Introduction 21
viii
3.6 Hardware-Software Interaction 25
ix
3.7 Challenge and Design Consideration 26
3.8 Summary 26
4.1.4 DC Motors 31
x
5.4 Performance Results 42
xi
5.4.1 Gesture Recognition Accuracy 42
5.6 Discussion 43
xii
6.3.10 Applications Beyond Healthcare 50
References
Appendix
xiii
LIST OF FIGURES
xiv
LIST OF TABLES
xv
LIST OF ABBREVIATIONS
AI Artificial Intelligence
HMI Human-Machine Interaction
USB Universal Serial Bus
ESP32 Espressif System-on-Chip
DC Direct Current
PWM Pulse Width Module
GUI Graphical User Interface
IoT Internet of Things
Wi-Fi Wireless Fidelity
BLE Bluetooth Low Energy
UDP User Datagram Protocol
FPS Frames Per Second
HSV Hue, Saturation, Value (color model)
IDE Integrated Development Environment
ML Machine Learning
CNN Convolutional Neural Network
OpenCV Open Source Computer Vision Library
API Application Programming Interface
GPIO General Purpose Input Output
LAN Local area network
OBST Obstacle
ALU Arithmetic Logic unit
IC Integrated Circuit
L298N Dual H-Bridge Motor Driver IC
LED Light Emitting Diode
RGB Red Green Blue (color model)
PySerial Python Serial Library
DSO Digital Storage Oscilloscope
xvi
CHAPTER 1
INTRODUCTION
In this context, the integration of computer vision with real-time robotics offers a
compelling opportunity to develop contactless, intelligent systems that can assist in
daily tasks across medical, industrial, and domestic environments. Vision-based
gesture control, in particular, is gaining popularity due to its non-reliance on physical
hardware like gloves, sensors, or wearables. According to Mallick & Kumar (2019)
and Chen et al. (2019), vision-based gesture recognition systems using OpenCV and
convolutional neural networks (CNNs) respectively have demonstrated high accuracy
and responsiveness, especially for applications where user convenience and minimal
hardware are critical.
The potential applications of such systems range from educational tools and
entertainment robots to industrial automation and assistive devices for the differently-
abled. This paper elaborates on the components, methodology, software
implementation, hardware design, and results of the developed gesture-controlled
robotic system.
2
1.2 Background and Motivation
The COVID-19 pandemic underscored the need for contactless and automated
systems, especially in healthcare facilities where the risk of infection is high. World
Health Organization (WHO) guidelines (2021) have encouraged the use of contact-
free technologies, including gesture and voice interfaces, to ensure safe interaction
between humans and machines in medical settings. Gesture-controlled robots provide
a critical solution to this challenge by reducing direct contact between healthcare
personnel and patients, especially in isolation wards and high-contamination zones.
Recent innovations in this domain have shown the feasibility of such systems. For
example, Ahmed et al. (2020) developed a real-time gesture recognition interface
using OpenCV for robotic control. Their system prioritized speed and simplicity over
heavy AI models, making it well-suited for embedded applications like this project.
Similarly, Raut & Deshmukh (2016) demonstrated gesture-based interfaces in low-
resource environments, further validating the applicability of vision-based systems in
embedded robotics.
Moreover, advanced systems like the Da Vinci Surgical Robot or Aethon’s TUG
robot (Gupta, JBHE 2021) are highly efficient but financially inaccessible for small
clinics or rural hospitals. There remains a large unmet need for affordable and
practical robotic systems that can perform essential tasks such as delivering food,
medicine, or documents in a clinical environment—exactly the niche this project aims
to address.
Our project, "Gesture Controlled Robot for Medical Assistance," aims to design and
develop a robot that can be controlled using real-time hand gestures detected by a
laptop’s inbuilt camera. The robot can perform movements such as forward,
backward, left, right, and stop, based on the gesture input. The robot's potential use is
in delivering essential items such as food, water, or medicines to patients in isolation,
minimizing the risk of infection for healthcare workers and enhancing the safety of
medical operations.
1.3 Objective
4
commands to the ESP32 microcontroller. The ESP32 interprets these commands and
controls the L298N motor driver through four input pins (IN1–IN4). The L298N then
powers and drives two DC motors, enabling the robot's movement. A separate power
source supplies the required voltage to the motor driver for motor operation.
The central problem this project addresses is: "How can we design a reliable,
affordable, and user-friendly robot that responds to hand gestures to assist medical
personnel in routine tasks, while reducing physical contact and risk of contamination.
The scope of this project encompasses the complete lifecycle of developing a gesture-
controlled robot system, from requirement analysis to implementation and testing.
The robot is intended for indoor use within medical environments such as hospitals,
quarantine centers, clinics, and elderly care homes. While the prototype will
5
demonstrate basic movements, the design will be modular to allow for future
enhancements.
Using a webcam and a laptop, hand gestures will be detected in real-time using image
processing techniques. A predefined set of gestures (e.g., palm facing front for stop,
hand moving right for right turn) will be used to issue commands.
The robot will be built on a wheeled chassis equipped with motors, sensors, and a
microcontroller unit (such as Raspberry Pi or Arduino). It will respond to directional
commands like forward, backward, left, right, and stop.
The robot will be able to navigate simple hospital corridors or rooms without
advanced autonomous navigation or obstacle avoidance (although this could be added
later).
A working demonstration will showcase how the robot can be used to carry
lightweight objects, such as medicine packets or documents, from one location to
another in a contactless manner.
6
1.5.2 Future Scope
The long-term vision is to use this foundation to create a multi-modal robot assistant
for smart healthcare environments that combines gesture control with autonomous
navigation, voice interface, and sensor-based obstacle avoidance.
1.6 Summary
7
gesture
8
is classified by the gesture recognition unit, the corresponding command is
sent wirelessly via Wi-Fi communication to the ESP32 on the robot. Upon
receiving the command, the ESP32 interprets it and activates the appropriate
motor controls using an L298N Motor Driver module. The motor driver, in
turn, regulates the motion of two DC motors mounted on a chassis, enabling
the robot to move in the desired direction.
9
CHAPTER 2
LITERATURE REVIEW
2.1 Introduction
The integration of robotics and human-computer interaction has been a focus of
research for several decades. With the advent of affordable embedded systems,
machine learning, and computer vision techniques, gesture-based control systems
have become more practical and widespread. In healthcare, the need for contactless,
hygienic, and intuitive control mechanisms has led to an increasing interest in gesture-
controlled robotic systems.
10
“Gesture-Controlled Mecanum Wheel Car Using ESP32 and MPU6050,” JETIR,
2024. This research leveraged ESP32 with MPU6050 IMU sensors to achieve
omnidirectional movement through gesture recognition. While promising for
mobile robotics, it still relied on worn hardware, limiting its hygienic applicability.
Summary:
Sensor-based gesture recognition relies on physical, wearable hardware such as flex
sensors, accelerometers, and gyroscopes to capture movement data from the user’s
hands and arms. These systems are generally praised for their high accuracy, fast
response times, and minimal computational demands, making them suitable for
environments that require quick and precise interaction. However, their primary
drawback lies in the need for users to wear specialized equipment, which becomes a
significant limitation in medical contexts. In hospitals, especially in sterile
environments like operating rooms or isolation wards, hygiene and ease of use are
critical. The requirement for physical contact with devices—gloves, bands, or sensor
modules—raises concerns regarding infection control, maintenance, and user comfort.
While studies like those by Kumar et al. (2023) and Wang & Song (2016)
demonstrated effective control and responsiveness, they underscore the limited
practicality of such systems for clinical or contact-sensitive applications. The reliance
on body-worn gear, even when lightweight, does not align with the growing trend
toward contactless, intuitive interfaces in healthcare. In summary, while sensor-based
approaches excel in technical performance, they face key barriers to adoption in
medical settings due to hygiene concerns, discomfort, and setup complexity.
2.2.2 Vision-Based Recognition
Vision-based systems use cameras and software to detect and interpret gestures
without requiring any physical contact or devices on the user.
11
“Hand Gesture Recognition for Human-Computer Interaction,” S. S. Raut and
R. P. Deshmukh, IJSR, 2016. This study used a basic image processing
pipeline to detect static gestures using a camera. It helped validate the
feasibility of vision-based interfaces in constrained hardware environments,
although it lacked robustness to dynamic gestures or lighting variations.
“Real-Time Remote-Controlled Human Manipulation Medical Robot Using
IoT,” Semantic Scholar, 2024. This study utilized real-time gesture recognition
using a webcam and MediaPipe, enabling an ESP32-based robot to be
controlled wirelessly. It focused on reducing latency and improving real-world
usability, making it highly relevant for real-time medical applications.
Chen et al. (2019) – “Real-Time Hand Gesture Recognition Using CNNs,”
IEEE Access. This paper implemented convolutional neural networks (CNNs)
to classify hand gestures from video frames, achieving over 95% accuracy.
However, it required significant computational resources, making it more
suitable for advanced robotics rather than embedded systems.
Summary:
Vision-based gesture recognition systems use cameras and image processing
algorithms to detect hand gestures without any physical contact, offering a completely
touch-free interface. These systems are especially appealing in healthcare due to their
hygienic, user-friendly nature and the absence of wearable components. Basic
approaches, such as those demonstrated by Mallick & Kumar (2019) and Raut &
Deshmukh (2016), use OpenCV with techniques like thresholding, contour detection,
and convex hull algorithms to interpret gestures. These methods are lightweight, cost-
effective, and well-suited for real-time applications on resource-constrained platforms
such as Raspberry Pi or ESP32. More advanced systems integrate MediaPipe or
CNNs to improve gesture recognition accuracy and robustness under varying lighting
and dynamic conditions. For example, Chen et al. (2019) achieved high precision
using convolutional neural networks, though at the cost of increased computational
load, limiting its use in low-power embedded systems. Vision-based systems,
particularly those that balance accuracy with computational efficiency, offer a
compelling solution for real-time robotic control in healthcare. They support remote,
contactless operation, which aligns with global health recommendations emphasizing
non-invasive interfaces
12
post-COVID-19. Overall, vision-based approaches strike the best balance between
usability, hygiene, cost, and integration flexibility, especially for clinical applications.
Summary:
Robotic systems are becoming increasingly integral in healthcare, transforming how
medical services are delivered in surgical operations, patient logistics, rehabilitation,
and even remote presence. Modern healthcare robotics can be broadly categorized into
surgical robots, delivery robots, and assistive/rehabilitation robots, as discussed in
works like Gupta (2021). High-end systems like the Da Vinci Surgical Robot offer
extraordinary precision and minimally invasive surgery capabilities but are financially
inaccessible to many institutions, particularly in developing regions. Consequently,
there's a strong push for low-cost, modular, and user-friendly robotic platforms that
can be deployed in emergency, rural, or resource-constrained settings. Remote-
controlled and gesture-operated robots—like those discussed in the IARJSET (2024)
study—offer a viable alternative by enabling telemedicine and remote surgical
13
training. These
14
systems emphasize the need for simplicity in control mechanisms, adaptability, and
real-time performance. The COVID-19 pandemic accelerated the demand for
contactless technologies, with the World Health Organization (2021) advocating for
interfaces that reduce the risk of contamination. Gesture and voice interfaces were
especially recommended for their hands-free, user-centric control, making them ideal
for sterile environments. In essence, healthcare robotics is shifting from bulky, high-
cost installations to portable, affordable, and touch-free systems that enhance
accessibility and safety in diverse clinical environments.
Research into gesture-controlled robots has evolved across both sensor-based and
vision-based implementations. Many studies have validated the concept but fall short
in terms of real-time performance, affordability, environmental adaptability, or ease
of use.
15
Summary:
The field of gesture-controlled robots is experiencing rapid growth, with research
covering both sensor-driven and vision-based implementations. Early studies like
Yadav et al. (2017) showcased accelerometer-based robots that demonstrated the
feasibility of using hand gestures for control. However, these early systems relied
heavily on wearable hardware, which is increasingly viewed as a barrier in medical
and hygienic contexts. More recent developments, such as those described in the
IJERT (2023) and SpringerLink (2025) papers, focus on webcam-based gesture
recognition using OpenCV and MediaPipe frameworks, offering real-time
performance with no physical contact. These systems have proven capable of
accurately interpreting hand movements and relaying them wirelessly to robotic
platforms controlled by ESP32 or similar microcontrollers. Their emphasis on low-
latency communication, ease of use, and affordability makes them ideal candidates for
deployment in fast-paced medical environments. Other innovations, such as
EchoGlove (IJRASET, 2025), combine gesture sensing with health monitoring,
showing that multifunctionality in assistive technology is possible, though the
wearable nature still limits applicability in sterile settings. Collectively, the literature
illustrates that while gesture control is a practical and increasingly reliable interaction
method, success depends on adapting the design to the operating environment. For
healthcare, this means prioritizing contactless, lightweight, and low-cost solutions that
ensure both efficiency and hygiene.
1. Kumar et al. (2018) implemented a glove-based gesture control system using flex
sensors and an Arduino board. While functional, the major drawback of their system
is that it is not contactless, requiring the user to wear the glove for gesture input.
3. Patel and Shah (2022) explored image processing applications for robotics using
OpenCV on a Raspberry Pi platform. Their project does not mention specific
limitations, implying a basic but functional implementation.
16
4. Shravani et al. (2020) designed a gesture-based wheelchair that assists mobility
through hand movements detected by an accelerometer. Despite its usefulness, the
system requires the user to wear a device, which may reduce comfort and ease of use.
5. Choudhury et al. (2019) created a remotely controlled medical assistance robot for
hospitals, built with Raspberry Pi and ultrasonic sensors. The primary limitations
include the high cost of hardware and limited automation capabilities.
6. Kumar et al. (2021) focused on IoT-based applications using ESP32 for real-time
device control over Wi-Fi. While effective for remote control, their solution does not
incorporate gesture recognition, limiting its intuitiveness.
7. Patil et al. (2018) worked on controlling a DC motor using an Arduino and L298N
driver to enable efficient motor direction control. Their work, however, was not
intended for gesture control or medical robotics, making it less relevant for healthcare
applications.
9. Ramesh et al. (2021) proposed a contactless delivery robot aimed at use in COVID-
19 hospital scenarios, using Arduino and Bluetooth for control. Their robot faced
limitations in communication range and exhibited delays in response time.
10. Deshmukh et al. (2019) built a hand gesture-controlled robot that operates through
a glove embedded with flex sensors, interfaced with an Arduino. The major limitation
is that it relies on physical wearable hardware rather than using a contactless camera-
based system.
12. Goyal et al. (2020) presented a sophisticated smart healthcare robotic system that
integrates AI, IoT, and sensor networks. Despite its advanced features, the solution is
17
highly complex and may be challenging to implement and maintain in typical clinical
settings.
13. Naik et al. (2021) developed a contactless robot for medicine delivery, using a
line- following approach controlled by an ESP32. However, the robot lacks gesture
input capabilities, reducing its interactivity.
14. Ahmed et al. (2022) enhanced gesture detection accuracy through real-time vision
tracking, employing MediaPipe and TensorFlow. The system achieves high
performance but is constrained by the need for substantial CPU and RAM resources.
15. Joshi et al. (2018) designed a simple motor control system using ESP32 and motor
drivers for real-time direction control. Although efficient, their system lacks a
graphical or gesture-based user interface, limiting ease of use.
16. Sharma et al. (2023) introduced a vision-based robot assistant that navigates based
on hand gestures, using Python, OpenCV, and a robotic chassis. The system, however,
suffers from latency in gesture detection, impacting its real-time performance.
17. Tanwar et al. (2020) implemented a Wi-Fi controlled vehicle using ESP32 and a
web interface. The robot operates only under manual control with no automation,
making it less suitable for hands-free or intelligent applications.
18. Mehta et al. (2022) built a robot for delivering PPE kits during the COVID-19
pandemic using Arduino and the L298N driver. Their design lacks advanced features
and follows a fixed path, which limits adaptability.
This Project aims to provide medical assistance using a low-cost, scalable system built
with a webcam, OpenCV, and wireless robot technology. Unlike many prior works, it
emphasizes affordability and ease of deployment while maintaining contactless
control capabilities.
18
S. STUDY/PROJECT TOPIC KEY TECHNOLOGY LIMITATIONS
NO. CONTRIBUTIONS USED
1 Kumar et al. (2018) Glove- Glove-based gesture Flex sensors, Not contactless
Based control Arduino
Gesture
Control
Using Flex
Sensors and
Arduino
19
6 Kumar et al., 2021 ESP32 in Real-time control Wi-Fi-based No gesture
IoT using ESP32 device control interface
Applications
7 Patil et al., 2018 DC Motor Efficient motor Arduino & Not focused on
Control via direction control L298N Driver medical robotics
L298N
8 Singh et al., 2022 AI-based Real-time hand CNN OpenCV High processing
Gesture gesture MediaPipe power required
Recognition interpretation
9 Ramesh et al., 2021 Robot for Designed robot for Bluetooth Limited range &
Contactless COVID hospitals Arduino delay issues
Delivery
10 Deshmukh et al., Hand Basic gesture bot Flex sensors, Not camera-
2019 Gesture with glove Arduino based
Controlled
Bot
12 Goyal et al., 2020 Smart Integration of AI and ML, IoT & Very high
Healthcare robotics sensor networks system
Robotics complexity
15 Joshi et al., 2018 Motor Real-time direction ESP32, motor Lacks user
Control via control drivers interface
ESP32
20
16 Sharma et al., 2023 Vision- Gesture interface for Python OpenCV Latency in
based Robot navigation Robot Chassis gesture detection
Assistant
18 Mehta et al., 2022 COVID-19 Delivery of PPE kits Arduino & No advanced
Robot via robot L298N control, fixed
path
21
2.6 Research Gaps and Motivation
While several studies have successfully implemented gesture-controlled robots, few
focus specifically on the medical context where hygiene, reliability, and usability are
critical. Moreover, many systems either rely on expensive hardware or require the
user to wear equipment—undesirable traits for hospital environments.
This project is motivated by the urgent need for such a system that bridges the gap
between technical feasibility and practical usability in healthcare environments.
2.7 Summary
In summary, prior research establishes a strong foundation for gesture recognition and
robotic control but falls short in delivering a complete, hygienic, and affordable
solution for medical assistance. Vision-based gesture recognition using OpenCV
combined with a simple mobile robot platform offers a viable solution that meets
these needs.
This literature review confirms the relevance and importance of the proposed project,
which is designed to fill specific gaps by creating a cost-effective, gesture-driven
robotic assistant tailored for real-world medical use.
22
CHAPTER 3
SYSTEM ANALYSIS AND
DESIGN
3.1 Introduction
System analysis and design form the backbone of any engineering project, as they
determine the structure, behavior, and interactions among various components of the
system. For a gesture-controlled robot for medical assistance, it is crucial to identify
user needs, analyze the problem, and design a system that is not only technically
feasible but also functionally effective within a healthcare setting.
This chapter details the analytical foundation and architectural layout of the proposed
system. It outlines the requirements specification, system block diagram, detailed
module description, flow of control, and hardware-software interaction, providing a
comprehensive blueprint for implementation.
The system requirements are categorized into functional and non-functional to clearly
define what the system should do and how it should behave.
Gesture Capture: The system must detect and track hand gestures in real-
time using a webcam.
Gesture Recognition: Recognized gestures should be mapped to control
commands such as forward, backward, left, right, and stop.
Command Transmission: The commands should be transmitted wirelessly
to the robot using Bluetooth/Wi-Fi.
Movement Execution: The robot should accurately interpret and execute
commands on a wheeled platform.
System Feedback: The robot should provide visible or audible confirmation
(e.g., LED blink or buzzer) for successful command reception.
23
Safety and Reliability: The system should avoid erratic motion or crashes;
basic timeouts or error checks should be implemented.
Usability: The interface should be intuitive enough for non-technical users
(e.g., hospital staff).
Portability: The robot and gesture detection system should be portable and
easily deployable in different rooms.
Cost-Effectiveness: The system must be constructed with affordable
components without sacrificing critical functionality.
Bluetooth/Wi-Fi.
The block diagram shown in Fig 3.1 in the next page, visually represents the
interaction between the Gesture Control Interface and the Robot Movement Platform.
It outlines the flow of data from gesture detection to wireless transmission and finally
to robot actuation, illustrating how each subsystem contributes to the overall
operation.
24
3.3.1 Block Diagram
Focused on isolating hand region using color segmentation (e.g., HSV color filtering)
or background subtraction.
Uses predefined templates or logic (e.g., number of fingers shown) to map to actions.
Implemented using OpenCV with optional use of ML-based classifiers if needed for
complex recognition.
25
● Arduino processes command and uses a motor driver to actuate wheel
movement.
● Capable of interpreting:
'F' = Forward
'B' = Backward
'L' = Left Turn
'R' = Right Turn
'S' = Stop
Separate regulated power supply (e.g., 12V battery) used to power motors. Voltage
follows:
26
Fig 3.2 :Flowchart of Proposed Method
● Python and OpenCV handle video processing and gesture interpretation on the
host system.
● PySerial / Socket Communication is used for sending data to the robot.
● Arduino Sketch written in C++ receives serial input and maps characters to
GPIO pin toggling for motor control.
● L298N Motor Driver acts as the interface between logic-level microcontroller
signals and high-current motors.
27
3.7 Challenges and Design Considerations
Wireless Delay: Bluetooth has limited range and may cause delays; Wi-Fi modules
like ESP8266 can be considered for more scalable communication.
Gesture Complexity: Overly complex gestures increase error rate; a minimal and
intuitive gesture set is recommended.
3.8 Summary
This chapter laid the groundwork for implementing the gesture-controlled robot by
analyzing system requirements and presenting a structured design approach. With a
clear modular architecture, defined data flow, and hardware-software interfacing
strategies, the project is well-positioned for successful development and deployment
in medical assistance environments.
28
CHAPTER 4
Implementation and testing
The laptop acts as the main control unit for gesture recognition. The inbuilt webcam
continuously captures live video, which is processed using Python and OpenCV. The
detected gestures are translated into commands and sent to the ESP32 over serial or
wireless communication protocols such as Wi-Fi or Bluetooth.
29
The ESP32 is a powerful microcontroller with inbuilt Wi-Fi and Bluetooth modules.
It is responsible for receiving gesture-based commands from the laptop and
translating them into appropriate motor actions. The ESP32 is programmed using the
Arduino IDE with libraries compatible for motor control and serial
communication. Let’s figure out why we are using ESP 32 over other microcontroller.
30
Power Good Moderate Good (low-power Good Moderate
Efficien (Deep modes)
cy Sleep
modes)
Price ₹300– ₹350– ₹200–₹300 ₹350–₹450 ₹250–₹350
(approx. ₹400 ₹500
)
Progra Arduino Arduino STM32Cube, Arduino Arduino Arduino
mming IDE, IDE IDE IDE, IDE, Lua
MicroPy MicroPytho
thon, n
ESP-
IDF
Use Wi- Entry- High-performance Affordable IoT tasks
Case Fi/Bluet level control apps MCU tasks with Wi-Fi
Fit ooth + robotics
Real-
time
control
Table 4.1 : Comparison of ESP 32 with other microcontrollers
ESP32 has integrated Wi-Fi and Bluetooth, enabling wireless gesture control (e.g., via
smartphone, web interface, or Bluetooth module) without needing external modules
like HC-05 or ESP8266.
31
With a dual-core 32-bit processor and clock speeds up to 240 MHz, ESP32 can
efficiently process real-time sensor data (from accelerometers, gyroscopes, etc.)
without lag.
It supports I2C, SPI, UART, PWM, ADC, DAC, and capacitive touch, which are
useful for connecting multiple sensors and actuators for gesture input and robot
control.
ESP32 supports deep sleep modes, making it suitable for battery-powered gesture-
controlled robots, especially wearables or handheld units.
5. Cost-effective
Summary:
32
4.1.3 L298N Motor Driver Module
4.1.4 DC Motors
Two geared DC motors are used to provide locomotion. These motors are mounted on
a lightweight chassis and are driven independently for differential steering. Motor
specifications were selected to balance speed and torque suitable for indoor
33
navigation.
34
4.1.5 Robot Chassis with Wheels
Jumper wires are used for flexible connections between the ESP32, motor driver, and
other components. Careful wiring is done to ensure minimal resistance and signal loss
during transmission.
The power supply consists of a 3-cell battery pack (typically 11.1V) used to drive the
motors and power the L298N module. A separate voltage regulator is used to supply
5V to the ESP32, protecting it from overvoltage damage.
The top view of the gesture-controlled robot provides a clear and complete layout of
the hardware components and their assembly. The chassis used is a sturdy double-
35
layered red acrylic platform, suitable for compact robotics applications. On top of the
chassis, we can see:
Four yellow wheels (two on each side) connected to DC motors, allowing for
differential drive movement.
ESP32 development board mounted on a perforated PCB (protoboard) near the
front side of the chassis. This board acts as the microcontroller unit that
processes gesture commands received from the laptop.
L298N motor driver module, which is responsible for driving the motors based
on signals from the ESP32. It is positioned in the middle, making wiring
convenient.
Jumper wires connecting the ESP32 and L298N module to the motors and
power supply.
Battery holder at the rear end, housing two 18650 Li-ion cells (7.4V), which
power the motor driver and ESP32 board.
36
Side/Angular View Description
The side or angular view of the robot helps visualize the vertical arrangement and
depth of hardware integration:
The ground clearance and wheel placement show the robot's ability to navigate
over small obstacles and uneven surfaces, ideal for indoor medical use.
The ESP32 module and motor driver are securely elevated using nuts and
spacers on the base chassis, protecting them from vibration and surface
contact.
From this view, the battery alignment and its compact fit in the holder are
clearly visible, ensuring the center of gravity remains low for stability.
The yellow gear motor housing is prominent, showing how each motor is
directly mounted on the chassis using screws, allowing smooth torque transfer
to the wheels.
The use of color-coded wiring simplifies debugging and improves the
aesthetics of the overall system.
The software system consists of two main parts: gesture detection and wireless
command transmission.
Python scripts using OpenCV are deployed on the laptop. The following operations
are performed:
hand.
37
Gesture Classification: Maps gestures (e.g., fist, palm, pointing) to predefined
commands such as forward, backward, left, right, and stop.
38
Gesture Recognition Using OpenCV
The gesture recognition system is developed using Python with the OpenCV and
MediaPipe libraries. OpenCV (Open Source Computer Vision) is used for real-time
video capture and image processing, while MediaPipe is employed to detect and track
hand landmarks efficiently.
The process begins with continuous video stream acquisition from the laptop's inbuilt
webcam. Each frame is processed to detect a human hand and extract key landmarks
such as fingertips and joints. MediaPipe's hand-tracking module provides 21
landmark points, which are used to determine hand orientation and gesture shape.
Predefined gestures such as an open palm, closed fist, or directional finger pointing
are mapped to specific robot movement commands — for example:
To reduce false detections and improve stability, frame smoothing and gesture
confirmation over multiple frames are applied before transmitting a command. Once
the gesture is recognized, the corresponding control signal is sent to the ESP32
microcontroller over serial communication.
This vision-based approach allows for intuitive, touch-free control without the need
for external sensors or wearable devices.
Gesture Description:
Hand held straight with all fingers extended, palm facing directly toward the camera.
Function:
Commands the robot to move forward in a straight path.
39
Fig 4.7(a) :- Forward Command Recognition
Gesture Description:
Open palm raised vertically like a “halt” signal, with fingers spread wide.
Function:
Immediately stops the robot’s movement for safety or control.
40
Command : Back Movement
Gesture Description:
Closed fist (all fingers curled in), held in front of the camera.
Function:
Commands the robot to move backward in reverse motion.
41
Fig 4.7 (d):-Left Command Recognition
Command : Right Movement
Gesture Description:
Right hand extended outward, fingers spread, palm facing the camera.
Function:
Commands the robot to rotate clockwise (right turn in place).
The commands generated by the gesture recognition system are transmitted to the
ESP32 via Bluetooth (Serial over Bluetooth Classic or BLE). Python's pyserial or
bleak library is used to handle communication.
42
4.2.3 ESP32 Control Code
ESP32 receives characters (like ‘F’, ‘B’, ‘L’, ‘R’, ‘S’) over its serial interface and
drives the L298N module accordingly. The ESP32 code uses digital pins to control
the direction of the DC motors based on received commands.
An integrated test was conducted where gestures detected on the laptop were used to
drive the robot. The communication, latency, accuracy of movement, and gesture
recognition reliability were evaluated under different environmental conditions.
43
Motor Overload Issues: Calibrated PWM signals and used current-limiting resistors
for safety.
The final robot responded to gesture commands with a delay under 300ms. The
ESP32 handled serial communication and motor actuation effectively. The robot
successfully demonstrated basic autonomous navigation controlled by hand gestures,
making it a suitable prototype for non-contact operation in medical environments.
44
CHAPTER 5
RESULT AND DISCUSSION
PARAMETER DESCRIPTION
Motor Control Precision Whether the robot moved as per expected path based
on gesture
Stability and Power Whether the robot could operate for sustained
periods without reboot/failure
Usability in Medical Context How effectively the robot could perform non-contact
motion in a clinical setup
45
● Testing Range: Gesture control within 2 meters of the robot.
● Robot Load: Empty chassis, approximating typical lightweight utility (like
carrying medicine or documents).
● Power Supply: 11.1V Li-ion battery pack for motor driver; laptop and ESP32
powered independently.
Using OpenCV with basic preprocessing and contour detection, the system achieved a
gesture recognition accuracy of approximately 92% in consistent lighting.
Performance degraded slightly under shadow-heavy or low-light environments.
The average time from gesture execution to robot response was measured across 100
trials.
46
5.4.3 Robot Mobility and Control
The ESP32 interfaced with the L298N motor driver successfully, and motor
commands were executed with precision.
The chassis moved reliably on tiled floors with enough grip and power.
Wi-Fi Mode (optional): More stable but required local network configuration.
Recommendation: Use Bluetooth for simplicity in small areas; upgrade to Wi-Fi for
scalability.
Despite achieving the intended objectives, the following limitations were noted:
5.6 Discussion
The system demonstrated a viable and practical application of computer vision and
microcontroller-based robotics. Its real-time response and non-contact control design
47
make it suitable for basic assistance tasks in medical environments, particularly where
hygiene and social distancing are crucial.
From a broader perspective, this project also highlights the potential for low-cost,
customizable assistive robotics in under-resourced healthcare facilities. The
integration of hand gestures for robot navigation aligns with current trends in intuitive
human- robot interaction (HRI).
One of the key highlights of this project is its practical utility in real-world scenarios,
particularly in the post-pandemic era, where minimizing human touchpoints in
clinical environments has become a standard safety protocol. The gesture recognition
interface, implemented via the laptop's inbuilt camera, eliminates the need for
additional sensors or wearable devices, making the solution more accessible and cost-
effective.
From a broader perspective, the project successfully illustrates the potential of low-
cost assistive robotic systems tailored for under-resourced hospitals and clinics. The
core components—ESP32 microcontroller, L298N motor driver, and basic computer
vision—are inexpensive and widely available, making replication or further
development of the system feasible even in developing regions. Additionally, the
robot's mechanical design is simple yet functional, with a four-wheel drive system
ensuring stability and ease of movement across typical indoor flooring.
49
Voice command or speech recognition modules could serve as alternative input
methods, offering additional flexibility and accessibility, especially for users with
limited hand mobility.
A cloud-connected platform could be added for remote monitoring, control, and
data logging, facilitating deployment in telehealth scenarios.
In conclusion, the gesture-controlled robot not only fulfills its intended objective of
providing basic medical assistance through gesture-based navigation but also serves
as a foundation for future development of intelligent, contactless, and autonomous
medical robotics. It successfully bridges simplicity, affordability, and innovation—
three essential pillars for real-world adoption in healthcare environments.
50
CONCLUSION AND FUTURE SCOPE
The project titled “Gesture Controlled Robot for Medical Assistance using ESP32”
was developed with the objective of creating a cost-effective, contactless, and
intuitive system to aid patients and healthcare staff in hospitals. The central idea was
to use hand gestures as input commands captured through a laptop camera, which are
then processed and transmitted wirelessly to a robotic platform powered by ESP32.
This robot responds in real-time, executing motion commands (forward, backward,
left, right) based on the user's gestures.
The entire system architecture integrates hardware components including the ESP32
microcontroller, L298N motor driver, DC motors, and robot chassis, with software
tools such as Python, OpenCV, and MediaPipe for gesture detection. The use of Wi-Fi
communication via ESP32 enabled real-time, wireless control, eliminating the need
for wired connections and offering greater mobility and convenience.
This project was inspired by the need for contactless interaction in medical
environments, especially in contexts like the COVID-19 pandemic, where reducing
physical touch became vital for infection control. Gesture-based control adds a layer
of convenience for patients with limited mobility, allowing them to interact with
assistance systems in a non-verbal and non-tactile manner.
51
The system was developed using commonly available and low-cost components,
making it scalable and replicable for educational or healthcare institutions.
✅ Contactless Operation:
The robot responds to visual gestures without requiring any wearable devices or
physical contact, aligning with hygiene protocols in medical environments.
✅ User-Friendly Interface:
The system operates via a simple camera interface and hand movements, which do not
require technical knowledge, making it suitable for both patients and healthcare staff.
❌ Line-of-Sight Dependency:
Since the system uses a camera for input, gestures must remain within the field of
view. Obstructed or fast gestures can be missed.
❌ No Obstacle Avoidance: The current robot does not incorporate obstacle sensors,
which poses safety risks in real-world medical environments.
❌ Lack of Feedback Mechanism: The system does not currently provide visual or
audio feedback to confirm command reception, which may confuse first-time users.
52
6.3 Future Scope
To make the system more inclusive and user-friendly, future versions can combine
gesture recognition with voice commands, eye-tracking, or facial recognition. This
multimodal control approach will enhance accessibility for users with temporary or
permanent disabilities and allow for more nuanced interactions. For example, voice
commands can be used to confirm gestures or provide backup instructions when
gesture detection fails.
53
healthcare professionals could guide or operate the robot from a remote location. This
can be highly beneficial in rural or quarantine zones where physical presence is
restricted. Cameras, microphones, and sensors on the robot can transmit real-time data
to doctors, facilitating remote diagnostics and care.
Future systems can incorporate high-precision IMU sensors, depth cameras (such as
Intel RealSense), or wearable gesture devices (e.g., smart gloves) to capture gestures
more accurately. In addition, more powerful embedded platforms such as the
NVIDIA Jetson Nano or Raspberry Pi 5 can be used in place of the ESP32 when high
computational power is needed, especially for real-time image processing and AI
model inference.
For the robot to be used in real hospital environments, it must comply with medical-
grade safety standards (e.g., ISO 13485 or IEC 60601). Future designs can
incorporate anti-collision features, patient safety measures, fail-safes, and hygienic
enclosures that make them safe and cleanable in clinical settings. Additional sensors
can be used to detect patient proximity and stop the robot automatically.
54
based updates and remote diagnostics can be incorporated to allow easy maintenance
and upgrades across hospital networks.
While this project focuses on medical assistance, the underlying technology can be
repurposed for other domains such as elderly care, industrial automation, smart
homes, and education. Gesture-controlled robotic systems can assist in any context
where contactless interaction, remote control, or automation is valuable.
Integrating a Controller Area Network (CAN) card will facilitate robust, real-time
communication between different robot components such as motor drivers, sensors,
and safety modules. This will:
55
6.4.3 Navigation LiDAR for Autonomous Indoor Movement
Adding a navigation LiDAR (e.g., 2D/3D SLAM-capable units) will allow the robot to:
To ensure patient and personnel safety in medical spaces, safety-rated LiDAR systems
(e.g., Sick microScan3 or Hokuyo URG) can be added. These provide:
Such features are essential for certification under health and safety regulations for
medical robotics.
Advanced RGB-D cameras (like Intel RealSense or ZED) can improve both gesture
recognition and environmental perception by providing:
Integration of SLAM algorithms with LiDAR and camera inputs will allow the robot
to:
56
Create real-time maps of its environment.
Localize itself accurately without external beacons.
Continuously update its path plan in response to changes (e.g., new beds, staff
movement).
Processing camera and LiDAR data on edge devices such as NVIDIA Jetson Nano,
Xavier, or Raspberry Pi 5 with AI accelerators allows:
Advanced systems can integrate cloud-based mapping and fleet management platforms,
allowing:
Future robots can be trained to handle different hospital zones with different
protocols:
Using mapped routes and geo-fenced regions, the robot can adapt its behavior
accordingly.
57
6.4.10 Fail-Safe Systems and Redundancy
6.5 Summary
The development of this gesture-controlled robot for medical assistance reflects the
convergence of embedded systems, computer vision, and healthcare innovation. The
project demonstrates how affordable microcontrollers like ESP32, when combined
with intelligent software frameworks, can lead to smart, accessible, and human-
friendly technologies.
This project not only fulfills its initial goals of offering contactless assistance in
hospital environments but also opens avenues for multidisciplinary advancements.
With further refinement and integration of AI, robotics, and IoT, systems like this
could become an integral part of smart healthcare ecosystems, supporting nurses,
aiding elderly patients, and ensuring safe and hygienic medical service delivery.
58
REFERENCES
[1] S. S. Raut and R. P. Deshmukh, “Hand Gesture Recognition for Human Computer
Interaction,” International Journal of Science and Research (IJSR), vol. 5, no. 4, pp.
761–764, Apr. 2016.
This paper introduces an image processing-based hand gesture recognition system for
touchless human-computer interaction.
[2] P. Yadav, R. Mahajan, and S. Singh, “Gesture Controlled Robot Using Hand
Gestures and Accelerometer,” International Research Journal of Engineering and
Technology (IRJET), vol. 4, no. 6, pp. 1942–1946, Jun. 2017.
The study presents a robot navigated by hand gestures detected via an accelerometer,
demonstrating wireless control using microcontrollers.
[4] A. Gupta, “Medical Robots: Current Applications and Future Scope,” Journal of
Biomedical and Healthcare Engineering, vol. 8, no. 3, 2021.
This review outlines the use of robots in surgery and rehabilitation, with projections
for future advancements in medical robotics.
[14] “IoT Based Hand Gesture Control Robot,” International Journal of Engineering
Research and Technology (IJERT), 2023.
Discusses IoT-enabled robotic control through hand gestures detected by ESP32 and
MPU6050.
[15] “Review Paper on Gesture Controlled Robot with Robotic Arm,” International
Research Journal of Modernization in Engineering Technology and Science
(IRJMETS), 2023.
Provides a comparative review of gesture-controlled robotic arms and technologies
used.
[18] “Android Controlled Smart Wheelchair with Gesture and Voice Control,” World
Academy of Research in Science and Engineering (WARSE), 2020.
Integrates Android, gesture, and voice commands to create a versatile wheelchair
control system.
60
Emphasizes surgical precision in robotic arms designed for remote medical procedures.
[23] “Design and Simulation of Robot Gripper and Conveyor System for
Workstations,” IARJSET, 2024.
Automates workstation tasks with an integrated robotic gripper and conveyor mechanism.
[29] A. Camurri et al., “Toward Natural Gesture Interaction for Medical Robotics,”
IEEE Robotics and Automation Magazine, vol. 27, no. 2, 2020.
Emphasizes natural interfaces in medical robotics for enhanced human-robot
collaboration.
[30] C. Keskin, “Real-Time Hand Pose Estimation Using Depth Sensors,” Computer
Vision and Image Understanding, Elsevier, 2021.
Describes depth-sensor-based hand pose estimation techniques used in real-time
applications.
61
Online tutorial resource covering OpenCV techniques such as contour detection and
background subtraction.
62
Provides complete documentation for AI-based gesture recognition robot using ESP32
and MediaPipe.
63