Team & project snapshot
Team Roster
Team members
- Arjun Caputo
- Hieu Le
- Carlos Briones
- Brian Martinez
Robot building (Ch. 1–2)
Initial Assembly
Design intent
- Chassis Changed: Photoresistor extension - gives us a stable platform to attach our photoresistor circuit at from a predictable, modifiable light. Light shield - small footprint shield that goes around the photoresistors to prevent unwanted light from being detected.
- Early Additions: The motor driver is what allows us to actually interface with the motor so that we are able to precisely control it. We added hot glue to prevent any force from being directed on to the thin tabs on the motor. Without the hot glue, these tabs could easily break and we would lose our connection. We added rubber bands on the wheels to create more rough contact with the ground and reduce the slippage.
- Line sensor layout: We got the best, most consistent values when we held the surfaces 1.5-2 inches from the photoresistors
Prototype chassis with the light shield and rubberized wheels used for initial testing.
Final hardware
Competition robot
Race-ready setup
- Reinforced motor tabs with hot glue.
- Light shield and LEDs kept sensor readings consistent under arena lighting.
- Rubber bands on wheels and balanced weight reduced slippage on turns.
Annotated diagram for the final competition wiring and layout.
Fully assembled robot on the bench before heading to the track.
Control strategy
PID control & speed tuning
PID explanation
We use a basic PID loop to tune our line following. PID is a basic feedback control system that uses three components to account for error in our robot. There are three terms: kP, kI, and kD, which we tune to get our robot to turn smoothly. The kP term is proportional to the error itself, so if we have a larger error, we expect a larger correction. High kP values can be useful for quick response time, but it may cause lots of overshoot. The kD term is proportional to the change in error over time. This means as we get closer to our target, we slow down, so that we don’t overshoot our target as much. Similarly, if we are getting further from our target, we get a greater correction. The kI term is proportional to the summation of all the system’s error over time. This can be useful if we have steady-state error (if we are consistently offset from our goal).
- Error mapping and loop rate
- We added clamps to make sure any values below 0 or above 100 get mapped to 0 and 100 respectively.
Chosen gains
- P: 53 — Needed quick reaction time for curves
- I: 0 — No steady state error
- D: 46 — Needed smooth movements for stability
Track-specific tuning
- Drag Race: Increased speed to 160 and decreased P,D significantly
- Frequency Sweep: Kept standard P,D values, used 120 as nominal speed
- Loop: Kept standard P,D values, used 120 as nominal speed
Week 10 submission
Final poster
Competition day
Scores and rankings
Drag Race
- Rank: Lost in G-20
- Time: 11.56 s
Frequency Sweep
- Distance: 5.1
- Time: 4.69
- Rank: 12
Loop
- # Loops: 28.78
- Rank: 4
Media & assets
Competition proof & downloads
Competition video
Competition run capture showing the final tuning in action.
First follow test
Early track test while dialing in PID values.
Gallery & downloads
Sensor shield and chassis detail during prototyping.
Robot staged on the track ahead of a run.
Team McLaren
Competition day photo
Retrospective
Final week improvements
We did a lot of work in the last week to improve our robot. Most importantly, we changed our light shield to a rectangular design for wider coverage of our photoresistors, and we added a few more LEDs to light the way. Lastly for our photoresistors, we glued the board down to our chassis to get more consistent and predictable readings. We also spent a lot of time tuning our PID values and playing around with different scalings of those values in our code. If we had more time, we wish we had cleaned up our wiring to prevent any shorts. We also wish we could find a way to fix the rubber bands on the wheels as they feel off quite a bit during our runs.