Digital Tachometer
Ferris_Bue
Posts: 40
Hey all,
I am buliding a digital tach. I got the program working but what the 7-segs show is not right. If someone can help me with the math I would like it. I did put the program in.
Thanks
Ferris
Post Edited (Ferris_Bue) : 5/19/2008 10:30:07 PM GMT
I am buliding a digital tach. I got the program working but what the 7-segs show is not right. If someone can help me with the math I would like it. I did put the program in.
Thanks
Ferris
Post Edited (Ferris_Bue) : 5/19/2008 10:30:07 PM GMT
bs2
2K
Comments
What is it that the display is showing?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks,
Ferris
Thanks
Ferris
Yes, the formula you are using to calculate RPM was correct.
The way you were forming the "digits" was weird -- why have all those "ELSIF"?· Surely you want the entire number encoded every time?· I added a subroutine that would do this, using the "MOD" (//) and "DIV" (/) operators.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks
Ferris