Arduino code for Speed Sense project, full project can be found at https://github.com/newt-ttt/SpeedSense.