Project

# Title Team Members TA Documents Sponsor
36 Intelligent Basketball Retrieval & Return Robot
Jinghui Zheng
Libo Zhang
Linzhi Du
Zichao Lin
Timothy Lee
1. Problem
1.1 Background
Basketball training often requires players to repeatedly retrieve the ball after each shot, which interrupts practice rhythm and reduces training efficiency. Although some existing training machines can return the ball automatically, many of them only deliver passes in fixed directions and cannot adapt to the player’s changing position. Therefore, there is a practical need for a smarter basketball passing device that can collect the ball automatically, locate the user, and return the ball accurately to support more efficient and continuous individual training.
1.2 Problem Statement
The problem this project aims to address is how to design and develop an automated basketball passing machine that can collect the ball after a shot, identify the user’s position through a wearable Bluetooth locator, and deliver the ball back to the user with appropriate direction and accuracy. The system should improve the continuity and efficiency of individual basketball training.
2. Solution overview
The proposed solution is an automated basketball passing machine that integrates mechanical design, electronic hardware, and embedded control to achieve ball collection, user localization, and directional ball delivery. After the basketball enters the machine, a collection and feeding mechanism transfers it into a ready-to-launch position. At the same time, the system receives location information from a wearable Bluetooth device attached to the user’s wrist. Based on the processed positioning data, the controller estimates the user’s relative direction and distance, and then adjusts the launching mechanism accordingly.

From a technical perspective, the system consists of three main parts. First, the mechanical subsystem includes the ball collection structure, ball storage and feeding mechanism, and a launching unit capable of controlling the release direction and passing speed. Second, the electronic subsystem includes the main control board, Bluetooth communication module, motor drivers, sensors, and power management circuit, which together support signal acquisition and actuator control. Third, the software subsystem is responsible for localization data processing, motion control, and coordination of the overall operating sequence. Through the integration of these subsystems, the machine is expected to provide a more intelligent and efficient solution for continuous individual basketball training.

3. Components
3.1 Mechanical Structure
The mechanical structure of the proposed basketball passing machine can be divided into three main parts: the ball collection mechanism, the ball storage and feeding mechanism, and the ball launching mechanism.

First, the ball collection mechanism is designed to capture the basketball after the user takes a shot and guides it back into the machine automatically. A net-based collection structure, similar to a funnel-shaped mesh, is installed around the basket and the main rebound area. This net is supported by a lightweight frame and connected to the inlet of the passing machine. After the ball falls or rebounds from the basket area, it is intercepted by the inclined net surface and rolls downward under gravity toward the collection opening. In this way, the system can reduce manual ball retrieval and improve the continuity of shooting practice.

Second, the ball storage and feeding mechanism adopts an inclined rolling channel. After entering the machine inlet, the basketball moves into a sloped channel where multiple balls can be temporarily stored in sequence. Because of the inclined geometry, each ball rolls naturally toward the feeding end under gravity. A controllable blocking device is installed near the launching position to ensure that only one ball is released at a time. This design is mechanically simple, easy to manufacture, and suitable for stable sequential ball feeding.

Third, the ball launching mechanism uses a dual-wheel launching structure. In this design, two high-speed rotating wheels are arranged on both sides of the basketball. When a ball is fed into the launching position, the friction generated by the rotating wheels accelerates the ball and launches it toward the user. By adjusting the rotational speed of the wheels, the system can control the passing speed and adapt to different user distances. Compared with other launching methods, the dual-wheel structure offers better controllability, relatively simple construction, and good compatibility with motor-driven actuation.

To further improve the directional passing capability, two additional adjustment mechanisms are included in the launching subsystem. The first is a launching angle adjustment mechanism, which allows the launcher to change its vertical angle so that the ball trajectory can be adapted for different passing distances or heights. The second is a turntable base, which supports horizontal rotation of the entire launching unit. Driven by a motor, this rotating base enables the machine to align the launcher with the user’s position based on the localization result. With the combination of vertical angle adjustment and horizontal rotation, the machine can achieve more flexible and accurate ball delivery.
3.2 Electronic Hardware
The electronic hardware system is responsible for sensing, computation, communication, and actuation control of the robot. It mainly consists of the following modules:
Main Control Board: The main control board (microcontroller-based) serves as the central processing unit of the system. It coordinates all subsystems, processes sensor data, calculates motion and launching parameters, and sends control signals to the motor drivers and actuators.
Wireless Positioning Module: A wireless positioning module (such as Bluetooth beacon or UWB module) is used to estimate the real-time location of the trainer. The robot receives positioning signals from the wearable device and determines the relative position of the user, enabling accurate ball return direction calculation.
Motor Driver Modules: Motor driver circuits are used to control the motors responsible for ball collection, internal ball transport, and the launching mechanism. These drivers provide sufficient current and precise speed control to ensure stable mechanical operation.
Power Management Module: The power module regulates and distributes power from the battery to different electronic components. Voltage regulation circuits ensure stable operating voltages for the microcontroller, sensors, communication modules, and motor drivers.
Sensors and Interface Circuits: Additional sensors and interface circuits may be used to detect system states such as ball presence, motor status, or mechanical limits. These sensors help the controller monitor system operation and improve reliability and safety.
3.3 Software
The software subsystem serves as the central intelligence of the basketball passing machine, responsible for localization data processing, motion control, and coordination of the overall operating sequence. First, the positioning information processing module interprets data received from the user's wearable Bluetooth locator to accurately determine the player's real-time position, distance, and relative angle. Second, based on these coordinates, the launch parameter calculation algorithm determines the necessary mechanical adjustments. This includes calculating the required rotational speed for the dual-wheel launching structure to achieve the correct passing speed , as well as computing the target angles for the horizontal turntable and vertical adjustment mechanisms. Third, the motion control program translates these computed parameters into precise electrical signals to drive the respective motors accurately. Finally, the overall system control logic acts as the main state machine that seamlessly manages the entire workflow—from coordinating the controllable blocking device for ball feeding to target locking and launching—ensuring safe, continuous, and reliable operation.
4. Criteria of Success
4.1 Functional Success
The system must be able to autonomously collect basketballs that land within the operating area near the hoop and return them to the trainer without manual intervention. After detecting the presence of a basketball, the robot should navigate to the ball, retrieve it using the ball collection mechanism, and transport it to the launching module.
Using the wireless positioning information from the trainer’s wearable device, the system must determine the relative position of the user and adjust the launching mechanism accordingly. The robot should then launch the basketball toward the trainer so that it can be received within a reasonable catching distance.
Throughout the process, the system should perform ball detection, retrieval, positioning, and launching in a coordinated and automated manner, enabling continuous basketball training with minimal interruption.
4.2 Performance Success
The system must achieve stable and reliable performance during autonomous basketball retrieval and return operations. The robot should be able to successfully collect basketballs located within the designated operating area near the hoop and transport them to the launching mechanism without jamming or mechanical failure.
When returning the ball to the trainer, the launching mechanism should deliver the basketball within a reasonable catching distance of the user. The target landing area should be within approximately 1–2 meters of the trainer's position, allowing the trainer to receive the ball comfortably during practice.
Additionally, the system should complete the entire cycle of ball detection, retrieval, positioning, and launching within a reasonable time, enabling continuous training without long interruptions between shots. The robot should also maintain consistent operation over multiple retrieval cycles to demonstrate system stability and reliability.
4.3 Engineering Success
Engineering success for this project is defined by the complete design, fabrication, and integration of its three primary technical disciplines: mechanical structure, printed circuit board (PCB) hardware, and software code. From a mechanical standpoint, this requires the physical realization and stable assembly of the collection, feeding, and launching mechanisms. For the electronic hardware, it necessitates the development of a fully functional custom PCB that reliably integrates the main control board, Bluetooth communication module, motor drivers, sensors, and power management circuits. For the software, it requires the deployment of robust control algorithms and communication protocols. The ultimate criterion for engineering success is the successful joint debugging (system integration) and continuous operation of the complete machine. This final milestone will demonstrate that all mechanical components, electronic circuits, and embedded code work together seamlessly as a unified system to achieve automated ball collection, user localization, and directional delivery.

simplified device for fasteners counter

Zhiwei Shen, Shuyang Wang, Yijian Yang, Jinsong Yuan

Featured Project

# PROBLEM DESCRIPTION

Lots of Industrial manufacturers need to realize real-time, efficient and accurate automatic counting of the assembly line products in the stages of production and transportation. On a standardized assembly line with stable operations, equal intervals and boxed objects the control system with infrared detection and microchip as the control core is effective and simple to implement. However, due to cost considerations, downstream manufacturers often prefer faster and less standardized assembly line operations during product inspection. Those unpackaged objects may have complex and changeable structures, and different kinds may have very similar structures. Moreover, the intervals and directions of these products on the assembly line are all random, which greatly increases the difficulty of monitoring, as well as achieving subsequent controlling purposes such as mechanical classification or equal-quantity loading.

After we discussed with people from a manufacturer, we realized their needs in this regard, so we decided to design an effective and low-cost device that realizes real-time monitoring and controlling towards specific industrial products with complex and random structures. From our investigations, we found that some factories use image recognition technology to achieve this goal, which turned out to be insufficient and costly because of their improper design. The manager of company complained about the stability, flexibility and fee of the traditional ways. After listening to the manager, we decide to implement our own ways to count line products, and our target is to increase the stability, flexibility and lower the cost.

By doing some research online, we confirmed that the most common monitoring system is still the infrared detection and microcontroller/PLC, which is effective for most assembly lines with products in boxes. And some newly developed approaches are based on cameras and computer vision, which we think are very potential but costly. Also, we found some other engineers still used simple infrared detection to achieve non-boxed objects monitoring. However, they met similar accuracy issues, like when two objects are too close to each other. Not to mention the objects that we are going to detect have much more complicated structures. In a word, we didn’t find any other monitoring system without using computer vision that can achieve our accuracy goal. So, our first major task is to come up with a better algorithm. We may also try pressure sensors, which is rarely used in assembly line object counting. In fact, we are going to investigate the feasibility of our idea by doing some experiments at their factory this week.

The scope of this specific problem might involve designing an embedded system with sensors and microcontroller unit to achieve the industrial control purpose, as well as programming and data analysis. Moreover, it may involve some knowledge about IoT because we also hope to use network module to transfer data and improve the automation level.

# solution overview

We plan to use infared sensor to dector the fasteners on the pipeline. We have two different kind of infared sensor in schedule. The first type could detect whether there exists objects within one meter, and the other one, which uses laser at the same time, can measure the distance between the surface of fasteners and the detector. The first one is cheaper but the second one could provide more imformation. We would choose in terms of real condition. There are also some alternative plans: we plan to use pressure sensor to count the total mass coming in and then calculate the number; acoustic rangefinder is another way to detect the distant in place of the second kind of infared sensor, and we will choose this plan if the original plan doesn't work so well.

Then, we plan to use PRI or PLC to process imformation. RPI is more powerful and enable us to write more complex code and develop some complicated functions such as classification of fasteners and nerual network which can analyze cutting pieces of fasteners, but PLC would be more stable in industry environemnt. The choice is mainly determined by real industry environment and the comments from manufacturers. We tend to use PLC to handle imformation from detectors and command the pipeline.

As for pipeline, workers put fasteners on the track. During the transportation, our device would count the number and in the end of pipeline, fasteners would be packed. After collecting enough fasteners, our machine would stop the pipeline.

# Solution Components

- Mono-chip(Raspberry Pi)

Price: around 300¥

Function: Receiving the data collected by the detector, processing it to get the number of fasteners that have passed, and transmitting the data to the remote-control center through the wireless interface.

We are going to use the neural network for modeling and use this model to count.

- Pressure-sensitive sensor

Price: 10¥-200¥

Function: Measuring the real-time weight on the sensor to assist in determining the number of products passed.

- Infrared sensor

Price: Already have

Function: Determining whether there is product passing.

- Laser rangefinder

Price: 60¥-200¥

Function: Measuring the distance between the product to the boundary of the conveyor belt.

- Acoustic rangefinder

Price: 200¥-300¥

Function: Measuring the distance between the product to the boundary of the conveyor belt.

- Remote-control Center

Price: Already have

Function: Receiving the data transmitted by the mono-chip, presenting the past products so far, and commanding every component according to that.

# CRITERION FOR SUCCESS

- High accuracy is required. The counter should have a error rate at 1%+-0.1%.

- The classifier is supposed to perform well, then the device can be migrated to a similar pipeline. The device is a kind of baler. When the input products are not of the same kind, if there is no classification function, packaging errors are likely to occur.

- The process of counting and classifying should take less time.

- The devicey should be stable enougth to be used in manifacture.

- Additional Function: Operator can control the machine and see results easily and remotely.

# sponsor

This project is well connected to industry. The company that sponsors us is 杭州六联机械科技有限公司(Hangzhou Liulian Machinery Technology Co., Ltd.) and the manager with whom we talked is 杨向峰(Xiangfeng Yang).