ShotBot Robot

by guccibucci in Circuits > Arduino

218 Views, 1 Favorites, 0 Comments

ShotBot Robot

d82e482466084f7689ec828a41ac37a9.jpeg

This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com)

Supplies

Wires, Arduino, 6v food safe Submersible DC Water Pump, 2 stepper motors, 2 ULN2003 Driver Boards, H-bridge, 180 Servo Motor, 5v and 6-9v Power Source, Breadboard, IR Senor and remote, Hot Glue Gun, Food safe tubing.

Model Your Robot

shot bot pic.PNG

Create a 3D Model of your robot of how you want it to look. Take into account how will you place the wheel and axis, the motors, the mechanisms for the cupholder, the wiring and electrical components, and the water tank. You can see in the picture that I have a planned the size (8x8x4in) and the placement of my components and wires. If need be, find the dimensions or 3D models of your actual components. You can also see in the back corner that I created a slot to put wires through.

Side View

side view.PNG

You can see I created a slot for the stepper motors and axel for the front wheel.

3 Main Components

There are 3 major mechanisms for the Robot.

1. The Motion: The wheels and drive functions.

a. This Requires the two stepper motors and driver boards

2.The Cupholder: Creates a placement for the cup and precise pour location

a. This requires a servo motor.

3.The Pouring: Mechanism for pouring out each shot.

a. this requires the H bridge and water pump

For the breadboard, connect the ground rails to each other and connect one of them to Arduino to create a common ground.

This Bot will be controlled by an IR Sensor and remote. You will need to connect it to one of the digital pins on the Arduino and connect it to to the Arduino power and ground.

The Motion: Stepper Motors

76d1699f010041b1b0226b4000a4a81d.jpeg

Connect your Stepper motors to each driver board and connect the IN pins to the 1-4 to pins 2-9 on the Arduino. Connect the power source to an external 6v+ battery and ground out each system with common ground(or Arduino ground)

When you program the stepper motors, you can either use the stepper motor library or hard code it. For this project it will be hard coded.

The Cupholder: Model

cupholder.PNG

This is a model of the cup holder I created. Notice the open joint on the back for the mechanism.

The Cupholder: Mechanism

cupholder mechanism.png

For the Cupholder, you will use a servo to control its motion. Following the picture above, You want to create a two joint system with a joint at the end of the servo arm and a joint on the back of the cupholder. This will turn a rotational motion to linear. For this I used cardboard and Q-tips. I cut a small rectangular piece of cardboard and put a small hole and each end. I put a Q-tip, through each end and attached it to the servo and cupholder. Then used hot glue to cover the ends of the Q-tip.

The Cupholder: My Mechanism

be4639c8088a4126ad90edacfe05e592.jpeg

The Cupholder: Circuit

948c275eb40d41c4b82f4a9b02e4a941.jpeg

You want to connect the servo motor to the power and ground and connect it to one of the PWM pins.

The Pouring: Circuit

7f8656c72bff449591b247913e38c63e.jpeg

Connect the DC water pump to OUT1 and OUT2 of the H-bridge. Connect the H-bridge to common ground. If your external power source is less than 12v connect it the +12v on the H-bridge, if not remove the jumper cap behind the connection and connect it to the +12v. For this Project I used a 9v Battery as my external. Next, remove the jumper on the ENA pin and connect it to a PWM pin on the Arduino. Connect IN1 to the Arduino pins. Note: Normally we would connect IN2 also, but we don't have to in this case because we never need to change the configuration of the DC motor.

The Pouring: Cont'd

f88ccb2ca5b64f33ab158e85ded51adf.jpeg

You want to put the water pump at the bottom of the tank and feed it out of the top of the tank. You can then angle the tubing to come from the top of the robot and aim it at the cupholder.

ShotBot Code

The Main code and functions