Control Robotic Arm With Gloves, Android Phone and Intel Galileo (Updated)

Intro: Control Robotic Arm With Gloves, Android Phone and Intel Galileo (Updated)

Actually, this project based on another project I have build before. Yet, Instead of building the robotic arm and using Arduino, I used my friend 6DOF robotic arm and Intel Galileo.

Step 1: Components

1- Intel Galileo Gen 2

2- 1Sheeld

3- 6 DOF Robotic Arm.

4- Android Smart phone.

Step 2: Arduino Sketch and Mobile Application

First, we have to download the 1Sheeld application from Play Store.

Then, download the 1Sheeld library and place it in the Arduino libraries directory. If, It is your first time to deal with 1Sheeld, you should see this getting started tutorial at first.

You will find the code below, it is so easy. Actually, the code simply gets the values of the oreinataion sensor from the mobile for the 3 directions (x,y,z) and map then on the servos and use the proximity sensor to open and close the gripper.

#include <Servo.h>
#include <OneSheeld.h> Servo myservo1; Servo myservo2; Servo myservo5; Servo myservo6; void setup() { OneSheeld.begin(); myservo1.attach(3); myservo1.write(0); myservo2.attach(5); myservo2.write(0); myservo5.attach(10); myservo5.write(70); myservo6.attach(11); myservo6.write(10); analogWrite(6, 200); analogWrite(9, 200); } void loop() { if (ProximitySensor.getValue() > 0) myservo6.write(10); else myservo6.write(120); if(OrientationSensor.getX() > 0 && OrientationSensor.getX() <= 180) myservo1.write(map(abs(OrientationSensor.getX()),0,180,180,0)); if(OrientationSensor.getY() < -90 && OrientationSensor.getY() >= -180) myservo2.write(map(abs(OrientationSensor.getY()),180,90,0,90)); if(OrientationSensor.getZ() > 0 && abs(OrientationSensor.getZ()) <= 60) myservo5.write(map(OrientationSensor.getZ(),0,60,70,180)); if(OrientationSensor.getZ() < 0 && abs(OrientationSensor.getZ()) <= 60) myservo5.write(map(abs(OrientationSensor.getZ()),0,60,70,0)); OneSheeld.processInput(); }

Step 3: Test

After uploading the code on Intel Galileo and installing the mobile applications. Open the mobile application and scan for 1Sheeld via bluetooth and connect to the shield.

Choose the orientation and proximity shields, and then test.

Share

    Recommendations

    • Fix It! Contest

      Fix It! Contest
    • Furniture Contest 2018

      Furniture Contest 2018
    • Tiny Home Contest

      Tiny Home Contest

    10 Discussions

    0
    None
    منسدحب

    1 year ago

    what is kind the servo board

    0
    None
    vivekd4

    3 years ago on Introduction

    hello
    there , i am working on project in which i have to obtain velocity and
    position using an accelerometer , but i dont know how ? can u help me?

    0
    None
    vivekd4

    3 years ago on Introduction

    is it possible to track position from accelerometer or orientation sensor?

    0
    None
    BarbuC

    3 years ago on Introduction

    Can you please send me the drawings of the mechanical parts ? I have some issues with the mechanical work . Thx for instructable , it is awesome ! E-mail: cristian.barbu94@gmail.com

    0
    None
    KumarM

    3 years ago on Introduction

    ashraf can u please share the complete working code its urgent @ kmanohar003@gmail.com please hoping to get this small favour from you

    1 reply
    0
    None
    ashraf nabilKumarM

    Reply 3 years ago on Introduction

    Hi KumarM ,, actually the above code is the complete code for the project, since the 1Sheeld library facilitate the coding so much.