Wanted: Propeller Tachometer Code
Paul Sr.
Posts: 435
I have a mini-mill and mini-lathe and I want to build Tachometer's for both. I have just embarked on a project to convert the Mill to CNC.
I have several Prop's around (and boards, and..) so I figured why not build rather than buy!! I would rather not spend the time starting from scratch - CNC is consuming LOTS of brainpower these days!!
Has anyone seen or have one built on the Propeller? If so, would you mind sharing code?
Thanks,
Paul
I have several Prop's around (and boards, and..) so I figured why not build rather than buy!! I would rather not spend the time starting from scratch - CNC is consuming LOTS of brainpower these days!!
Has anyone seen or have one built on the Propeller? If so, would you mind sharing code?
Thanks,
Paul
Comments
Lv
It is in PASM but heavily documented so you should be able to use it even if you don't know much PASM.
Copy it and run it. It is complete.
The attached code has three methods
The first displays what id going on on the PST
The second generates a signal you can seed (programmable) for a frequency to use as a source
if you don't have a signal to look at. Otherwise you can use your signal
The third counts how may waves go by in three (programmable) 1/5 (programmable) second time frames and averages them
You can construct a tachometer from that.
This is from my book on learning PASM for beginners
I invite comments on the code so I can make improvements.
The book is about done.
Harprit.