EBIKE Speed limit to throttle using pwm signals and hall sensor

What do you have working so far?