Project tutorial
Robotic Arm

Robotic Arm

The ARA (Arduino Robotic Arm) is an initial project, a first phase, of one of the most popular project carried out by the Arduino community.

  • 5,039 views
  • 0 comments
  • 4 respects

Components and supplies

Apps and online services

About this project

Visit the Mako website to read the complete article: http://www.makosite.one/robotic-arm.php

Code

SketchArduino
visit the website: http://www.makosite.one/robotic-arm.php
#include <Servo.h>

Servo myservo;   // create 4 servo objects to control the servos
Servo myservo1;
Servo myservo2;
Servo myservo3;

int angle = 90; // initial angle  for servo
int angle1 = 90;
int angle2 = 90;
int angle3 = 90;
int angleStep = 5;

#define LEFT 10   // pin 10 is connected to left button
#define RIGHT  11  // pin 11 is connected to right button
#define LEFT1 2 // pin 2 is connected to right button
#define RIGHT1 3 // pin 3 is connected to right button
#define LEFT2 6 // pin 6 is connected to right button
#define RIGHT2 7 // pin 7 is connected to right button
#define RIGHT3 4 // pin 4 is connected to right button
#define LEFT3 5 // pin 5 is connected to right button

void setup() {
 Serial.begin(9600);  //  setup serial
 myservo.attach(8);  // attaches the servo on pin 9 to the servo object
 myservo1.attach(9);
 myservo2.attach(12);
 myservo3.attach(13);
 pinMode(LEFT, INPUT_PULLUP); // assign pins as input left button
pinMode(RIGHT, INPUT_PULLUP); // assing pins as input for right button
pinMode(LEFT1, INPUT_PULLUP);
pinMode(RIGHT1, INPUT_PULLUP);
pinMode(LEFT2, INPUT_PULLUP);
pinMode(RIGHT2, INPUT_PULLUP);
pinMode(LEFT3, INPUT_PULLUP);
pinMode(RIGHT3, INPUT_PULLUP);
 
myservo.write(angle); // send servo to the middle at 90 degrees
myservo1.write(angle1); // send servo to the middle at 90 degrees
myservo1.write(angle2); // send servo to the middle at 90 degrees
myservo1.write(angle3); // send servo to the middle at 90 degrees
    
}

void loop() {
////////////////////////////////////////////////////////////////////////

//visit the website for the complete code: http://www.makosite.one/robotic-arm.php

////////////////////////////////////////////////////////////////////////
 
 

Schematics

Circuit diagram
Screenshot (22) o3byb1wgd6

Comments

Similar projects you might like

Practical robotic grip arm

Project tutorial by Fethi Safak CAKIR

  • 2,515 views
  • 3 comments
  • 5 respects

Simple Programmable Robotic Arm

Project showcase by Ryan Chan

  • 176,313 views
  • 114 comments
  • 405 respects

Robotic Arm Controlled by Human Arm

Project showcase by zezarandrade

  • 12,753 views
  • 1 comment
  • 22 respects

Local and Remote Programmable Robotic Arm

Project tutorial by MJRoBot (Marcelo Rovai)

  • 29,485 views
  • 7 comments
  • 74 respects

Simple 2-axis Servo Robotic Arm controlled by MPU-6050

Project tutorial by Rucksikaa Raajkumar

  • 7,359 views
  • 0 comments
  • 14 respects

Bracc.ino - Robotic Arm

Project in progress by Basso&Delmoro&Gramaglia

  • 5,883 views
  • 1 comment
  • 24 respects
Add projectSign up / Login