zezarandrade
Published © GPL3+

Robotic Arm Controlled by Human Arm

Construction of a prototype that mimics the movements of the human arm.

IntermediateShowcase (no instructions)16,738
Robotic Arm Controlled by Human Arm

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
DC motor (generic)
DC Motor, 6V
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
Potentiometer, !0 K
×2
Gearbox
×1
Motor Control
Motor Control which includes: 2 Relays, Resistors, Transistors and Diodes. See Schematics for detail
×1

Story

Read more

Schematics

Circuit Diagram

Wiring

Code

Robot_Arm Software

Arduino
int POT1 = A0;    // select the input pin for the potentiometer 1
int POT2 = A1;    // select the input pin for the potentiometer 2
int X = 0;      // select the pin for the motor control (FORWARD)
int Y = 1;      // select the pin for the motor control (REVERSE)
int sensorValue1 = 0;  // variable to store the value coming from POT1
int sensorValue2 = 0;  // variable to store the value coming from POT2
void setup()
{ // declare X AND Y as an OUTPUT:
  pinMode(X, OUTPUT);
  pinMode(Y, OUTPUT); }
void loop() 
{  // read the values from the POTS:
  sensorValue1 = analogRead(POT1);
  sensorValue2 = analogRead(POT2);
  // compare sensor values:
  if (sensorValue1 <= sensorValue2 + 50 || sensorValue1 >= sensorValue2 - 50)
{ digitalWrite(X, LOW);
  digitalWrite(Y, LOW);   }
  if (sensorValue1 < sensorValue2 - 51)
{ digitalWrite(X, LOW);
  digitalWrite(Y, HIGH);   } 
   if (sensorValue1 > sensorValue2 + 51)
{ digitalWrite(X, HIGH);
  digitalWrite(Y, LOW);    }  }

Credits

zezarandrade

zezarandrade

2 projects • 25 followers

Comments