Design a basketball shooting machine

Richard Goldberg, University of North Carolina at Chapel Hill, Applied Physical Sciences
Author Profile
Initial Publication Date: October 14, 2024

Summary

In this assignment, students will determine the appropriate exit velocity from a basketball shooting machine as it passes the ball back to the shooter on the free throw line. Students will simulate the trajectory of the basketball and use this to determine the appropriate velocity.

Share your modifications and improvements to this activity through the Community Contribution Tool »

Learning Goals

MATLAB is used to implement the simulation of a flying projectile and to plot the results.

Programming skills: arrays, for loops, while loops, plotting results

Analysis skills: Looking at the results and determining what is "reasonable" given the application of a basketball shooting machine

Communication skills: writing a technical report that includes introduction, methods, results, and discussion

Context for Use

This is first presented to students in class, and then they work on it independently.
This is given as a homework assignment, and students have 2 weeks to complete it. Week one focuses on getting measured data to validate the model. Week two focuses on developing the simulation, validating the model, and determining the parameters for the basketball shooting machine.

Because this involves tracking the movement of a basketball, the simulation requires the implementation of some principles of physics, but we provide students with the equations for determining velocity and acceleration of a projectile. When students work on this project, their prior programming experience ranges from virtually none to extensive.

Students submit their completed MATLAB live script (mlx file) and a report.

Description and Teaching Materials

A basketball shooting machine is a product that collects the ball under the hoop and passes it back to the player. This enables the player to practice shooting from the same location without having to retrieve their own ball.

The goal for this assignment is to determine a "reasonable" angle and velocity needed to pass the ball back to the shooter at the free throw line. It should not be a line drive because that would be hard to catch, and it should not be a high looping pass either. The student should use their own height to determine the target height for the pass, so that they are catching the ball at the level of their chest.

In order to validate the model, the open source Tracker program is used to obtain measurements of a ball rolling off of a table. The simulation results are then compared to these measurements. Once the model is validated, then students can use the model to simulate the basketball shooting machine.


Introduction slides (PowerPoint 2007 (.pptx) 11.3MB Oct14 24)
MATLAB simulation (PowerPoint 2007 (.pptx) 2.1MB Oct14 24)
Live script (MATLAB Live Script 4.1MB Oct14 24)
Report template (Microsoft Word 2007 (.docx) 73kB Oct14 24)
Grading rubric (Microsoft Word 2007 (.docx) 19kB Oct14 24)

Teaching Notes and Tips

The powerpoint slides are used to introduce the project and the students follow the directions given in the live script. The report template has instructions on what students should submit for the simulation report.

Assessment

The grade for this assignment is 50% based on the live script, and 50% based on the report. See attached rubric for more information.

References and Resources

N/A