Hi,
i am new to the forum and was hoping to get some advice on how i can get a tricky timing issue resolved on a PIC project i have.
I have a rotary shaft with a flag on it which is picked up by a sensor, basically i need to work out the rpm of the shaft. One way is to count how many pulses there are on the given port input in a set amount of time, the problem with this method is i don't get a true value, the resolution isn't high enough.
A better way is to work out the time period between 2 pulses and use that to calculate the true rpm at that point in time. The only problem i have with this method is i don't know how to accurately measure the time period between the 2 pulses.
I am using just a 16F627 for this project which has plenty of I/O for what i need.
Any suggestions/info would be much appreciated.
Thanks
Sean
i am new to the forum and was hoping to get some advice on how i can get a tricky timing issue resolved on a PIC project i have.
I have a rotary shaft with a flag on it which is picked up by a sensor, basically i need to work out the rpm of the shaft. One way is to count how many pulses there are on the given port input in a set amount of time, the problem with this method is i don't get a true value, the resolution isn't high enough.
A better way is to work out the time period between 2 pulses and use that to calculate the true rpm at that point in time. The only problem i have with this method is i don't know how to accurately measure the time period between the 2 pulses.
I am using just a 16F627 for this project which has plenty of I/O for what i need.
Any suggestions/info would be much appreciated.
Thanks
Sean