Prototyped Tach Board in Test |
The current code works by counting the number of 'highs' within 250 ms (1/4 sec) and doing some simple math to compute the RPM. Although the code is working and I can call this one 'completed', I'm not too happy with the accuracy. It is slightly inaccurate because of the method I used (as described above). The more accurate method involves measuring the time between 'highs' (or teeth in my case). That way there are no rounding errors.
The current method rounds down, so if the chip has counted 55 highs and is 95% to the next high, just as the time ticks to 250ms, it only sees 55. So the extra 0.95 high is not counted. If your gear has very few teeth, the time between teeth increases and your error becomes bigger. The high to high counting does not have this issue.
This whole project started off by wanted to provide an RPM measurement for my dad's Mini-Mill from Grizzly.com (the G0463). Finally, the project is at a phase where we can integrate it to the machine and I can update the program later (if I get the energy).
The images below show the mini-mill's gears which I plan on hooking my magnetic tooth sensor too.
G0463 Mini-Mill with gear cover removed |
No comments:
Post a Comment