Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Help with RPM gauge Please

Help with RPM gauge Please

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiohelp
4 Posts 2 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob Beaubien
    wrote on last edited by
    #1

    Hello everyone I been try for a while now to do a rpm gauge from a input pulse, i have tried a timer This is what i have tried Say i do a timer and calculate 4 times a second and display in a text box for now In 0.25 second i get 600 pules 600 pules * 4 = 2400 plus in one second 2400 pulses / 200 = 12 rotation per second 12 * 60seconds = 720 RPM Reset text box For some reason i think there would probably be a better approach then this, I am using visual studio 2008 Can anyone help out please Thanks in advance Biggs

    R 1 Reply Last reply
    0
    • B Bob Beaubien

      Hello everyone I been try for a while now to do a rpm gauge from a input pulse, i have tried a timer This is what i have tried Say i do a timer and calculate 4 times a second and display in a text box for now In 0.25 second i get 600 pules 600 pules * 4 = 2400 plus in one second 2400 pulses / 200 = 12 rotation per second 12 * 60seconds = 720 RPM Reset text box For some reason i think there would probably be a better approach then this, I am using visual studio 2008 Can anyone help out please Thanks in advance Biggs

      R Offline
      R Offline
      Ralf Meier
      wrote on last edited by
      #2

      If there is a possible better approach could only be said if I see your real code. With the calculation is nothing wrong - this is the normal way to do a frequency-meassuring. Only the "Reset Textbox" seams a little bit strange for me ... Do you want to see your meassuring only in a Textbox ... or do you want to use a Gauge-Control ?

      B 1 Reply Last reply
      0
      • R Ralf Meier

        If there is a possible better approach could only be said if I see your real code. With the calculation is nothing wrong - this is the normal way to do a frequency-meassuring. Only the "Reset Textbox" seams a little bit strange for me ... Do you want to see your meassuring only in a Textbox ... or do you want to use a Gauge-Control ?

        B Offline
        B Offline
        Bob Beaubien
        wrote on last edited by
        #3

        I will use a gauge control witch it will get its information from the text box I have to restart my project i am using a Phidget IO board and it is too slow so i got a Raspberry Pi 3 I wonder how meany times i should have a pulse per rotation, my wheel right now has 4 pulses should i have more ??? Thanks

        R 1 Reply Last reply
        0
        • B Bob Beaubien

          I will use a gauge control witch it will get its information from the text box I have to restart my project i am using a Phidget IO board and it is too slow so i got a Raspberry Pi 3 I wonder how meany times i should have a pulse per rotation, my wheel right now has 4 pulses should i have more ??? Thanks

          R Offline
          R Offline
          Ralf Meier
          wrote on last edited by
          #4

          Basicly it's better to have as much pulses/turn as possible ... BUT ... you have also to count those pulses. Normally this is done with a counter-module. Also normally you have more than one meassure/second. In the Moment it's not clear for me what you are doing and what kind of help you need. Perhaps you give some more Information in future ...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups