Conventional lighting systems usually require a person to operate a physical switch or a handheld device. This paper presents the design of a contactless hand-gesture-controlled lighting system that combines a webcam, Python-based computer vision, MediaPipe Hands, serial communication and an Arduino UNO with a five-channel relay module. The webcam captures the user’s hand, and MediaPipe identifies 21 hand landmarks. Python analyses the finger positions and represents the five finger states as a five-digit binary packet. PySerial transmits this packet to the Arduino UNO, which controls the corresponding relay channels and connected lights. Each finger is assigned to one light, allowing up to five loads to be controlled independently. The project is intended to operate locally without an internet connection and includes a fail-safe concept in which the relays switch off when a valid control signal is lost for the configured timeout. The design may support smart-home, classroom, healthcare and assistive applications. This paper describes the system architecture, implementation approach, potential benefits and limitations. Quantitative accuracy, latency and reliability results are not claimed because controlled experimental measurements were not supplied in the project material.
Introduction
The project presents a Hand Gesture-Based Smart Lighting Control System that allows users to control up to five lights independently without touching a physical switch. It uses a webcam, Python, computer vision and an Arduino UNO to recognize hand gestures and operate lights through a relay module.
The system captures hand movements using a webcam. OpenCV handles video processing, while MediaPipe Hands detects 21 hand landmarks and identifies whether the thumb, index, middle, ring and little fingers are raised or lowered. Each finger is assigned to a separate light, with a raised finger represented by 1 and a lowered finger represented by 0. Python converts these states into a five-bit binary code and sends it to the Arduino UNO through serial communication using PySerial.
The Arduino processes the received data and controls a five-channel relay module to switch the corresponding lights ON or OFF. A fail-safe mechanism is also included, which switches all relays OFF if the control signal is lost for approximately three seconds.
The main advantages of the system are contactless operation, low cost, independent control of five lights, offline functionality and the use of commonly available hardware and software. It can potentially be used in smart homes, classrooms, laboratories, workplaces and assistive environments.
However, the system has some limitations, including sensitivity to lighting conditions, camera positioning, hand obstruction and fast movements. It also requires a computer connected to the Arduino. Further improvements could include brightness control, fan-speed control, wireless communication, IoT integration and better gesture recognition.
Conclusion
This paper presents a design for a hand-gesture-controlled lighting system using a webcam, Python, MediaPipe Hands, PySerial, Arduino UNO and a five-channel relay module. The system detects hand landmarks, converts finger positions into a five-digit control packet and uses the Arduino to switch up to five light outputs independently. Its principal intended benefits are contactless interaction, offline operation and a relatively accessible prototype architecture. The design may be useful in homes, classrooms and assistive settings, but its effectiveness depends on camera conditions, software reliability and safe electrical implementation. The proposed timeout behaviour and all relay mappings should be verified through systematic tests. Future evaluation should report measured accuracy, response time and reliability before any claims about performance are made.
References
[1] Google, “MediaPipe Hands,” MediaPipe Documentation. Available: https://ai.google.dev/edge/mediapipe/solutions/vision/hand_landmarker
[2] OpenCV, “OpenCV Documentation.” Available: https://docs.opencv.org/
[3] PySerial, “pySerial Documentation.” Available: https://pyserial.readthedocs.io/
[4] Arduino, “Arduino Language Reference.” Available: https://docs.arduino.cc/language-reference/
[5] Google AI Edge, “Hand Landmarker for Python,” Google AI Edge Documentation. Available:
https://ai.google.dev/edge/mediapipe/solutions/vision/hand_landmarker/pyth on