Not sure if you want it to be physically accurate, but here is something to mess around with. If you want the wheel to spin at a 1 to 1 distance as the speed is moving you'll have to do something else, but for now I am going to bed. You need an int timer for this.
generally looks not bad but I hoped that wheel will gradually rotate faster and faster but there are only few speeds when wheel accelerates, but still it looks convincingly, I can't do better even can't understand that code I wonder for example what is function ceil.