Things used in this project

Hardware components:
A000066 iso both
Arduino UNO & Genuino UNO
×1
12002 04
Breadboard (generic)
×1
09939 01
Rotary potentiometer (generic)
×5
Servo (generic)
×5
826 04
Male/Female Jumper Wires
×1
Openbuilds cable ties
OpenBuilds Cable Ties (10 Pack)
×1
Software apps and online services:
Ide web
Arduino IDE
Hand tools and fabrication machines:
Hy gluegun
Hot glue gun (generic)
A4kb1xynkid5ebvjyil7
Digilent Screwdriver

Schematics

Animatronic Hand Circuit Diagram
Screenshot (60) r1sybwnlff

Code

Animatronic Hand Source codeArduino
#include <Servo.h>

Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;


int pot1 = 3;
int pot2 = 4;
int pot3 = 5;
int pot4 = 6;
int pot5 = 7;



int valPot1;
int valPot2;
int valPot3;
int valPot4;
int valPot5;


void setup()
{
  servo1.attach(A0);
  servo2.attach(A1);
  servo3.attach(A2);
  servo4.attach(A3);
  servo5.attach(A4);
}

void loop()
{
  valPot1 = analogRead(pot1);
  valPot1 = map (valPot1, 0, 1023, 180, 0);
  servo1.write(valPot1);
  delay(15);

  valPot2 = analogRead(pot2);
  valPot2 = map (valPot2, 0, 1023, 180, 0);
  servo2.write(valPot2);
  delay(15);

  valPot3 = analogRead(pot3);
  valPot3 = map (valPot3, 0, 1023, 180, 0);
  servo3.write(valPot3);
  delay(15);

  valPot4 = analogRead(pot4);
  valPot4 = map (valPot4, 0, 1023, 180, 0);
  servo4.write(valPot4);
  delay(15);

  valPot5 = analogRead(pot5);
  valPot5 = map (valPot5, 0, 1023, 180, 0);
  servo5.write(valPot5);
  delay(15);
  }

Credits

Nutsandbolts
Arduino-Projects
2 projects • 0 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login