Author Topic: Cross slope sensor scale  (Read 3323 times)

Offline F.M.Elettromeccanica

  • PLUS+1 Developer
  • ***
  • Posts: 47
  • Karma: +1/-0
Cross slope sensor scale
« 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

Offline SJ Industries

  • PLUS+1 Expert
  • ****
  • Posts: 60
  • Karma: +2/-0
Re: Cross slope sensor scale
« Reply #1 on: November 22, 2019, 07:54:42 PM »
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?

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: Cross slope sensor scale
« Reply #2 on: November 22, 2019, 11:16:49 PM »
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.

Offline F.M.Elettromeccanica

  • PLUS+1 Developer
  • ***
  • Posts: 47
  • Karma: +1/-0
Re: Cross slope sensor scale
« Reply #3 on: November 23, 2019, 01:07:58 AM »
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.

Offline F.M.Elettromeccanica

  • PLUS+1 Developer
  • ***
  • Posts: 47
  • Karma: +1/-0
Re: Cross slope sensor scale
« Reply #4 on: November 23, 2019, 09:32:36 AM »
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