Skip to content

majockbim/robotic-arm-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Robotic Arm Controller

Control a 3D-printed robotic arm using two different input methods:

  • Hand Gestures Controller (OpenCV)
  • Keyboard Controller (Serial Monitor)

This project applies embedded systems and computer vision to control a physical robotic arm in real time.


Project Structure

robotic-arm-controller
β”œβ”€β”€ include
β”‚   └── keyboardController.h
β”‚
β”œβ”€β”€ opencv_controller
β”‚   β”œβ”€β”€ CMakeLists.txt
β”‚   β”œβ”€β”€ gestureController.cpp
β”‚   β”œβ”€β”€ gestureController.h
β”‚   β”œβ”€β”€ serial.cpp
β”‚   β”œβ”€β”€ serial.h
β”‚   β”œβ”€β”€ .vscode
β”‚   └── src
β”‚       └── main.cpp
β”‚
β”œβ”€β”€ platformio.ini
β”‚
└── src
    β”œβ”€β”€ output
    β”œβ”€β”€ keyboardController.cpp
    └── main.cpp

How to Run

1. Flash the Arduino (Main Controller)

Build / Compile Using PlatformIO:

pio run

Upload to Arduino

pio run --target upload

Open Serial Monitor

pio device monitor

You will be asked to pick a mode:

  • Keyboard Controller
  • Gesture Controller

Keyboard Controller Mode

If you select Keyboard Controller:

  • Stay in the PlatformIO Serial Monitor
  • Press keys to move the robotic arm joints
  • Commands are sent directly to the Arduino through serial

Gesture Controller Mode (OpenCV)

If you select Gesture Controller, then:

  1. Close the PlatformIO serial monitor (the OpenCV program needs the serial port)
  2. Build the OpenCV gesture controller:
cd opencv_controller
mkdir build
cd build
cmake ..
cmake --build . --config Release
  1. Run the gesture controller executable:
.\Release\opencv_controller.exe

This will:

  • Open your webcam
  • Detect hand poses
  • Translate gestures into servo commands
  • Send commands to the Arduino over serial

Demo Video (Gesture Controller)

robot-hand-gesture-demo.mp4

Requirements:

Arduino Controller

  • PlatformIO IDE

OpenCV Gesture Controller

  • CMake
  • OpenCV

Materials Hardware

3D Printed Parts

Based on open-source models designed by: LimpSquid

About

πŸ€– control a 6-axis robotic arm via hand gestures or keyboard input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors