One of my goal is making an open-source version of Performance Box. With the help of my just developed OBD-II simulator, I have made it today. The time of a car’s acceleration from static to 60/100/200km/h can be measured with Arduino connected with OBD-II and GPS. I will further improve the algorithm to increase the accuracy. As this will be open-source, everyone can see how it works and judge the results.
Current it works like this:
- When car is static, read OBD-II car speed data (PID 010D) continuously
- When detecting speed changes to non-zero, keep start time (in ms)
- Speed, RPM and GPS data is logged to microSD card during the procedure and can be used to generate charts and for further analysis
- When either GPS speed or OBD-II speed reaches thresholds (60, 100 and 200 km/h), keep the time and display the elapsed time
- When elapsed time past 99 seconds or speed overpass 200 km/h, the procedure ends
The source code is based on current OBD Logger and will be published soon.