Skip to content

An AI-powered lighting control system that utilizes Arduino, Computer Vision, and gesture detection technology to automate the powering process.

License

Notifications You must be signed in to change notification settings

gunarakulangunaretnam/ai-gesture-autolight-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Gesture AutoLihgt System

Repo Structure

    ├── docs                                   # Contains documents.
    ├── research                               # Contains pre-research experiments.
    ├── source                                 # Contains project source code.
    │   ├── modules                                # Contains custom dependencies.  
    │   ├── main.py                                # main file.
    └── README.MD                              # Readme Content.

01 Introduction

This is an automated lighting control system that operates automatically and is powered by Arduino and Artificial Intelligence. The system uses AI technology to detect hand gestures and automate lighting operations. It utilizes the Firmata protocol to enable Python to communicate with Arduino, allowing the system to turn on LEDs.

Circuit Diagram

02 Technology Stack

2.1 Hardware Stack

  • Arduino UNO
  • LED: Red, Green, Blue
  • Full Bread Board
  • Jumper Wires

2.2 Software Stack

  • Python 3.8.5 (Recommended)
  • Arduino IDE (Framework)
  • OpenCV
  • MediaPipe
  • PyFirmata

03 Setup

3.1 Hardware Setup

Circuit Diagram

LEDs Pin No
RED LED Pin: 13
Green LED Pin: 12
Blue LED Pin: 11

3.2 Firmware Setup

Setting up the Arduino firmware is necessary to enable communication between Python and Arduino. The Firmata protocol establishes serial communication between a Python script and an Arduino.

To upload Firmata, open Arduino IDE and choose the correct COM port and File -> Examples -> Firmata -> StandardFirmata -> Upload to Arduino UNO Board.

Firmware Setup

Note: After uploading StandardFirmata to the Arduino Board, Python can be used to program it.

3.3 Setup Software

We will now install the necessary tools to gain access to the Arduino Board. This project utilizes essential libraries, including MediaPipe and PyFirmata. We need to install all the required dependencies on the development computer.

  • Step 01: Install Python

    Ver: 3.8.5 is Recommended (www.python.org)
    
  • Step 02: Navigate to the specified location in CMD/Terminal.

    ai-gesture-autolight-system/docs/requirements.txt
    
  • Step 03: Execute the given command to install all dependencies.

    pip install -r requirements.txt
    

04 Usage

  • Source Directory:

    ai-gesture-autolight-system\source\main.py
    

4.1 Setps to run

  • Step 01: Connect the Arduino to the development computer.

  • Step 02: Modify the script to reflect the appropriate COM port.

    Change COM Port

  • Step 03: Run app.

    python source/main.py
    

4.2 Output

4-demo-video.webm

Contact

Website:

Visit

Social Media:

LinkedIn Facebook WhatsApp Instagram X.COM Kaggle TikTok YouTube

About

An AI-powered lighting control system that utilizes Arduino, Computer Vision, and gesture detection technology to automate the powering process.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages