Math question.
Archiver
Posts: 46,084
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]
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
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]
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]
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