Froggy World 1 The Catapult

 by MikeTheMaker
Featured
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
http://www.instructables.com/id/Arduino-Controlled-Catapult/


 
 
Remove these adsRemove these ads by Signing Up

Step 1:

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

}}

UnusualTravis says: Mar 14, 2013. 11:09 PM
Nice work!
J-Five says: Jan 28, 2013. 1:53 PM
I know what the frog is saying "WEEEEEEEE!!!"
MikeTheMaker (author) in reply to J-FiveJan 28, 2013. 2:43 PM
In the next few days, the frog will "land" and have a new experience :)
J-Five in reply to MikeTheMakerJan 28, 2013. 3:14 PM
By the way, how far can go
MikeTheMaker (author) in reply to J-FiveJan 28, 2013. 4:30 PM
From carpeted floor to carpeted floor--12 to 15 feet. From a table to a tile floor, quite a bit farther.
J-Five in reply to MikeTheMakerJan 29, 2013. 8:44 AM
That's what I thought any plans to make one human size that might be fun.
I better not give you any ideas.
MikeTheMaker (author) in reply to J-FiveJan 31, 2013. 8:12 AM
I can think of a few people who need to ride the human size version . . . "The Boot" (where Froggy lands) is now ready
http://www.instructables.com/id/Froggy-World-2-The-Boot/
J-Five in reply to MikeTheMakerJan 31, 2013. 2:05 PM
I would build it if there were any plans.
MikeTheMaker (author) in reply to J-FiveJan 31, 2013. 4:38 PM
I don't know about human riders--but a catapult big enough to fling watermelons could be a treat . . . .
J-Five says: Jan 30, 2013. 5:43 AM
Don't quote me on this if you lengthen the lever and/or make the spring more compressed you might increase the distance.
J-Five says: Jan 20, 2013. 6:40 AM
TOADLY COOL!!!!
J-Five says: Jan 18, 2013. 5:32 AM
Cool,

Even though it should have been called frogapult!!
MikeTheMaker (author) in reply to J-FiveJan 18, 2013. 5:41 AM
I didn't think of that . . . good name!
J-Five in reply to MikeTheMakerJan 18, 2013. 5:45 AM
Thanks!!!!
Marko238 says: Jan 18, 2013. 12:57 AM
Poor froggy :(, but guess it's the only way to get a plastic frog to jump.
MikeTheMaker (author) in reply to Marko238Jan 18, 2013. 5:37 AM
The plastic frogs are excited to have their own amusement park--of course the plastic mice are everywhere in other parks . . .
GorillazMiko says: Jan 17, 2013. 5:47 PM
This is awesome! I'm currently in the process of getting started with C++ and messing around with Arduino, so I'll definitely give this one a shot. Great Instructable!

GM
MikeTheMaker (author) in reply to GorillazMikoJan 17, 2013. 6:06 PM
Thank you! I can just barely get around in C . . . if you discover any good books on the subject, let me know.
SlickSqueegie says: Jan 17, 2013. 5:30 PM
Nice work! This is pretty cool!
MikeTheMaker (author) in reply to SlickSqueegieJan 17, 2013. 5:36 PM
Thanks! If all goes well, this frog will have a lot of "experiences" before returning to the catapult . . .
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!