loading

This is a Simulink Model to Control a Robotic Arm By Gestures that are captured using Kinect. A Robotic Arm is developed using Servo Motors.

Step 1: Things Used in This Project

Hardware components:

  1. Arduino Mega 2560
  2. Microsoft Kinect for Xbox 360
  3. Microsoft Xbox Kinect Adapter
  4. Adafruit Servo Motor
  5. SparkFun USB to Serial Breakout - FT232RL
  6. Gripper
  7. Solderless Breadboard Full Size
  8. Jumper wires (generic)

Software apps and online services:

  1. Arduino IDE
  2. Microsoft Kinect for Windows SDK v1.6
  3. Microsoft Windows SDK 7.1
  4. MATLAB 2013a

Step 2: Story

This is a Simulink Model to Control a Robotic Arm By Gestures that are captured using Kinect Sensor. A Robot Arm is developed using Servo Motors that replicates the Right Arm Shoulder, Elbow and Hand Movements.

My File at Mathworks File Exchange : https://in.mathworks.com/matlabcentral/fileexchan...

A Project By

B.Avinash & J.Karthikeyan

The Zip file contains the Matlab Simulink Support for Kinect and the Simulink Model named "GestureControlledRoboticArm" that WE HAVE CREATED and also the Arduino Code/Wiring Diagram. The Simulink Support for Kinect was downloaded from Mathworks File Exchange and the full credits go to "Takashi Chikamasa" for providing it. We do not own the copyrights or have developed the Simulink Support For Kinect. Simulink

Support for Kinect consists of IMAQ, Image, IR, Depth, Motion and Skeleton blocks to achieve real-time image data acquisition from Kinect devices such as Microsoft Kinect or ASUS Xtion PRO under Simulink simulation environment. It works with 32bit/64bit version of MATLAB R2010b or later in Windows7 32bit/64bit and it requires the following 3rd party software:

[C MEX Compiler] - Microsoft Visual Studio 2010 Express Edition (VC++) - Microsoft Windows SDK 7.1

[To use OpenNI http://openni.ru/ ] - OpenNI - PrimeSense NITE - PrimeSensor Module [To use Microsoft Kinect SDK http://openni.ru/ ] - Microsoft Kinect for Windows SDK v1.6 For more detailed information, please refer to document in the zip file and help of the blocks.

[Optional MATLAB products] - Computer Vision System Toolbox (highly recommended) - DSP System Toolbox (to acquire Kinect Microphone Array data) - Simulink Coder (to generate *.exe file)

Acknowledgements : Kinect Matlab, Simulink Support For Kinect, and Kinect Microsoft Sdk inspired this Project.

Step 3: Custom Parts and Enclosures

Simulink Model

Open the GestureControlledRoboticArm.mdl using Matlab after installing the Simulink Support for Kinect.

Download : GestureControlledRoboticArm.mdl

Matlab Simulink Code & Library Files (Instructions included)

In the .ZIP, you can find the Simulink for Kinect Support developed by Takashi Chikamasa, Mathworks. Inside the "slkinect" folder, you can find the instruction on how to install the library file in Matlab.

Download : Gesture Controlled Robotic Arm Using Matlab Simulink Support For Kinect.zip

Step 4: Schematics - ​Arduino - Servo Connection

Arduino - Servo Connection

The data output (angle) from the matlab software is sent to the arduino via TTL device. The connection from the TTL - Arduino & Arduino - Servo motors are as shown in the diagram.

Step 5: Schematics - ​Simulink Model (Gesture Controlled Robotic Arm)

Simulink Model (Gesture Controlled Robotic Arm)

This is the simulink model we have developed to aquire the data from kinect, convert xyz co-ordinates to angle, decrypt the data and send it to Arduino via Serial Communication.

Step 6: Code - Arduino Program to Receive Angle Data From Matlab

Arduino Program to Receive Angle Data from Matlab - Arduino

The angle output from the Matlab Software is encypted. In the Arduino IDE, we have written a rogram to receive the angle data, decrypt it and send it to the servo motors.

Download : Arduino Code

Step 7: Awards and Recognitions

"Gesture Controlled Robotic Arm Using Kinect (Simulink Support For Kinect) and Arduino" has been chosen in the week's ( 29/10/2016) Pick of the Week! - Matlab Simulink Hardware Challenge 2016

Won the 4th place in "MATLAB International Simulink Hardware Challenge 2016"

http://blogs.mathworks.com/pick/2016/10/28/2016-ma...

https://in.mathworks.com/matlabcentral/fileexchang...

Step 8: Credits

<p>First this is an excellent project. I am using kinect xbox 1 sdkv 2.0 and visual studio 2013 desktop app, MATLAB R2016a. When I am running setup_kinectsdk.m file I get the following error. </p><p><br>&gt;&gt; setup_kinectsdk<br>### Confirming Simulink Support for Kinect installations with Kinect SDK...<br>### Setting MATLAB path to .\Lib and .\Lib\doc_en directories.<br>Warning: Name is nonexistent or not a directory: C:\Users\A\Documents\MATLAB\Lib <br>&gt; In path (line 109)<br> In addpath (line 88)<br> In setup_kinectsdk (line 54) <br>Warning: Name is nonexistent or not a directory: C:\Users\A\Documents\MATLAB\Lib\doc_en <br>&gt; In path (line 109)<br> In addpath (line 88)<br> In setup_kinectsdk (line 55) <br>### Generating C:\Users\A\Documents\MATLAB\Lib\simulinkfornidinfo.m<br>Error using fclose<br>Invalid file identifier. Use fopen to generate a valid file identifier.<br><br>Error in setup_kinectsdk (line 68)<br> fclose(fid);</p><p>Please help.</p>
<p>Awesome project! </p>
<p>Thanks! Please vote this project for Circuit Contest :D</p>
<p>Thanks! :)</p>
<p>this project. this website one number projet.<br>10 star you deserve</p>
<p>Thanks! Please vote this project for Circuit Contest :D</p>

About This Instructable

4,841views

93favorites

License:

More by avinash15101994:Gesture Controlled Robotic Arm Using Kinect & Arduino 
Add instructable to: