Elyos Racing Team, home

Embedded control

Motor driver

Controller for the prototype's BLDC motor: it turns the pedal into current and the current into torque, with as little loss as possible.

PedalthrottlePI controlId* = 0 · Iq*inv. Parkdq → αβSVPWMduty cyclesInverter6 FETs · 48 VBLDCShunts ×3INA240 ampsClarkeabc → αβParkαβ → dqRotor angleHall + smoothingIq*Vd VqVα Vβia ib icId IqHallθθevery 100 µs(10 kHz loop)PWM-synced sampling:68 µs → 5.4 µs (bench)Id = 0: all the current makes torque, none is wasted on flux
Fig. 03Title Field-oriented controlField-oriented control, every 100 µs: currents measured, turned into the rotor's frame, corrected and sent back as PWM.Scale NTS
Aspect Detail
Platform Teensy 4.1 (NXP i.MX RT1062, ARM Cortex-M7 at 600 MHz)
Software Teensyduino + FreeRTOS + SimpleFOC, with our own hardware abstraction layer
Control FOC (field-oriented control) with Hall sensors; 10 kHz current loop
Power 48 V three-phase inverter

HSeason by season

  1. 2027in progress

    Synchronized current sampling and a new motor

    • Current measurement synchronized with the PWM: the loop went from ≈ 68 µs of compute and ≈ 27 µs of jitter to ≈ 5.4 µs and ≈ 0.6 µs (bench measurement, Nov 2026).
    • Sensorless start-up and sensorless observer.
    • A new ≈ 500 W motor with chain drive and a clutch (2026: a 350 W hub motor, almost always at full power), run at its most efficient operating point.
  2. 2026

    Hall-sensor FOC at Indianapolis

    • Field-oriented control with Hall sensors on a Teensy 4.1 (ARM Cortex-M7 at 600 MHz), with a throttle-to-current curve, driving a 350 W hub motor (2026 season).

The code is private.