back to the desk
Savar Gupta
All projects

05 · Hardware · Mechatronics

Ball-Launching Arm

An autonomous arm that senses which of three balls is loaded, feeds one at a time, and launches or drops it. I led the control system.

Controls lead · May – Aug 2025

The black 3D-printed truss arm beside the taped servo hopper, with a green marble ready to drop.

Results

1.3 mm
tip deflection at 5 N (limit 10 mm)
3
ball types: two launched, the marble dropped
400°/s
launch swing
±1°
arm position tolerance

Every subsystem met its design constraints in testing.

What I built

  • Led the Simulink control system: an LDR sensor classifies each ball, a servo state machine feeds one ball at a time, and a launch sequence cocks the arm to 55° and swings it to 160° at 400°/s. The marble drops instead.
  • Wrote a custom trajectory generator with an acceleration ramp, a cruise limit, and an exact stop, which feeds the PID position loop that drives the motor through PWM.
  • Tuned the PID from measurements: the motor's open-loop step response gave its gain and time constant, then one gain changed at a time against settling time and overshoot.
  • Helped debug the integration: loose joints and damaged ICs in the drive circuit, and a failed motor whose encoder had to be realigned.

How I approached it

  1. Move the sensor, not the threshold

    On the black arm the light sensor needed steady light and missed the marble. We moved it to the hopper with a white LED opposite, so room light no longer changed the readings.

  2. Let the hopper sort the marble

    The sensor could not see the translucent marble at all. The hopper's brass rods are spaced so the marble falls through and is dropped, and the sensor only tells wood from fluffy.

  3. Replace the block that failed

    Simulink's trapezoidal trajectory block reached a forward target and never came back. My own generator moved the arm in both directions without overshoot.

  4. One ball, then wait

    The hopper servo idles at 90°, pushes to 120° for 0.5 s, then ignores the sensor for 15 s, so a second ball cannot follow before the launch ends.

  5. Pick the arm by the numbers

    Three truss designs went through FEA. A matrix of six weighted criteria (deflection, inertia, mass, and more) chose the third: 2.75 points against 2.0 and 1.4.

Next project · 06Health & Activity Wearable

An ESP32-S3 wearable with IMU and heart-rate sensing and an on-device activity classifier that streams to a phone over BLE, with no cloud.