Hello, tanks for all the suggestions.

Quote Originally Posted by Amoque View Post
Perhaps I do not wholly understand your purpose, but why is it necessary to use a timer for the display?

I saw one example that is based on that principle, and i tought it would to the job, but it was just an ideia.

Quote Originally Posted by Amoque View Post
I would not question, but it seems at the very slow RPM you are measuring, the frequency of updating the display will happen many times and is not nearly so critical...
I tought that too, and i increased the time to refresh to help on the task of timer1, but didn't gave any result.
First, each time i pressed the button, to simulate a rotation, it gave me completly different numbers, then nothing happend.

Quote Originally Posted by Amoque View Post
It will take relatively many iterations before there is new information to display and there is no benefit (as I see it) to worry so long as the loop executes fast enough to avoid flicker. It seems, if I understand you correctly, that each rotation interrupt is a full rotation and yields new RPM data or am I mistaken?
You are right. On booth.

The pseudo code you gave me looks simple, i'll try to build it.


Quote Originally Posted by tasmod View Post
I think you need to increase the resolution to increase the accuracy of the pulse read before 1 minute is up.

Why deal with 36 pulses per minute ? I don't know how you are breaking the IR beam but maybe you could add extra pulses using extra beam breaks.

1 pulse per revolution of conveyer "drum" wheel could be multiplied up to 10 pulses per revolution or whatever using more beam breaks on the "drum" ? Easier to read a RPM during the one minute period.


Just thoughts.
You are absolutly right tasmod, the problem is that i have 7 conveyours in 1 line, and 39 lines, 273 conveyours plus 193 conveyours in another zone. The conveyours are different in diameter, there are 4 types, and the shaft is visible only in the center, so i plan to break the beam with plain white paper, since the optoelectronics i'm usig where taken from a printer, the detection of paper.

With this, i'm not saing you are wrong, but to be fast enough to check the rotation of the shafts, i must not take too much time or be too complicated, althoug i only have to do it once every year