Shop OBEX P1 Docs P2 Docs Learn Events
Digital Tachometer — Parallax Forums

Digital Tachometer

Ferris_BueFerris_Bue Posts: 40
edited 2008-05-21 15:42 in Learn with BlocklyProp
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

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-05-20 14:26
    Hello,

    What is it that the display is showing?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Ferris_BueFerris_Bue Posts: 40
    edited 2008-05-20 14:47
    The display shows what the rpms of the engian is running at. The BS2 counts the number of pulses and turns it in to rpm. What I would like to know is the frumal right? If anyone can help plz me let know.

    Thanks,

    Ferris
  • allanlane5allanlane5 Posts: 3,815
    edited 2008-05-20 15:45
    "frumal" == "formula", I assume.
  • Ferris_BueFerris_Bue Posts: 40
    edited 2008-05-20 16:06
    yes, I ment formula. I f anyone can help me out I would like it.

    Thanks

    Ferris
  • allanlane5allanlane5 Posts: 3,815
    edited 2008-05-20 16:35
    Okay.

    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 SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-05-20 18:03
    Yeah, sorry my question should have been, what is the display showing you that you question its accuracy...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Ferris_BueFerris_Bue Posts: 40
    edited 2008-05-21 15:42
    Thanks for the help. Still if anyone can help plz let me know.

    Thanks

    Ferris
Sign In or Register to comment.