Animatronic Eye Mech


In this project we will make  a simple servo controlled animatronic eyeball that uses 2 servos. The eye can look left and right and the top eyelid can open and close.

==============================

Required Hardware:

Arduio Board - https://goo.gl/Rqc5w2
Servo Motor - https://goo.gl/jQJZlG
Anet A8 3D Printer - https://goo.gl/MNa3p9
Mini Breadboard - https://goo.gl/08nnr1
Jumper Wires - https://goo.gl/08nnr1
Paperclip

==============================

Discount / Deals Products

Big Bang Deals -- https://goo.gl/6sSQub
US/EU Warehouse Deals -- https://goo.gl/DH1jBZ
Crazy Disscount -- https://goo.gl/nJta9A
Buy One Get One Free -- https://goo.gl/Qc736P
New Mobile Tech -- https://goo.gl/3mSC3A
Anet A8 3D Printer US Warehouse US$149 -- https://goo.gl/QTTLwy

==============================

Get the 3D Models

https://www.thingiverse.com/thing:319978



==============================

Get the Source Code
//include library for servo
#include <Servo.h>

//define name of the servo motors
Servo upDownServo;
Servo rightLeftServo;

//define position name and value
#define left 60
#define right 120
#define middle 90
#define closed 60
#define fullOpen 160
#define halfOpen 120

#define waitTime 750


void setup(){
  //define pin numbers of the servo motors
  upDownServo.attach(6);
  rightLeftServo.attach(5);

  //starting position of the servo motors
  delay(10);
  upDownServo.write(closed);
  rightLeftServo.write(middle);
}

void loop(){
  
  delay(1000);
  upDownServo.write(halfOpen);
  delay(waitTime);
  rightLeftServo.write(right);
  delay(waitTime);
  rightLeftServo.write(left);
  delay(waitTime);
  rightLeftServo.write(middle);

  delay(1000);
  upDownServo.write(closed);
  delay(waitTime);
  upDownServo.write(fullOpen);
  delay(waitTime);
  upDownServo.write(closed);
  delay(waitTime);
  upDownServo.write(fullOpen);
  delay(waitTime);
  rightLeftServo.write(right);
  delay(waitTime);
  rightLeftServo.write(left);
  delay(waitTime);
  rightLeftServo.write(middle);
  upDownServo.write(halfOpen);
  delay(waitTime);
  rightLeftServo.write(right);
  delay(waitTime);
  rightLeftServo.write(left);
  delay(waitTime);
  rightLeftServo.write(middle);
  delay(waitTime);
  upDownServo.write(fullOpen);
  delay(waitTime);
  upDownServo.write(halfOpen);
  delay(waitTime);
  upDownServo.write(fullOpen);
  delay(waitTime);
  rightLeftServo.write(right);
  delay(waitTime);
  rightLeftServo.write(left);
  delay(waitTime);
  rightLeftServo.write(middle);
}