Wheel Hub Formula Apex Script
The term "Formula" refers to Formula 1 / Open Wheel racing style. Formula wheels are characterized by:
A defining feature of the Apex script is how it handles steering. It does not simply rotate the wheel on the Y-axis.
| Component | Pro Micro Pin | |--------------------|---------------| | Rotary encoder 1 CLK | 2 (INT0) | | Rotary encoder 1 DT | 3 (INT1) | | Rotary encoder 1 SW | 4 (digital) | | Button 1 (DRS) | 5 | | Button 2 (Pit) | 6 | | Toggle switch 1 | 7 | | Paddle up (hall) | 8 | | Paddle down (hall) | 9 | | LED WS2812B data | 10 | | OLED I2C SDA | 2 (SDA on Pro Micro) | | OLED I2C SCL | 3 (SCL) | Wheel Hub Formula Apex Script
⚠️ Check your Pro Micro pinout — SDA/SCL are usually on pins 2 & 3 but conflict with interrupts. Better to use a separate I2C pin (e.g., A4/A5 on some variants). Adjust accordingly.
In sim racing, the "hub" is the central interface between your steering wheel (the rim) and the wheel base (the motor). High-end hubs (like those from Simucube, Asetek, or Fanatec) contain microcontrollers, shifters, magnetic paddles, and often a small OLED screen. The term "Formula" refers to Formula 1 /
F_brake = T_brake / R_tire
M_lateral = F_lateral * R_tire # moment from lateral force at tire center M_brake_on_hub = F_brake * hub_outer_radius # simplified ⚠️ Check your Pro Micro pinout — SDA/SCL
The difficulty depends on your hardware ecosystem. Here are the three most common scenarios:
Standard out-of-the-box firmware is generic. It assumes you are driving a street car or a GT3. A Formula-specific script optimizes for the unique demands of high-downforce, high-RPM driving.
Here is what a custom Apex Script fixes: