Shop OBEX P1 Docs P2 Docs Learn Events
Math question. — Parallax Forums

Math question.

ArchiverArchiver Posts: 46,084
edited 2004-07-02 13:55 in General Discussion
How many bits is your a/d and what is the a/d reading with no weight on the
scale?

=========================

Hello,
In my weigh scale the BS2 gets reading from A/D and display it using
MAX7219.
I want to display the reading in step of "5" for example so that the
display is 200 ,205 or 210....gram and not in between.
Any help would be appreciated.

Thank You
Mohamed Refky





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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-07-02 10:43
    In a message dated 7/2/2004 9:37:00 AM Eastern Daylight Time,
    refky@h... writes:


    > In my weigh scale the BS2 gets reading from A/D and display it using
    > MAX7219.
    > I want to display the reading in step of "5" for example so that the
    > display is 200 ,205 or 210....gram and not in between.
    > Any help would be appreciated.
    >

    You could divide your AD output by 5, then multiply it by 5. This would give
    you an integer divisible only by 5, since the division process would discard
    and "remainder".

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-02 10:52
    In a message dated 7/2/2004 9:37:00 AM Eastern Daylight Time,
    refky@h... writes:


    > I want to display the reading in step of "5" for example so that the
    > display is 200 ,205 or 210....gram and not in between.
    > Any help would be appreciated.
    >
    >

    Correction: "any remainder".

    I should proof-read[noparse]:)[/noparse]


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-02 13:55
    Hello,
    In my weigh scale the BS2 gets reading from A/D and display it using
    MAX7219.
    I want to display the reading in step of "5" for example so that the
    display is 200 ,205 or 210....gram and not in between.
    Any help would be appreciated.

    Thank You
    Mohamed Refky

    _________________________________________________________________
    STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
    http://join.msn.com/?page=features/junkmail
Sign In or Register to comment.