Project tutorial
Control Robot Arm with your Android Phone

Control Robot Arm with your Android Phone

This is how to control Robot Arm using Mobile Application which is really cool, have fun and please give me feed back.

  • 12,957 views
  • 0 comments
  • 25 respects

Components and supplies

About this project

I was in internship organized by Integreight and I made this as part of it.

I need your opinion and I wish I can help you by publishing this.

Step 1: Materials and Tools

Collect the following list of things.

1. MeArm Robot Arm. You can buy it from any store you prefer.

2. Arduino UNO

3. Test Board

4. Arduino USB cable

5. +5v output converter

6. 1Sheeld Board

7. 15 male-male wires

Step 2: Download 1Sheeld Mobile App

You will need mobile Application to communicate with your hardware.

You can download it from here

Step 3: Load the Code on the Arduino

I have shared the code on codebender.cc and you can find it here

Copy and Paste the code to your Arduino IDE.

Load the code to your Arduino and then put the 1Sheeld on it as the pic shows.

Step 4: Connect the Circuit

Connect all power terminals (Red wires) of the servo motor's with +5v.

Connect all ground terminals (Brown wires) of the servo motors with the ground.

Connect the ground pin on the sheeld with the ground too.

Connect the control wires from the servo motors as follow:

Base to pin 8

Shoulder (on the right) to pin 9

Elbow (on the left) to pin 10

Hand to pin 11

Step 5: Connect with the App

Press scan and you will see the available list of Sheelds.

Choose your one, and enable the GamePad as you see.

Press the shield icon on the top right of the app to see your Game Pad.

You are now connected with the Arm Robot.

Step 6: Play and let us See

Now use the Application and play with your arm, share it with your friends and let me see if I could help you.

Code

Untitled fileArduino
/*
	This code is for controlling MeArm using 1Sheeld gamepad shield
	The Robot is 4 servo motors //link to get fritzing for the robot
	Used arduino uno and 1sheeld
	a_atef45@yahoo.com
	www.zerosnones.net
	+201153300223
*/

// Defining the shield needed only (gamepad), this will save memory
#define CUSTOM_SETTINGS
#define INCLUDE_GAMEPAD_SHIELD

// Include OneSheeld.h and Servo.h for controlling servo's
#include <OneSheeld.h>
#include <Servo.h>

// Making servo objects
Servo base;
Servo shoulder;
Servo elbow;
Servo hand;

// Global varianles for initializing the servo motors positions
int basePos=90;
int shoulderPos=60;
int elbowPos=90;
int handPos=90;

// Setup code runs only one time
void setup()
{
	// Begging the onesheeld
	OneSheeld.begin();
	
	// Attach servo motors
	// Base on 8, shoulder on 9, elbow on 10 and hand on 11
	base.attach(8);
	shoulder.attach(9);
	elbow.attach(10);
	hand.attach(11);
}

// Loop code runs reaptrepeatedly
void loop()
{
	// Controlling base
	// Right moves the base to right and left moves it to left
	if(GamePad.isRightPressed()) {
		basePos-=8;
	} else if(GamePad.isLeftPressed()) {
		basePos+=8;
	}
	// Controlling elbow
	// Up moves the elbow up and down gets it down
	if(GamePad.isUpPressed()) {
		elbowPos+=8;
	} else if(GamePad.isDownPressed()) {
		elbowPos-=8;
	}
	// Controlling shoulder
	// Orange button moves it forward and green moves it backward
	if(GamePad.isOrangePressed()) {
		shoulderPos+=8;
	} else if(GamePad.isGreenPressed()) {
		shoulderPos-=8;
	}
	// Controlling hand
	// Red closes the hand and blue opens it
	if(GamePad.isRedPressed()) {
		handPos+=8;
	} else if(GamePad.isBluePressed()) {
		handPos-=8;
	}
	
	// Move the servo motors to it's new positions
	base.write(basePos);
	shoulder.write(shoulderPos);
	elbow.write(elbowPos);
	hand.write(handPos);
	
	// Delay before run again
	delay(60);
}
Codebender
https://codebender.cc/sketch:235169#Robot%20Arm.ino

Comments

Similar projects you might like

Android Controlled 6DoF Robotic Arm

Project in progress by Team Mans

  • 13,298 views
  • 0 comments
  • 22 respects

Control Arduino Robot Arm with Android App

Project tutorial by Slant Concepts

  • 16,989 views
  • 8 comments
  • 35 respects

MeArm Robot Arm - Your Robot - V1.0

Project tutorial by Benjamin Gray

  • 27,102 views
  • 4 comments
  • 41 respects

Arduino - Control Arm Robot via Web

Project tutorial by phpoc_man

  • 17,028 views
  • 23 comments
  • 159 respects

Voice Controlled Robot using your Smart Phone

Project tutorial by Ahmed Yassin

  • 4,521 views
  • 0 comments
  • 10 respects

Control your Light System Using Smart Phone

Project tutorial by Ahmed Yassin

  • 43,497 views
  • 5 comments
  • 63 respects
Add projectSign up / Login