Hey everyone,
I was adding a servo to display fuel level (volts really) in my sons arduino two wheel robot,
I tried using this formula ' (100/22)cell,
If cell = 22 value then the answer should be 100, or full,
However the arduino gives me 88!!! every time.
It gives 0 for 0, correctly,
So to solve this I had to use ' cell4.54 , which gives me the 0 at 0 and 100(full) at 23.
Why does the arduino do this?, I noticed in some other sample code that the programmer used the * figure also.
My calculator does it fine.
Regards, Matt.