gramo
New Member
Personally I wouldn’t consider using a RPM meter in the manner you have. It is by far too open for errors from noise etc.
Sampling over a time period produces a rather accurate average of the signal. You can calculate the period and frequency quite easily afterwards, knowing that you are dealing with an average over a time frame - containing more than 1 sample.
A single pulse could be slightly deformed, or noise on the circuit could make it appear to go longer, giving a result that could be a couple of 100% out when dealing with fast signals. Circuits near or a part of motor circuits will be subject to a lot of noise thanks to the continuous EMF/EMI produced by the motor.
Sampling from PORTC on a PIC would be another great advantage, especially if signals are not square pulse, but rather ac/sine types. PORTC has built Schmitt triggers on every pin
Sampling over a time period produces a rather accurate average of the signal. You can calculate the period and frequency quite easily afterwards, knowing that you are dealing with an average over a time frame - containing more than 1 sample.
A single pulse could be slightly deformed, or noise on the circuit could make it appear to go longer, giving a result that could be a couple of 100% out when dealing with fast signals. Circuits near or a part of motor circuits will be subject to a lot of noise thanks to the continuous EMF/EMI produced by the motor.
Sampling from PORTC on a PIC would be another great advantage, especially if signals are not square pulse, but rather ac/sine types. PORTC has built Schmitt triggers on every pin
Last edited: