← All projects

MEng Individual Project · Lancaster University · 2019–20

Formula Student EV Powertrain Model

A MATLAB and Simulink model of Lancaster e-Racing's electric powertrain, built to check the motor, controller and battery were safe and to predict the acceleration run before the car was tested.

Simulink model joining the EMRAX 208 motor drive to a three-degree-of-freedom vehicle body block, with air resistance and friction feeding back to the motor
The full model: the EMRAX 208 motor drive connected through the gear ratio to the vehicle body, with air resistance and friction. Click to open full size
  1. 80 m+Distance covered in 5 s in the simulated acceleration event, against a target of 75 m in under 5 s
  2. <200 AMotor current at maximum power, inside the motor controller's rating
  3. 378 VAccumulator: 90 lithium-ion cells in series
  4. ~26 minBattery life at a constant 55 A load, enough for every acceleration run without recharging

Why the team needed it

Lancaster e-Racing builds an electric Formula Student car, but no one had modelled its powertrain since 2017, and the team had run into electrical problems. I set out to model the motor, controller and battery from the datasheets and the team's 2019 report, check every component stayed inside its rating, and predict the 75 m acceleration event before the car was tested. Individual third-year project, MEng Mechanical Engineering, 2019–20.

Motor and controller

The car uses an EMRAX 208 brushless DC motor with a BAMOCAR D3 motor controller. The controller runs PI control on both speed and current, but Simulink's motor drive block uses hysteresis current control, so I built a PI current controller to match the real hardware. Its output is turned into PWM gate signals for the IGBT inverter.

Block diagram of the cascaded control loop: speed PI controller, torque limiter, converter, current PI controller, modulating signals, inverter and motor
Cascaded control: speed PI controller and torque limiter set the current reference; the current PI controller drives the inverter. Click to open full size
Plot of actual phase current against reference current over five seconds, with the actual current overshooting the reference at the start
Actual against reference current. Tracking is close once running, but the current overshoots the reference at the start, which I noted as a limit of the controller. Click to open full size

Battery

The accumulator is 90 lithium-ion cells in series, giving 378 V. The car has no regenerative braking, so I modelled it as a discharge circuit, with a constant 55 A load taken from the motor model.

Plot of battery state of charge, voltage and current over time, with state of charge falling linearly to zero at about 1,600 seconds
State of charge, voltage and current under the constant load. The battery runs for about 26 minutes. Click to open full size

Acceleration event

Using the Simulink vehicle dynamics blocks, I connected the motor to a longitudinal vehicle model through the gear ratio, with aerodynamic drag and rolling resistance, and sized it from the team's 2019 car.

Plot of motor electromagnetic torque over five seconds, rising from about 35 to about 63 newton metres before dropping
Motor torque during the run, well below the motor's 140 N·m rating. Click to open full size

The car covered just over 80 m in 5 s, so the model predicts it can complete the 75 m event in under 5 s.

Checks against the hardware ratings

ComponentRatingResult in the model
Motor controller (BAMOCAR D3)200 ABelow
IGBT switch600 ABelow
Accumulator fuse360 ABelow
Motor torque (EMRAX 208)140 N·mBelow

What I'd do differently

Supervisor's feedback

“This was a very well managed project and demonstrates significant design ability.” The same model-first approach carried through to my MSc driver-in-the-loop simulator.

Tools: MATLAB, Simulink, SimPowerSystems, Simulink vehicle dynamics blocks

← All projects