I have an intellectual dilemma, on creating algorithm for traction control module. Approximately I have:
700hz front approx 100kmph
430hz rear approx 100kmph
And twice as many pulses (interrupts) in the processor ... Let the processor run at 8MHz or 16MHz if necessary (the same as in VEMS v3)...
So, if I count the pulses per second, I would have each measuring 1 second late... This is not usable for TCM...
If I measure the time between 2 pulses, around 0.7ms, there will be an error in recalculation of the time in the speed will be greater...
What I thought was to measure the duration of 10 or 50 pulses... This would come in the time of 7ms or 35ms... Delay of 35ms for TCM electronics is not so bad, and the error would have been 10 or 50 times less then measuring only one pulse...
Or combine all those undergarments like every 0.1s, measure number of pulses, and meassure last pulse that didn't complete?
BTW, at 16MHz, 1 clock stroke is less than a micro-seconds, so I think that the processor must be fast enough to do 4 wheels and an algorithm for reducing the torque...
How does VEMS measure speed of a wheel or a speed of a engine?