Darrel
Most of this is true
At low speeds, the time between pulses becomes more important than the Number of pulses per second.
True if your measuring per second maybe not if your measuring a pulse between two teeth and there are a 100 or more per revolution.
That value is easiest to measure with the CCP module in "Capture" mode, using Timer1.
This is a great way to do this, and just what the module is made for! I have used these modules in this way for other projects (laser speed trap which included vehicle counting and direction of travel).
This way, the minimum refresh time for the speed value is only limited to the time between pulses, instead of a number of pulses across a fixed time base.
This is true for the count command not sure pulsin would affect it as much since it is measuring time between pulses again measuring time between two teeth of hundreds per Rev.
The low end can be extended by counting an Upper WORD for Timer1, giving a result with a resolution proportional to the circumference of the tires.
Not easy stuff, but PULSIN or COUNT won't do it.
I have done a number of Speedos including a calibration setup for different size tires / gear ratio changes, But it was only doing speedo and odom / trip odom and had far less time constraints on it. It could still be done using the current OEM sensor in the transmission / transfercase these are mostly freq out sinewave units which are easly adaptable. This could be done with counter module and timer, or just maybe using pulsin depending on the amount of overhead for the other stuff.
Bookmarks