Computerized Bouncing Gator

by MikeTheMaker in Circuits > Arduino

397 Views, 2 Favorites, 0 Comments

Computerized Bouncing Gator

computer gator3.jpg

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?

computer gator1.jpg

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

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);

}

Downloads

computer gator2.jpg

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

schematic.jpg

Wire according to this schematic.

Now, you should have hours of mechanized gator smacking.