Robotic Ball Collector

The first-place award winning robot, from the iRobot Fall 2023 Hungry Hungry Hippo Intern Challenge.

The Problem

Collect and drop off as many ball pit balls as possible, as quickly as possible, and do a better job than the opposing team.

The Solution

A ball collection robot built on the iRobot Create 3 platform.

Research and Inspiration

While there isn’t a booming “ball pit ball pickup” industry, this is a very real industry for tennis balls. Due to this, we began our research with established solutions for collecting tennis balls. When searching on YouTube, “4 life-changing tennis ball retrievers” served as all the inspiration we needed. We were most heavily inspired by the Inwatec Tennis Ball collector, and began brainstorming how to adapt this design to the footprint of a Create 3 robot.

Initial Sketch

We began by sketching a rough design of our robot. The design featured 3 main features: the spinner, the bin, and the backdoor. The spinner would be dual drove by two motors to launch balls up into the bin. This bin would contain the balls until we wanted to release them. When it was time to release them, the backdoor would open, allowing the balls to flow out freely due to the decline built into the bin. With this rough idea, our mechanical lead got to work designing.

Mechanical Design

The CAD for the robot stayed very true to the initial sketches. While we had to experiment with different bin and spinner designs, the fundamentals of the CAD stayed consistent throughout the entire research and development process.

Electrical Design

To control the spinner, we used two DG01D motors, connected to a L298N motor driver. While dual driving the spinner was likely overkill, we did not want to risk one motor getting overworked and stalling during the competition. To control the backdoor, we used a SG90 servo motor.  The motor driver and the servo motor were both connected to an Arduino Uno to allow for control.

System Overview

The heart of this robot was the iRobot Create 3. To interface with this robot and control its movement, I utilized the Python irobot_edu_sdk. To actually control the robot, I used a PS4 controller, and read the inputs from it to determine the proper motor values for differential driving.

To control the auxiliary components, I utilized an HC-06 Bluetooth module connected to the Arduino Uno. This allowed me to map motor controls to button presses on the PS4 controller. When a button was pressed, I would send a message from my computer to the HC-06 to be interpreted by the Arduino, and in turn control the motor.

All of this communication and control was done through a Python script and Arduino file, which can be found in the GitHub repository.

Controls Overview

To control the robot, I mapped a control scheme that would be intuitive to anyone who has played a driving game before. To control the spinner and back door, I mapped the “on” and “off” controls to the four face buttons. I mapped the control of the spinner speed to the bumpers, and the acceleration and braking to the triggers. This results in a one controller solution for every feature of our robot, with no need to fiddle around with other hardware.

Final Design

Our final design remained very true to the CAD renderings, with the main differences being the bin enclosure itself. During testing, we noticed at higher spinner speeds, the balls would overshoot the bin, or bounce out. To eliminate the possibility of that, we shrouded the entire bin in mesh, along with the top of the spinner itself. We also added a hump between the spinner ramp and the bin, to stop balls from rolling back into the spinner. Finally, we added some "Hungry Hungry Hippo" decals to win over the crowd and snag some style points. After extensive testing, we couldn’t think of any further optimizations, and settled on this final design.

The Competition

On competition day, we were very pleased with how our robot performed, and were able to take home the gold. Our extensive testing let us prepare for just about any obstacles and edge cases we would encounter, and we didn't experience any surprises once in the arena. As the driver of the robot, I felt that it controlled like a dream, and I had no difficulty maneuvering around the arena, even when there was an opposing robot to juke around.

Reflection

This was a great project to get some hands-on robotics experience solving a semi real world problem. I took on the role of project manager and software lead, and I learned a lot in both aspects. As project manager, I learned how to set deadlines and delegate tasks, and did so through a Trello board. As software lead, I gained experience reading controller input, and using various Bluetooth communication protocols. As a general takeaway, I learned that good is the enemy of great, but perfect is the enemy of good enough. At one point we had everything fully finished with our design but decided to try out a new spinner material. This material ended up being too rigid, causing both motors to stall and burn out, and they both had to be replaced. Sometimes you don’t need to push it if you’re already 99% there!