Travel Sensor Driver Development
Developed a firmware driver for a travel sensor in CubeIDE used to measure the car's suspension position during operation. This data is vital for tuning suspension performance and enhancing vehicle algorithms.
- Designed a custom transfer function due to non-linear sensor behavior
- Measured output voltages at 1/8-inch intervals for both 2- and 3-inch sensors, then created a 7th order interpolating polynomial for accurate position mapping using MS Excel
- Final experimental testing confirmed accuracy within 3 significant digits (in inches)
The Transfer Function
The sensors are potentiometers, read by the wheel sensor boards. A curve was fit to each sensor, then the two were averaged into one driver function.