Instructables

Froggy World A 3D Printing Project

Picture of Froggy World A 3D Printing Project


This is it--Froggy World (the amusement park for adventurous plastic frogs) is up and running.  We have been accepted in the 2013 San Mateo Maker Faire and you can see us live there!

The frog gets thrown from the catapult, booted down the belt, seesawed into the train, ridden around the park, slammed to a stop, then gripped and returned to the catapult.

I've been making adjustments and adding pieces to improve operation--and this instructable will explain those things.

To see all the component projects:

http://www.instructables.com/tag/type-id/?sort=none&q=froggy+world
 
 
Remove these adsRemove these ads by Signing Up

Step 1:

Picture of
The train (Froggy World 4) needed an additional stop arm and stop sensor (and software) to stop for the bird pickup.

Here's the code:

#include <Servo.h>

 

Servo gate;

Servo bird;

int start=10;

int next=7;

int dummy=0;

int train=5;

int arrival=1;

int val=0;

int val2=0;

int birdin=9;

int birdout=8;

int birdmagnet=4;

int val3=5;

 

void setup()

{gate.attach (3);

bird.attach (2);

pinMode (next, OUTPUT);

pinMode (start, INPUT);

pinMode(arrival, INPUT);

pinMode (train, OUTPUT);

pinMode(birdin, INPUT);

pinMode(birdout, OUTPUT);

pinMode(birdmagnet, INPUT);

digitalWrite (next, HIGH);

digitalWrite (train, LOW);

digitalWrite (birdout, HIGH);

gate.write(130);

bird.write(170);

delay(1000);

}

 

void loop()

 

{val=digitalRead(start);

if(val==LOW or dummy==1)

{

  gate.write(45);

  bird.write(85);

 

  delay (500);

  digitalWrite(train,HIGH);

//if(dummy=0)

delay(5000);

dummy=2;}

 

else

{val2=digitalRead(birdmagnet);

if(val2==LOW)

{delay(1025);//delay from magnet to bird gate

  digitalWrite (train, LOW);

bird.write(165);

val2=0;

dummy=0;

val=0;

delay(500);

 

digitalWrite (birdout, LOW);//start bird pickup

delay (500);

digitalWrite (birdout, HIGH);}

 

else

{val3=digitalRead(birdin);

if(val3==LOW or dummy==5)//signal that bird is done

{

  gate.write(45);

  bird.write(85);

 

 

  digitalWrite(train,HIGH);

dummy=5;

 

 

 

 

val2=digitalRead(arrival);

if(val2==LOW)

//{delay(100);//delay from magnet to main gate

  {digitalWrite (train, LOW);

gate.write(130);

val2=0;

dummy=0;

val=0;

digitalWrite (next, LOW);

delay (500);

digitalWrite (next, HIGH);

 

}}}}}

Bravo ! Bravo ! Amazing project follow through ! This was a great learning experience for the reader ...so I know that you also gained a wealth of knowledge yourself...in so many ways.
Please keep contributing these instructables ...they are helping so many people develop their creative side...myself included!
Thank you again and good luck !
Build_it_Bob
MikeTheMaker (author)  Build_it_Bob1 year ago
Thanks for the encouragement! I have learned a great deal . . . . I can actually design simple parts in 3D software now; my programming skills are improving and documenting projects takes less time. Surprisingly, the more I do, the more ideas I have. When I get an idea with commercial relevance, I'll consider trying "Kickstarter."

How's your stuff going? I'm watching for something great from your camp :)
I am working on several projects ( mainly LED lighting ) , but my plan is to put them together and run them real world 1st. I can always find tweaks to make them look or work better.
When i am ready to publish anything I will contact you for some direction.Please make sure that you let me know about anything you are going to pursue with kickstarter . I would be honored to be part of it with you.
Many Thanks to you,
Build_it_Bob
MikeTheMaker (author)  Build_it_Bob1 year ago
LED projects are always interesting--I'm looking forward to seeing what you've done :)
I have been taking more pictures and organizing project folders . I tend to document things well, but i usually translate hand drawn into Fritzing or other sketches after buttoning a project up. Keeping an "As Done " folder has helped a lot as well.
I will send you a preview to get your opinion if that is ok with you ?
Build_it_Bob
MikeTheMaker (author)  Build_it_Bob1 year ago
Sounds like you are really together--I'd be honored to look at a preview :)
Wow, so much going on! Well done.
MikeTheMaker (author)  Dream Dragon1 year ago
Thanks! We wanted it to be something that would take a little time to look at and process.
Finally everything joins up to make an awesome project full of vibrant colors and energy!
MikeTheMaker (author)  Antzy Carmasaic1 year ago
It's been a lot of fun . . . I wondered at times how I would get the project to come around full circle . .
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!