Introduction: Froggy World 2 the Boot

Picture of Froggy World 2  the Boot


Froggy World, the amusement park for adventurous plastic frogs, has a new ride!  After being flung from a catapult

https://www.instructables.com/id/Froggy-World-1-The-Catapult/

Froggy must now ride the belt past the boot.  Will he succeed?

Is Froggy ready for the next adventure?

Step 1:

Picture of

To build a conveyor belt requires a few parts; motor, bearings and belt.

Polybelt.com  for a 40 inch long by 2 inch wide belt
vxb.com  for bearings
sciplus.com  for a motor (I used #40588, a gear motor intended to move automobile seats)

Files for the 3d printed parts are available at:

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

Start by making a "roller," 2 inches wide with a 2 inch diameter.  I used a 1/4 inch diameter wood rod for the axle.

Step 2:

Picture of

I placed a couple of "guides" to hold the motor mount and a bracket to adjust the tension on the motor.

Step 3:

Picture of

Friction fit the 2 inch wide by 2 inch diameter roller (different axle diameter from the other roller) onto the motor. Set the motor on the motor holder.

Step 4:

Picture of

Put the belt on the non motor roller before securing the roller to the base. 

If you're smart (not like me), you'll put the roller guides on the rollers at this step--to keep the belt from slipping off.

Step 5:

Picture of

Add the "belt guides" using acetone or super glue.

Step 6:

Picture of

Mount the servo horn to the top of the boot (backs side, where the holes are).

Step 7:

Picture of

Screw the servo horn to the servo motor (of course you need to have the servo in the "boot down" position).

Step 8:

Picture of

Slide the servo motor into the motor holder.

Step 9:

Picture of

Put the motor holder lid on and run machine screws through the holes.

Step 10:

Picture of

Attach the motor to the top of the "servo tower."

Step 11:

Picture of

Route the servo wires through the hole in the servo tower.

Step 12:

Picture of

Place the photocell and led in their holders, then fasten them to the base.

Step 13:

Picture of

Add the acrylic shields to the sides.

Step 14:

Picture of

The base (24 inches by 9 inches) should be raised 5 inches with two wood supports.

Step 15:

Picture of

Stick the breadboard down with its own sticky tape.  Fasten the Arduino with two screws. Add the motor shield to the Arduino.

Step 16:

Picture of

Wire it up, according to the schematic. I used a 12 volt, 5 amp power supply, but that's way more amps than are needed (500 mA would probably work).

Step 17:

Picture of
Now, put the code into the Arduino.

#include <Servo.h>

 

Servo boot;

int start=10;

int next=7;

int val=0;

const int pwmA=3;

const int brakeA=9;

const int dirA=12;

int trigger=0;

int dummy=0;

int timer=0;

int once=0;

 

 

void setup ()

{boot.attach(5);

pinMode(start, INPUT);

pinMode(next, OUTPUT);

digitalWrite(next, HIGH);

boot.write(250);

delay(1000);

}

 

void loop()

{val=digitalRead(start);

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

{boot.write(75);//raise boot

dummy=1;

delay(200);

pinMode(dirA, OUTPUT);

pinMode(brakeA, OUTPUT);

digitalWrite (dirA, LOW);//forward

digitalWrite(brakeA, LOW);//release brake

analogWrite(pwmA, 125); //speed motor

 

trigger=analogRead(5);

if(trigger >200)

{boot.write(250);

delay(500);

boot.write(75);

once=once+1;

}

 

else if(once>1)

{delay (8000);

analogWrite (pwmA, 0);

digitalWrite (brakeA, LOW);//stop motor

boot.write(250);

dummy=0;

timer=0;

once=0;

digitalWrite(next, LOW);

delay(1000);

digitalWrite(next, HIGH);

}

else if (timer >40)

{once =2;

}

timer=timer +1;

 

 

}}

Step 18:

Picture of

Add shields to the end of the belt, to keep Froggy moving straight.

Step 19:

Picture of

Connect ground from "Catapult" to ground of "The Boot."   Connect pin 13 from "Catapult" to pin 10 of "The Boot."

Set "The Boot" about five inches from the end of "Catapult," power on and let them go!

Comments

About This Instructable

2,181views

7favorites

License:

Bio: I am an author and a maker. My current project is Santa's Shop. I'm working on a science fiction type book--more later. @EngineerRigsby
More by MikeTheMaker:Santa's Shop 2017, the TrainSnowflake Gear WreathHappy Gear Table
Add instructable to: