Build
Data and testing
What the car logs, how fast it logs it, and how we plan to test it.
Most teams race blind. We log everything, like a full size race team does.
The brain is an STM32H743 running our own Rust firmware (Embassy). It reads every sensor on a tight schedule and writes it to an SD card. An ESP32-S3 rides along and streams a 100 Hz set of the data live over ESP-NOW, so we can watch the car from the pit lane while it runs. The full 1,000 Hz log stays on the SD card. That's about 44 kB a second, or 13 MB per race.
#What it logs
| Data | Sensor | Rate |
|---|---|---|
| Motion: acceleration and rotation | LSM6DSV16X, plus an ADXL375 for hard landings | 1 kHz |
| Battery current and voltage | INA228 | 1 kHz |
| Suspension and steering angles | Four AS5600 magnetic sensors | 500 Hz |
| Throttle, steering and motor RPM | Receiver inputs and the motor | 500 Hz |
| Wheel speed | A DRV5013 hall sensor at each wheel, reading 6 magnets | Every wheel |
| Temperatures | Three NTC probes: motor, ESC, battery | 10 Hz |
The ESC keeps its own log too, which we use as a cross check.
Why those rates? Hard landings and throttle blips happen in a few milliseconds, so motion and power get 1,000 samples a second. Suspension moves slower, so 500 is plenty. Heat builds over minutes, so 10 does the job.
For the first track day the must-haves are wheel speed, battery current and motor temperature. Those are what we need to check the performance model.
#What we do with it
After every run the logs go through our Rust tools and straight into the sim. Compare wheel speeds and you see wheelspin and lockups. Multiply battery current by voltage and you know where every bit of energy went. Line up the angle sensors with the accelerometers and you can see what the suspension is doing on each landing.
That's how we tell a real gain from a lucky lap.
#Test plan
- Coupon tests: 3 point bend tests on PPA-CF and PAHT-CF, and drop tests on the arms.
- Bench: the motor, ESC, fans and logger together. Check sample timing and SD writes under load, and run a spin-down test of the drivetrain. The target is 88% drivetrain efficiency or better.
- Fit check: a full chassis fabricated in PETG with every bought part.
- First build in PPA-CF: weigh every part and set 56.4 oz (3.5 lb) with 47% on the front.
- Track days 1 and 2: the validation tests below. Then update the model and publish the next version.
- Tune gearing, diff oils, shocks and ride height, and log every change.
- First club race.
#Validation tests
Each test pins down specific numbers in the performance model.
| Test | What we do | What it fixes |
|---|---|---|
| V0 | Measure motor resistance and no-load current on the bench | Motor resistance and Kv |
| V1 | Weigh and swing every assembly | Mass, CG and inertia |
| V2 | Drivetrain spin-down with the wheels off | Drivetrain efficiency and diff locking |
| V3 | Five full throttle launches per surface | Tire grip under power |
| V4 | Steady circles at 5 ft and 10 ft radius | Cornering grip and understeer |
| V5 | 60 s at full power, a cool down, then a full 5 minute run | Motor heat and the energy factor |
| V6 | Drop tests from 1, 2 and 3.3 ft | Damping and landing loads |
| V7 | Coast-downs both ways, and ride height against speed | Drag, rolling resistance and downforce |
| V8 | Step steer and sine with dwell at 22 to 27 mph | Yaw response |
| V9 | A full race on track, lap timed | The whole model |
V0 to V2 run on the bench before track day 1. V3, V4, V5 and V7 run on track day 1, V6 and V8 on day 2, and V9 at the first race. The first numbers to pin down are surface grip, then tire load sensitivity, then motor resistance, because they move lap time the most.
#In Mission
Log each run in Mission with the date, surface, distance, energy used, lap time and notes. Mission works out energy per mile for each run:
Wh/mi = energy_wh / (distance_ft / 5280)
#Before track day
Check that every sensor in the table logs, that the SD card is empty and that the live link connects from the pit lane. Then record the setup in Mission (Using Mission) so each run ties to a car configuration.