Shop OBEX P1 Docs P2 Docs Learn Events
frequency — Parallax Forums

frequency

ArchiverArchiver Posts: 46,084
edited 2002-07-10 18:43 in General Discussion
Hello,

Can someone PLEASE help me. I am trying to figure out how to make the stamp
measure frequency using PULSIN with a BS2p. The manual says about this on page
241 under Explanation, but gives no example of how it can be used. I must use
PULSIN for the speed, The frequency range that I will be reading is 25Hz -
500Hz. I don't need to know the frequency just the Units.

I have tried to find a pattern using the inverse of the frequency and I got
lost.

Please Help.

Thanks
AC


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-07-10 04:26
    Hello,

    Never mind about the last post I figured it out. But know I have another
    problem. I need help with this math formula:

    (( 1 / ( units*.00000075 )) / ( A / 2 )) *60 = B

    the maximum value for units is 65535
    the lowest value for units is 2670

    The value for A will be between 12 and 4

    Dose anyone know if the PAK-I can handle this formula?

    Thanks
    AC


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-07-10 18:43
    Yes, a PAK-I can handle that. You'd convert 1, .00000075, 60, and 2
    offline using our Fconvert program. Then you could read your units and A
    values "on the fly". The rest is just multiply and divide.

    Al Williams
    AWC
    * Floating point math for the Stamp, PIC, SX, or any microcontroller
    http://www.al-williams.com/awce/pak1.htm



    >
    Original Message
    > From: Anthony Conti [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=oWd9zmVmMgHkeNw10bA4hcf8N81GzfNy0vVanWiPB_oCdcBjWHfmav4apoAlqBLRKma9yfXHNa-gYw]aconti@s...[/url
    > Sent: Tuesday, July 09, 2002 10:27 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] frequency
    >
    >
    > Hello,
    >
    > Never mind about the last post I figured it out. But know I
    > have another problem. I need help with this math formula:
    >
    > (( 1 / ( units*.00000075 )) / ( A / 2 )) *60 = B
    >
    > the maximum value for units is 65535
    > the lowest value for units is 2670
    >
    > The value for A will be between 12 and 4
    >
    > Dose anyone know if the PAK-I can handle this formula?
    >
    > Thanks
    > AC
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
Sign In or Register to comment.