This program should time wheel rotation to give speed and duration of coasting and calculate deceleration.
can someone tell why it won't progress past rotation 1? I am not sure if I am using long unsigned properly.
At first it checks for speed above the starting speed and buzzes for 1 second and checks for the specified beginning speed as the coast begins. Then it counts 100 wheel revolutions and measures the end speed and calculates deceleration, and starts another test. I have an adjustable oscillator with a optical pnp output and it works the rotation part OK. my first sketch hung up on the first speed test too.