Introduction: Wave-Inator (Credit to Dr. Doofenshmirtz)

Hello and welcome to our first multibot based off of https://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

Step 1: Supplies.

Parts:
Multibot basis
screws
2 servos
paper
Duct-tape

Tools:
screwdriver 
scissors 

Step 2: Mount the Servos

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

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

Step 4: Mount the Remaining Servo

Use Duct tape to attach the other Servo to the Plexiglass. Use counter weights if needed.

Step 5: Wire It Up

 Connect the Servo with the hand's yellow wire, to Arduino port 10, and the Other Servo's Yellow wire to Arduino Port 9. The Red on both of the Servos goes to +5V, and the Black goes to GND.

Step 6: 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!

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) 

Comments

author
J-Five (author)2012-10-25

Curse you Perry the Platypus!!!

author
simonfrfr (author)J-Five2012-10-25

:3

author
J-Five (author)simonfrfr2013-01-15

And thanks,
Do Supply Dr. Doofenshmirtz with his plans.

author
J-Five (author)2012-10-25

Wouldn't you like to have Doofenshmirtz a last name?

About This Instructable

1,132views

2favorites

License:

Bio: Hey YOU! Yeah, I'm talking to you who is reading this. Send me ideas for instructables, like things that you are wondering how to ... More »
More by simonfrfr:DIY Spectrometer) Explore the Unknown ->Zombie Attack! Easy to build!Newton Labs Projects Arduino Guide (2012)
Add instructable to: