Instructables

Wave-Inator (Credit to Dr. Doofenshmirtz)

Picture of Wave-Inator (Credit to Dr. Doofenshmirtz)
Hello and welcome to our first multibot based off of http://www.instructables.com/id/multi-bot-Basis/. Today we will show you Dr. Doofenshmirtz's new evil invention to better his feelings. This is called the Wave-Inator. (Prerequisites: Multibot Basis)

Submitted by Newton Labs for the Instructables Sponsorship Program
 
Remove these adsRemove these ads by Signing Up

Step 1: Supplies.

Picture of Supplies.
IMG_1618.JPG
Parts:
Multibot basis
screws
2 servos
paper
Duct-tape

Tools:
screwdriver 
scissors 

Step 2: Mount the Servos

Picture of Mount the Servos
IMG_1608.JPG
IMG_1613.JPG
Mount one servo with the two holders on the servo. Mount the second by, unscrewing the piece that rotates, then attaching it to the opposite side of the other servo.

Step 3: Hand

Picture of Hand
IMG_1613.JPG
Cut out a trace of your hand, and screw it into your other servo's mount.

Step 4: Mount the remaining servo

Picture of Mount the remaining servo
Use Duct tape to attach the other Servo to the Plexiglass. Use counter weights if needed.

Step 6: The Code*

Picture of The Code*
* Copy paste this to your Arduino Program! You are Almost done!
#include <Servo.h>

Servo myservo;  // create servo object to control a servo
Servo myservo2;                // a maximum of eight servo objects can be created

int pos = 0;    // variable to store the servo position

void setup()
{
  myservo2.attach(10);
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
}


void loop()
{
  for(pos = 0; pos < 90; pos += 1)  // goes from 0 degrees to 90 degrees
  {     
    myservo2.write(pos);      // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
  for(pos = 90; pos>=1; pos-=1)     // goes from 90 degrees to 0 degrees
  {   
    myservo2.write(pos);     
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
}

Step 7: Try it Out, You are done!

Picture of Try it Out, You are done!
Thanks for taking your time to learn how to build one of doof's inators! Thanks Newton Labs Team. (Thanks to Starbot for the use of their facilities) 
J-Five1 year ago
Curse you Perry the Platypus!!!
simonfrfr (author)  J-Five1 year ago
:3
And thanks,
Do Supply Dr. Doofenshmirtz with his plans.
J-Five1 year ago
Wouldn't you like to have Doofenshmirtz a last name?