??? 07/27/07 12:59 Modified: 07/27/07 12:59 Read: times |
#142409 - CHEAT Responding to: ???'s previous message |
can you please tell me that what compromise i have to do while using ICL7135(4 1/2 digit resolution) with 6 dig seven segement display
the first thing that comes to mind is CHEAT (put some random numbers there), that will be just as valid as anything else. However, there is another way, but that will lead to the display flickering between reading: if you store your values in a long and average, you will get the resolution of a long; however that is CHEATING again (showing more precision than you even am close to). The thing you will run into with a resolution so far beyond your precision is that you have to choose between flicker (display going 123456 123465 123654 ...) or locking whatever value you want to cheat the customer with. Erik PS a common 'flicker avoidance scheme' is to only update the display if the new value is >n. that will, if you do not take care of the code correctly lead to the scale reading one value if coming from a lowre weight and nother if it comes from a greater weight. This can be coded to work, but beware of the need. PPS I am very adamant about the cheating of the customer, but am also aware thet most scales do so cudos to the marketing people, they succeeded in making us do it. |