Skip to content

lvonengel/Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotic Hand Control System

This repository contains the code for a robotic hand controlled through multiple interfaces including direct motor commands over serial, computer vision, and a GUI. The project explores different methods of interacting with a servo driven robotic hand using Arduino, Python, and OpenCV.

This repository is organized into three main folders, each representing a different way to control the robotic hand.


Basic Motor Control (C++/Arduino)

This folder contains code for directly controlling the servo motor through the Arduino Serial Monitor.

What it does

  • Allows manual control of the servo angle using serial commands

How to run

  1. Open Hand.ino in the Arduino IDE
  2. Upload the sketch to the Arduino
  3. Use the Arduino Serial Monitor to send angle commands

Computer Vision Control (OpenCV, C++ and Python)

This folder implements hand detection using a webcam and sends binary control signals to the Arduino via serial communication.

What it does

  • Detects a human hand through the computer’s webcam
  • Sends a 5 bit binary command to the Arduino based on whether it senses a figure is bent or not

How to run

  1. Upload HandReceiveCV.ino to the Arduino using the Arduino IDE
  2. Close the Arduino IDE to release the serial connection
  3. Run HandDetector.py to start the computer vision pipeline

Robotic Hand GUI (Python Application)

This folder contains a Python based graphical interface for controlling the robotic hand.

What it does

  • Provides a GUI with buttons and labels for controlling the servo

How to run

  1. Upload HandReceiveCV.ino to the Arduino using the Arduino IDE
  2. Run app.py
  3. Control the robotic hand using the GUI interface

Create and activate a virtual environment

py -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt

About

Code for the robotic arm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors