I'm not expert in Arduino programming.
I'm making a weighing scale by reading the digital value from the ADC.
All is working fine but I'm stuck at one thing. There is display resolution in weighing scales. For example, if the resolution is set to 5, then the weight on the display should be incremented in multiples of 5 only. like 0.005, 0.010, 0.015, 1.000, 1.005 etc.
Now what I'm getting is a float weight incrementing by multiples on 1 only. I'm clueless how to implement the resolution here.
Kindly guide me...
I have no code to post as I'm clueless about how to go about it.
Sorry, it is not like weight band from one to another. See, weighing scale have display resolution. It is all about the display resolution. When the resolution is set to 5, then the display should show the weight in multiples of 5 only.
The way I'm calculating the weight is, Zerocounts - Loadcounts = Net_counts. Net_counts / Weight_on_scale= Factor. Weight = net_counts / factor. printing the weight with 3 decimal values. Now this is always in multiples of 1 only.