Introduction: Computerized Bouncing Gator

Picture of Computerized Bouncing Gator

Taking my Bouncing Gator, I decided to automate the process of "flicking" the guy to keep him moving. Why not let an Arduino and a servo motor do the work?

Step 1:

Picture of

You need a base to hold the servo motor--and that was 3d printed.

Step 2:

I needed a sketch for the Arduino to control the servo motor.

#include <Servo.h>
Servo gator;

void setup () {

gator.attach(3);

gator.write(170);//arm out of way

delay(2000);

}

void loop() {

gator.write(65);//smack gator

delay(500);

gator.write(170);//arm out of way

delay(40000);

gator.write(80);//stop gator to prepare for smack

delay(2000);

gator.write(170);//arm out of way

delay(500);

}

Step 3:

Picture of

Fasten the servo motor and drinking bird legs to the base with machine screws.

Step 4:

Picture of

Wire according to this schematic.

Now, you should have hours of mechanized gator smacking.

Comments

About This Instructable

212views

2favorites

License:

Bio: I am an author and a maker. My current project is Santa's Shop. I'm working on a science fiction type book--more later. @EngineerRigsby
More by MikeTheMaker:Santa's Shop 2017, the TrainSnowflake Gear WreathHappy Gear Table
Add instructable to: