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

About: 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 make or build, or really anything electronically related, and I'll get back to …

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) 

Hack It! Contest

Participated in the
Hack It! Contest