•Magnet rotates with the wheel. •Hall sensor outputs 1 pulse per rotation. •STM32 counts pulses using EXTI interrupt on rising edge. •Every 500 ms, pulse count is sampled. •Speed is computed using ...