Cursor Movement Using Hand Gestures in Python and Arduino Uno
Cursor Movement Using Hand Gestures in Python and Arduino Uno
https://doi.org/10.22214/ijraset.2022.43607
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
Abstract: As we are moving ahead in time in technology, humans are making various techniques for their comfort. While
working with computers, sometimes it is boring to use a mouse or keyboard to give any computer commands and wait for their
execution. For this reason, to increase human-computer interaction, we will use our hand gestures to perform cursor movements
and some other exciting functions.
We are using pair of ultrasonic sensors, Arduino Uno, and python as a programming language. Sensors are for the use of
measuring distance. Arduino will take the signals in the form of distance, and it will perform cursor movements like Scrolling
through Webpages, Changing Tabs, Volume Increase and Decrease, Play/Pause, Forward and Backward, Working on
Presentation Slides with operations such as Previous Slide, Next Slide, writing on slide dynamically, Undo the changes written
and Playing Games as well, etc.
Keywords: Human-Computer Interaction, Arduino Uno, Python, Ultrasonic sensor.
I. INTRODUCTION
We have chosen this project to gain knowledge about Human-electronic device interaction and implement the idea in an easy and
helpful way. Our main motive behind this project was to make a system where even lazy people and children would feel enthusiastic
and interesting in working.
The gesture control technology will definitely make an impact in the field of computers and make it easy to interact directly apart
from using old devices like mouse or cursors for every action we want to perform.
The objective of this project is that we will apply these cursor movements using hand gestures in working with the webpages,
changing tabs, increasing and decreasing volume, video pause, play, gaming, etc.
After applying the above features, we have the secondary objective of using this method while playing games. We have used both
hardware and software knowledge in this project. Hardware application was not easy as we had to solder the correct pins of Arduino
Uno and ultrasonic sensors; for that purpose, we had to study this component in detail.
We implemented this project by means of providing a virtual system where we will directly connect with computers using simple
hand gestures.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5324
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
ULTRASONIC ULTRASONIC
SENSOR SENSOR
ARDUINO-UNO
LAPTOP
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5325
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
D. PySerial Library
PySerial library provides backend support to python running on our computer. The main role of this library is that it enables
communication with the serial port. To install this library again, we have to use the command "pip install pyserial."
IV. RESULT
Following are some hand gestures we used for cursor movement:
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5326
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
This is the setup we did for our project using hardware components like Arduino Uno, Ultrasonic Sensors, jumper wires, and a USB
cable.
V. CONCLUSION
We have created a model that controls mouse actions and implements operations using the camera. The main motive of our project
is to create a model which will acknowledge the gestures that will control the laptop/PC in line with those gestures. Our project will
make a really great difference were using a mouse will be going tough. The actions like painting, starting the applications, right-
click, left-click, notepad, etc., are going to happen with our hand gestures. Before actual implementation, it will detect our skin and
then will start implementing. We have designed our model so that any new user can simply handle the system just by installing the
setup in very little time.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5327
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue V May 2022- Available at www.ijraset.com
REFERENCES
[1] Pradhan, B.B.V.L. DeepakObtaining hand gesture parameters using image processing. International Conference on Smart Technologies and Management for
Computing, Communication, Controls Energy and Materials (2015), pp. 168-17
[2] Toni B, Darko J. A robust hand detection and tracking algorithm with application to natural user interface. Proceedings of the 35 th International Convention on
Information and Communication Technology, Electronics and Microelectronics (MIPRO 2012), Opatija, Croatia, 2012, p. 1768-1774.
[3] Vincze MA, Grif HS. Hand gestures mouse cursor control. Scientific Bulletin of the “Petru Maior” University of Tg. Mures, Vol. 11 (XXVIII), No 1, 2014, p.
46-49.
[4] Wen Y, Hu C, Yu G, Wang C. a Robust Method of Detecting Hand Gestures Using Depth Sensors. IEEE International Workshop on Haptic Audio-Visual
Environments and Games, Munich, Germany, 2012, p. 72-77.
[5] Zhang S, Wang J, Gong Y, Zhang S. Free-hand gesture control with “touchable” virtual interface for human-3dtv interaction. 3DTV-Conference: The True
Vision - Capture, Transmission and Display of 3D Video (3DTV-CON), Lisbon, Portugal, 2015, p. 1-4.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5328