PLUS+1 User Forum
PLUS+1 Software => General controls => Topic started by: F.M.Elettromeccanica on November 22, 2019, 05:40:58 PM
-
Hi all,
i have to use an inclination sensor to control a levelling system, i connect Can King and i see this:
ID: 1560 D1 and D2 i decode and insert in a COMBINE S16, i see exactly 10000 -10000 output on -90 +90 Xaxis degree.
but when i scale it the angle does not change linearly.
i can see when i'm on a perfect Zero, but at 30 degrees i read 44.....at 45 degrees i read 65 etc....
where i'm doing wrong?
thanks
-
You have probably already checked but is the sensor output linear throughout its range? Or does it have a curve, to give a higher degree of precision below 45 degrees?
-
Does it reach 10000 (100%) at around 70 degrees, not 90? 45/.65 = 69, and 30/.44=68, which implies the limit is more like 69 degrees.
Does the output increase continually from 0 to 90 degrees? Or jump back down to a lesser value on occasion? If so, it might an integer wrap-around, caused by a byte ordering error, 8-bit limit, etc.
-
first of all thanks to all, the output increases up to 90 degrees, never coming back. but it is not linear. at 45 degrees for example I read an output of 7000. at 30 degrees an output of about 5000.
-
You have probably already checked but is the sensor output linear throughout its range? Or does it have a curve, to give a higher degree of precision below 45 degrees?
It has a curve
Thanks