Ping Pong Ball Launcher

by parkerwal19 in Circuits > Arduino

36 Views, 0 Favorites, 0 Comments

Ping Pong Ball Launcher

image-20241120-152708-63531726.jpeg

Our team (Molly, Christian, Ian, Joey, and Parker) created this instructible page to make a ping pong ball launcher. for our ME 208 class.

This project is a very simple and semiautomatic ping pong ball launcher. It relies on a servo to drop a ping pong ball onto a wheel with four spoons to launch a ball to play ping pong by yourself.

Supplies

Supplies List:  

 

4' x 4' sheet of cardboard 

4 plastic spoons  

Tape  

Scissors  

 

From Sparkfun Inventors kit: 

 

1 breadboard  

1 ultrasonic sensor 

1 motor controller 

1 gear motor 

1 Arduino Uno  

3 resistors 

1 red LED 

1 yellow LED  

1 green LED 

25 wires 

1 Arduino wheel  

Design Tinker Cad

Screenshot 2024-12-04 093415.png

The first step is to create the circuit on Tinkercad to better understand how it works before proceeding with the physical construction. The diagram provided above shows the complete circuit for the electronic components. The only modification needed is the motor controller. The one available in Tinkercad is different from the one included in the SparkFun kits. While both motor controllers function the same way, the SparkFun version has a slightly different wiring order.

The Code

The code needed for this to work is available for download below. It is quite simple, consisting of a single if statement that controls when the servo moves and the wheel spins. This if statement is triggered based on the distance detected by the sensor.

Adjusting the Circuit From Tinkercad to Physical

GetImage.png

To properly be able to use the project the motor controller needs to be changed from the one in Tinker Cad.

Motor hookup 

Vm – needs to be hooked up to a separate battery 

Vcc – power for driver -5V 

GND – ground -GND 

A01red(+) output to motors red motor wire 

A02black(-) output to motors black motor wire 

PWMA – speed motor 1 - D11 (needs PWM) 

AIN2 – direction motor 1 - D12 

AIN1 – direction motor 1 - D13 

STBY– for internal Hbridge - 5V 

These are the proper hook ups for the sprakfun motor controller that corilate to the propper spots on the board.

Main Housing of the Circuits

IMG_4145.jpeg
mainbox taped.jpeg
mainbox taped2.jpeg
mainbox put together.jpeg
main box all together.jpeg
main box sides taped.jpeg
main box sides taped2.jpeg
image-20241211-181630-38ee052c.jpeg

Building the main housing for the launcher is simple. The measurements are provided on the notebook paper. The structure uses three pieces of cardboard. The front and top are made from a single piece measuring 8 x 4 inches, which is bent in the middle at about 4 inches. This piece is then taped to two additional pieces, each measuring 4 x 4.5 inches, to create a box with four sides. On the front side, cut a hole for the ultrasonic distance sensor and three smaller holes for the LEDs.

Building the Side Supports

side not taped.jpeg
side taped.jpeg
ontop box support.jpeg
side support placement.jpeg
side support placement2.jpeg
both side supports.jpeg
image-20241211-181630-38ee052c.jpeg

The side supports are a simple part of the build, consisting of three pieces. On the left side, there is a long rectangle measuring 11 inches by 3 1/4 inches, which is attached to a 2.5 x 3 inch piece of cardboard at the bottom to connect to the main box. On the right side, there is a support piece measuring 8 3/4 inches by 4 inches, which is bent at 6 inches to create a base and provide support for the funnel at the top.

Top Funnel

funnle not taped 2.jpeg
funnle taped.jpeg
funnle put togehter.jpeg
funnle together side view.jpeg
side support with funnle.jpeg
side supports with funnle on top.jpeg
image-20241211-181630-38ee052c.jpeg

The top funnel is made from three pieces of cardboard: one long rectangle and two squares. The long rectangle measures 11 inches and is bent into three sections, with a small rectangular cutout in the middle for the servo. The piece is folded into a U-shape, and two square pieces are taped to the sides to form a cube with no top.

Attaching the Servo

how to put servo 2.jpeg
how to put servo.jpeg
wiring of servo.jpeg

The servo is easily attached to the funnel, allowing one ball to enter at a time. The wire runs smoothly down the side of the supports and connects to the circuit.

Making the Throwing Wheel

image-20241211-030245-5a1be0a6.jpeg
image-20241211-030339-564ec6cf.jpeg
image-20241211-030404-4a1a39d5.jpeg

Using a sharp knife or one side of a pair of scissors, carefully cut four evenly spaced slits into the tire. The slits should be wide enough to insert the tops of four spoons, but not so wide that they fall out. This setup creates an effective way to launch the ping pong ball as far as possible.

Attaching the Gear Motor

how to place gear.jpeg
gearmoter with wheel.jpeg
placing gear motor.jpeg
to view of gear motor with wheel.jpeg

This shows how to attch the gear motor to the main box so the fly wheel has room to spin to throw the ball.

Video on How to Build

ME 208 Project Movie.mp4

This video shows on how to build the structure.