Introduction: Froggy World a 3D Printing Project
Step 1:
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);
}}}}}
Step 2:
I had to add a backstop and block to control where the frog lands when he leaves the seesaw. I also added a couple of "wings" (3d printing raft) to the end of the seesaw to keep the frog from escaping.
3D design and print files are available at:
http://www.thingiverse.com/thing:70140
Step 3:
I added a bar at the bottom of the stop gate to reduce the chance of the engine "jumping" and derailing.
Step 4:
I changed the coupling between the small train engine and first car to reduce jumping problems on the train seesaw.
Step 5:
My wife felt that it would not be right to get into an amusement park without waiting for tickets!
Step 6:
The base evolved from plywood--to blue--to ocean color--to its current "swamp theme."
Step 7:
Overall, this has involved 3D printing, Arduino, electronics, design, oven-baked clay and art.
Thanks for stopping by Froggy World :)
10 Comments
9 years ago on Step 7
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
Reply 9 years ago on Introduction
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 :)
Reply 9 years ago on Introduction
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
Reply 9 years ago on Introduction
LED projects are always interesting--I'm looking forward to seeing what you've done :)
Reply 9 years ago on Introduction
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
Reply 9 years ago on Introduction
Sounds like you are really together--I'd be honored to look at a preview :)
9 years ago on Introduction
Wow, so much going on! Well done.
Reply 9 years ago on Introduction
Thanks! We wanted it to be something that would take a little time to look at and process.
9 years ago on Introduction
Finally everything joins up to make an awesome project full of vibrant colors and energy!
Reply 9 years ago on Introduction
It's been a lot of fun . . . I wondered at times how I would get the project to come around full circle . .