My controls-lead contribution

I wrote the robot’s control code, developed and tuned its feedback controls, calibrated the sensors, and integrated the electronics with the software. My focus was making the robot respond predictably to sensor feedback while its pneumatic piston repeatedly delivered bursts of motion.

Pepó was developed as a robot project with separate controls, mechanical, and electrical roles. This case study focuses on my control-system implementation and integration rather than claiming sole ownership of the entire robot.

The control problem

The robot combines a pneumatic hopper-style drive with servo-actuated Ackermann steering. Each piston fire applies an impulse, creating a disturbance the steering system must correct while maintaining the intended heading. A wheel-mounted reed switch provides distance feedback for route progression.

From sensing to actuation

  1. Estimate heading. Interface with a LIS3MDL magnetometer and LSM6 IMU to estimate the robot’s direction. Calibrate the sensors on the assembled platform before using the readings for steering.
  2. Measure progress. Convert reed-switch ticks into traveled distance using the calibrated factor of 0.22291 ft/tick.
  3. Correct steering. Compare desired and measured heading, calculate the correction, and translate it into a servo command around the 90° straight-ahead setting.
  4. Coordinate propulsion. Integrate the solenoid output with the rest of the control sequence. The documented tests held piston timing at 120 ms on / 380 ms off.

Feedback control & tuning

The report documents a proportional heading-feedback loop. Heading error is scaled by the steering gain and correction factors, then mapped to a target servo position. The following excerpt shows the core relationships recorded in the report:

headingError = angleDifference(desiredHeading, robotHeading);
steeringCorrection = KpSteering * headingError * steeringOvershoot;
targetServoPos = servoStraight + steeringDirection * steeringCorrection;

I tuned the steering response through repeated trials. The report records at least five gain settings with at least ten runs per setting, keeping piston timing, the initial servo angle, distance calibration, starting orientation, and reservoir pressure consistent.

Steering-gain experiment showing mean lateral drift with standard-deviation error bars and lowest drift near Kp equals 1
Steering-gain study from the report, Figure 19. Error bars show trial variability.

The chosen setting was Kp = 1. Lower gains corrected too slowly; higher gains led to overcorrection and oscillation. The selected value balanced correction strength with stable behavior. The report’s tested-upper-gain labels differ between sections, so the plotted trend and selected operating value are the useful conclusions here.

Calibration & hardware integration

I connected the software’s pin assignments and sensor interfaces to the physical robot, brought the feedback loop onto the assembled platform, and debugged the system through on-robot tests. Magnetometer calibration, steering direction, servo neutral position, and the distance-per-tick factor all had to agree with the hardware for the commands to produce the intended behavior.

The documented final Arduino code includes selectable starting-side configuration, allowing route headings to be generated for either starting position. Separating configurable values from the control logic made adjustment during testing more direct.

Working through magnetometer calibration on the electronics platform.

Measuring the real robot against a model

A single piston fire with the servo held straight was used to study impulse response. Reed-switch events supported position-versus-time and velocity-versus-time measurements; the report then compares a ten-impulse simulated run with measured robot motion.

Position and velocity plots comparing actual robot motion against the simulated ten-impulse response
Actual versus simulated motion, report Figure 26.

The simulation predicted 14.5 ft, while the robot traveled 13.3 ft: an overprediction of 1.2 ft. Likely contributors identified in the report include pressure loss, track irregularities, reed-switch measurement error, and variations between pneumatic impulses.

What this work demonstrates

  • Ownership of embedded code from sensor input through actuator output.
  • Practical feedback tuning using repeated experiments and variability, not only a single successful run.
  • Sensor calibration and integration on a moving physical platform.
  • Connecting measured behavior with a simulation and explaining their differences.
  • Debugging across software, electronics, and mechanical interfaces.

The report demonstrates steering tuning and motion characterization; it does not provide a verified full-course completion time or a competition ranking. My next improvements would focus on repeatable calibration checks, richer telemetry, and model validation across changing pressure and surface conditions.