https://www.koemu.com/blog/2013/04/17/tachometer-is-broken/