Froggy World 1 the Catapult

by MikeTheMaker in Workshop > 3D Printing

9912 Views, 42 Favorites, 0 Comments

Froggy World 1 the Catapult

frog35.jpg


Froggy World is an amusement park for adventurous frogs. 

This ride is the first in a series.  Each ride receives a signal from the previous ride "You've got the frog;" and each ride signals the next that "Frog has left, you've got the frog." Eventually, the frog will be returned to the catapult (by another ride) and the cycle will repeat.

The concept for winding and releasing the catapult spring comes from Arduino Controlled Catapult by UnusualTravis
https://www.instructables.com/id/Arduino-Controlled-Catapult/


 

schematic1.jpg
There is no real "beginning" or "end" to this amusement park, but I had to start somewhere.  The signal on Arduino pin #13 (brought low) will cause this ride to catapult the frog, return to "ready" position and notify the next ride (by a low signal on pin #11) that the frog is now in their hands.

The code "winds" the spring servo, then moves the "release servo."  The spring servo unwinds (catapult falls back to start position) and the "release servo" moves to the latch position.  Then the "frog has left" signal is activated.

#include <Servo.h>

 

Servo myservo;

Servo release;

int start = 13;

int next = 11;

int val = 0;

 

void setup ()

{myservo.attach(5);

release.attach(6);

pinMode(start, INPUT);

pinMode(next, OUTPUT);

digitalWrite(next, HIGH);

myservo.write(150);

release.write(120);

}

 

void loop ()

{val=digitalRead(start);

if(val==LOW)

{myservo.write(5);

delay(1000);

release.write(180);

delay(1000);

myservo.write(150);

delay(2000);

release.write(120);

digitalWrite(next, LOW);

delay(1000);

digitalWrite(next, HIGH);

}}

frog19.jpg
I had to start somewhere . . . and this frog is actually #7 in my design sequence.

Design and 3d print files are available at:

http://www.thingiverse.com/thing:42991

frog17.jpg
I used magnet wire to tie the 1/4" x 3 1/4" x .025" spring to the catapult arm.

frog01.jpg
The catapult restraint keeps the arm in a position such that it will return to rest when the wound spring is released.

frog02.jpg
I cut a 1/4" x 3 1/4" x .025" spring to fit in the restraint.

frog03.jpg
The spring sticking out looks hazardous . . .

frog04.jpg
So, I cut the spring off and added a "safety button" on the end.

frog20.jpg
The 8" x 15" by 1/4" plywood base should be painted at this time.  (I didn't--had to remove everything to paint).

Add the base and the restraint with screws or small bolts.

frog08.jpg
frog09.jpg
frog12.jpg
Take the "servo extender" and drill two 1/16" diameter holes through the extender and the servo horn.  Use magnet wire to secure the extender to the horn.

frog22.jpg
Mount the servo (Hi tec HS 311--available at amazon.com) into the servo spring bracket.

frog23.jpg
Secure this with the spring servo bracket lid.

frog14.jpg
Install the catapult lever using a 3" long by 1/4" diameter wood dowel.  Attach a 1/4" x 3 1/4" by .025 spring to the catapult lever and the servo extender using magnet wire (#22).

Attach the servo horn to the servo motor and stretch the spring just enough that the catapult arm will lie at rest when the servo horn is in the leftmost position.

frog21.jpg
Fasten the "release servo" so that it prevents the catapult arm from lifting.

frog24.jpg
Secure the servo arm with the servo screw.

frog27.jpg
Secure the 9 volt battery holder to the plywood.

Solder jumper pins to the ends of all wires (use heat shrink tubing to protect the solder connections from shorting).

frog25.jpg
Screw the AA battery holder to the plywood.

frog31.jpg
Screw the Arduino to the plywood. 

Download the software from step #2 to the Arduino if you have not already done so.

frog32.jpg
Remove the sticky back paper and attach the perf board to the plywood (you'll never get it loose--be sure it's where you want it). 

Neaten up the cable runs with cable ties or holders (some printed ones are available if you are 3d printing parts).

frog33.jpg
Fasten everything together, as neatly as possible.

frog34.jpg
The frog should be ready to fly!