ENGR 498 Senior Design · 2025 · University of Arizona

Racing the Sun Autonomously

My senior design capstone: rebuild a solar-powered race kart so a computer can steer, throttle and brake it, with the sensors and autonomy software meant to drive it around a racetrack.

My role: Team Lead · Lead System Architect · Lead Software Architect

  • Autonomy
  • Embedded C
  • Computer Vision
  • SLAM
  • Sensor Fusion
  • Systems

The kart in 3D

The team's SolidWorks model of the kart. It opens on the kart at the circuit, set up to drive the way we designed it to; use the menu to pick out a system or pull the assembly apart.

On the track

How the kart was meant to drive itself at the circuit. Its cameras, drawn as one stitched view, net what they see in orange and project a path (red) from the left edge; the LiDAR picks up the tire barriers.

Drag to turn the model, scroll to zoom, middle-drag to move it.Drag to turn the model, pinch to zoom, two fingers to move it.

About this model: the team's design model, simplified for the browser

This is the team's design model, not a scan: the whole-kart assembly with the released rear chassis (REV-D), compute stack (Rev B) and camera assemblies, placed as in the final drawings. The STEP files have no joints, so the pivots are placed by hand, but the motion ratios are the team's. Cables follow the wiring list in our technical data package along hand-drawn routes. Parts with no CAD file (the kart's pedals and brake caliper, the LiDAR, the beacon, the Arduino mounts) are simple shapes sized from the team's drawings and the kart's parts manual, and the camera aims are by eye. The Arduino boards are Arduino's published models; the Ethernet shield, built from its board file, is CC BY-SA 4.0.

The opening view is a stretch of the circuit's main straight drawn from the team's photos and drone footage: worn asphalt with sealed cracks, a white edge line, a dirt shoulder and stacked-tire barriers. It shows the autonomous mode as designed, which never ran a live lap. The orange net marks each surface inside the three cameras' real fields of view, drawn as one stitched 180° view; on the kart each camera fed its own Pi and the feeds were not stitched. The edge and path follow the vision software, and the LiDAR returns sit where its scan plane, tilted 5.4° to meet the ground at its 12 m range, cuts the tire stacks. The barrier spacing, crack pattern and speed are not measured.

What we set out to do

"Racing the Sun" is a regional STEM competition where high-school teams convert gas go-karts into solar race cars. Our ENGR 498 senior design team set out to make one of those karts drive itself around the Musselman Honda Circuit.

At a glance

Team
Seven students, ENGR 498 senior design
When
Spring and fall 2025
Budget
$4,500
Tested
Manual in April, remote control in October and November, at the Musselman Honda Circuit
Autonomy
Built, but drove itself only by replaying recorded runs
Award
Best System Software Design, Winter Design Day

We got most of the way. The kart drives by wire, with electronically controlled motors and actuators working the steering, throttle and brakes, and it passed its manual and remote-control tests on the circuit. The compute cluster was built and installed, and the vision pipeline worked on video recorded at the track. The kart drove on its own only by replaying data recorded under manual and remote control, not on the circuit; we never got to a live autonomous lap. Late in the project a Raspberry Pi died, the battery pack dropped into a low-voltage state, and we could only test when the circuit had time for us.

I led the seven-person team as team leader and lead system architect, owning the overall design: the sensor suite, the steering and speed-control mechanics, and the compute and power architecture. As lead software architect I designed the system datapath, the signal flow from the cameras and sensors through the Raspberry Pi cluster and the Arduino real-time layer to the motor controllers, steering and brakes.

How it came together

We did not start from a bare kart. A previous team had tried to make this one drive itself and could not finish, and the January photos show their hardware as it reached us. Everything after that is our own design: we rebuilt the kart in the lab, tested it at the circuit, and showed it at the Craig M. Berge Winter Design Day on 5 December 2025, where the team took Best System Software Design. The photos are grouped by the design review each stretch of work led up to: preliminary (PDR), critical (CDR), integration status (ISR) and final acceptance (FAR).

One path to the actuators

CSI video serial Ethernet · steer and speed commands radio link throttle pedal · ADC PWM Cameras ×3 GPS RC receiver Driver pedal · wheel · brake Raspberry Pi cluster ROS · vision and planning Arduino real-time control Drive motor motor controller Steering servo, clutch engaged Brakes linear actuator

The datapath I designed for the kart. Switch modes to see which source is in command: perception on the Raspberry Pi cluster, the radio link, or the driver. Every command passes through the Arduino, which is the only thing that touches the actuators.

The full block diagram adds power and safety: the linear actuators, the hydraulic brakes, and a relay-switched manual/auto override that keeps a human in the loop.

Sensing, compute, actuation, power and the drive-by-wire steering and brakes. Amber lines carry power and relay switching, red is the emergency stop, blue the driver's inputs; plain lines are data and mechanical links.

The software as designed

The software as the team designed it in spring 2025, from the software design document (SDD) and design-stage drawings, redrawn in one style from the draw.io, PlantUML and PowerPoint originals (from source files where they survive). These are the plan, not the finished kart: what the Raspberry Pis ran in the end is under The compute stack below, and the autonomous mode was never tested on the track.

The compute stack

One small computer could not run the autonomy software inside our $4,500 budget, so we spread the work across three Raspberry Pi 5s on a wired network, running ROS 2 (the Robot Operating System). In the final setup one Pi ran camera SLAM (simultaneous localization and mapping), one ran LiDAR SLAM, and the third ran the path follower, the data logger and the UDP bridge to the Arduino.

Close-up of the built compute stack: board tiers on threaded rods with ribbon cables and HDMI leads
The stack as built, with the cameras' HDMI leads coming in at the top.

The tower is five 4 mm birch plywood layers on steel threaded rods. From the bottom up: a fuse block, a network switch, then the three Pis with their DC-DC converters and the CSI-to-HDMI converters that carry each camera feed over an HDMI cable, with a GPS module on top. A plywood shroud with two 120 mm fans encloses it; our airflow model put the temperature rise through the box at about 4 °C for a 500 W heat load. Our design lead modeled it in SolidWorks, and the drawings are under Design documents.

Seeing the track

GPS alone is nowhere near accurate enough for vehicle control, so the vision software steers from the edge of the asphalt. Each frame is cropped to a region of interest and blurred; Canny edge detection and Hough lines find the left track edge, and the software projects a path parallel to it for the controller. We developed it offline, on video recorded while driving the circuit.

Edge detection and path projection on video recorded at the track; the red line is the projected path.

Designing from models

Our technical data package, the team's 242-page design record, sets out 35 requirements, each with how it is verified: test, demonstration, analysis or inspection. I wrote most of the system requirements and kept the package current as the design changed. The main design choices rest on models we could later check against the kart; the measured results are under On the track.

The numbers

Steering torque needed12 N·m
Steering motor16.8 N·m
No-slip speed in the turns7.2–9.4 mph
Stop from 12 mph2.37 smodel 2.7 s · limit 3 s
Path error on recorded video2.63 ftlimit 3 ft
Power budget, autonomous798 W

Steering started from the track itself. The tightest turn has a 50-foot center-line radius, which a bicycle model turns into 5.1° at the front wheels and 53.5° at the steering motor, through the 3.78:1 steering ratio and the 2.75:1 belt. A tire slip model put the no-slip speeds for the three turns at 7.2, 9.4 and 8.2 mph. To size the steering motor we pulled on the wheel rim with a luggage scale, which read 12 kg at a 4-inch radius, about 12 N·m. The motor we chose delivers 16.8 N·m, about 42 N·m at the column after the belt.

For speed, rolling resistance and drag put the 500 W motor's sustainable speed at 19.4 mph, and the gearing caps it at 21.8 mph. For braking, the actuator's 112 lbf becomes 365 psi at the master cylinder and 657 lbf at the rotor, and a rigid-body model with the rear tires locked predicted a 2.7-second stop from 12 mph. Adding up every load by mode gave a power budget of 559 W in manual, 780 W under remote control and 798 W in autonomous mode, with the drive motor accounting for 504 W of each.

On recorded video, the generated path stayed within an estimated 2.63 feet (±0.25) of the expected path, against a 3-foot limit. On the kart, sensor and control data were logged 30 times a second.

Design documents

A slice of the technical data package: the team's CAD and assembly drawing, the compute stack drawings, the power and control wiring, the Arduino's remote-control program, and the analyses behind the main design choices. Select one to open it full size.

On the track

We tested at the Musselman Honda Circuit in April 2025 with the manual build, and in October and November 2025 once remote control worked. I led the remote-control sessions and signed the acceptance test datasheets as team lead.

The kart taking a corner, filmed from a drone, with a teammate on board.
A pass down the circuit with a teammate driving.
A run on the stopping-time test at sunset, with a teammate driving.
Remote control on 9 November 2025 with an empty seat. It was our operator's first time driving from the drone's view, and a component had failed by this run, so the kart wanders and pulls hard to one side.
Following the kart down the circuit at sunset on 26 October 2025, with a teammate driving.

The manual requirement was two laps of the circuit using acceleration, steering, braking and the emergency stop; the kart did three. In manual mode it reached a top speed of 15.6 mph (±0.2), and from 12 mph it stopped in 2.37 seconds on average, in about 12 feet, against a limit of 3 seconds. Under remote control, the emergency stop took 3.89 seconds from the stop command to a standstill, against a limit of 5 seconds.

Heat was the drive motor's weak point. Our first drive motor, which we think a previous team had already taken apart, overheated and burnt out at the circuit on 26 October 2025. Its replacement came with a heatsink. We checked component temperatures with a thermal camera before and after each test, and after two laps the new motor's end cap read 203 °F.

A teammate at the circuit at sunset holding up the burnt-out drive motor with pliers
Our first drive motor, burnt out on 26 October 2025.
Thermal camera image of the replacement drive motor's end cap and heatsink fins, on a color scale labeled from 150 to 300 °F. A few small spots on the end cap show hotter than the rest; the crosshair sits on one of them and reads 203 °F
Its replacement after two laps: 203 °F at the crosshair.

We never tested autonomous operation on the circuit, and our technical data package marks it, the autonomous laps and drive accuracy as untested.

What I took from it

The design decision I would make again is the single path to the actuators. Because the Arduino was the only thing that touched the motors and brakes, remote control drove them exactly as autonomous mode was meant to, so every remote-control session at the circuit also exercised the actuation that autonomy would rely on. Integration was still the hardest problem: getting sensing, compute and drive-by-wire actuation to work together on one vehicle is different from building any one of them alone.

As team lead, my biggest lesson is to plan for the failures you cannot schedule. A dead Raspberry Pi and a battery pack stuck in a low-voltage state, both in the last weeks, cost us the track time that live autonomous testing needed, and we could only test when the circuit had time for us. Spares and schedule slack belong in the plan from the start. The work that got furthest was the work that did not need the track: the vision pipeline, built on recorded video, and an autonomous mode that replayed recorded runs. When test access is scarce, record everything each time you have it and build the rest to run on those recordings.

We also inherited a kart that a previous team had not managed to make autonomous, and everything we added to it is our own design. Inherited hardware is a record of what was tried, not a head start, and it is worth deciding early what to keep. Two things I would not change: the emergency stop and the hard manual override were prerequisites for running the kart under power at all, and writing a verification method beside each requirement kept the final record honest about what we had and had not shown. The project also settled where I want to work: firmware talking to motors and sensors in real time is the seam I gravitate toward professionally.

Where it goes next

The missing piece is the autonomous lap, and my plan for it is a simulation: rebuild the Musselman Honda Circuit and a kart-sized vehicle in the CARLA simulator, then run the autonomy stack the real kart never got to. That means mapping the track with simulated LiDAR and cameras, scoring each SLAM method against the simulator's ground truth, and training a racing-line agent to drive on the resulting map. A simulator removes the two constraints that stopped us: scarce track time and hardware that fails late.

Map of the circuit with turns 1, 2 and 3 markedMap of the circuit with turns 1, 2 and 3 marked
The circuit a simulator would rebuild, with the three turns that set the steering requirements. Map data © OpenStreetMap contributors.

The footage we recorded at the circuit would close the loop. Once visual SLAM works in simulation, I would run it on that video and check whether the recovered path has the shape of the track. The kart's architecture would also carry over to other small autonomous vehicles, such as a campus cart or a farm rover: perception on cheap networked computers, one real-time controller as the only path to the actuators, and a remote stop and manual override above both.

Want the details behind this one, or to talk about similar work?