Introduction: Computerized Bouncing Gator

About: 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

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:

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:

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

Step 4:

Wire according to this schematic.

Now, you should have hours of mechanized gator smacking.