UBC Baja Mechatronics

Seven-node CAN network of STM32 ECUs reporting to a Raspberry Pi dashboard.

September 2024 – Present

For the UBC Baja SAE team, I developed the vehicle’s distributed CAN bus network, connecting seven nodes—four STM32-based ECUs controlling the independent suspension modules, one STM32 ECU managing the rear PCB, one ECU on the steering wheel handling driver button-press commands, and a centralized dashboard running on a Raspberry Pi—using Gradle. The system enables real-time communication of vehicle telemetry, sensor data, and actuator states to a unified dashboard, allowing the driver and team to monitor performance and diagnose issues during testing and competition.

The project involved designing a robust communication protocol over CAN to handle high-frequency updates from multiple ECUs without message collisions or data loss. Each STM32 ECU was responsible for reading sensors, performing local control calculations, and broadcasting status messages over the bus. The dashboard software aggregated messages from all ECUs, processed telemetry, and displayed key vehicle parameters such as suspension position, shock velocity, and rear powertrain metrics.

A key technical challenge was ensuring deterministic behavior under the high-speed data loads typical of off-road vehicle operation. This required careful selection of message IDs, prioritization of CAN frames, and implementation of caching and filtering strategies on the dashboard to maintain smooth visualization. Additionally, the system had to be resilient to transient bus errors and node dropouts, ensuring the vehicle remained operable even if a single ECU failed or temporarily disconnected.

The project combined embedded firmware development, real-time systems design, and software engineering for the dashboard application. The resulting network provides a scalable architecture for integrating future subsystems and improving the vehicle’s telemetry capabilities.

View the firmware on GitHub

Competing at Baja SAE Oregon 2026

The team took Mochi to Baja SAE Oregon (May 2026, Washougal, WA) to close out the season. A few laps into the endurance event, the car suffered a lower control arm and tie rod failure, and the team returned to the pits for repairs multiple times before discovering broken welds on the frame — ultimately ending the endurance run early. The telemetry and CAN network held up throughout, giving the team clear diagnostic data at every pit stop.

STM32 ECU module for suspension control
Raspberry Pi dashboard displaying telemetry from all ECUs
Baja Vehicle Mochi