15 |
P a g e
or visit www.gropoint.com/support
RIOT Technology Corp.
| #220
–
10114 McDonald Park Rd | North Saanich V8L5X8, BC Canada | +1.250.412.6642
All Rights Reserved
©2020,
RIOT Technology Corp.
Scaling Factor
The sensor electronics measures the moisture sensing circuitry with a 10-bit ADC. This raw ADC
value is scaled using an adjustable coefficient.
The default value of this coefficient is 100.0/1024 = 0.09765625 = 0x3DC80000. This gives a
nominal output range of 0% to 100%, although typically values over 50% are quite nonlinear.
This value should
not
be changed. Changing the scaling factor will likely require recalibration of
the sensor, so it is advised to leave this factor unchanged and instead modify the third order
polynomial coefficients (see above).
Coefficient 0 is the scaling factor for segment 1, coefficient 5 is the scaling factor for segment 2,
etc.
Command Table: Read / Modify Third Order Polynomial Coefficient
GPLP-3 Coefficient Commands
Seg #
Coeff.
#
Read
Write
Default
(decimal)
Default
(hex)
1
scale
0
aXC0!
aXC0cccccccc!
0.09765625 3DC80000
1
A
1
aXC1!
aXC1cccccccc!
0
00000000
1
B
2
aXC2!
aXC2cccccccc!
0
00000000
1
C
3
aXC3!
aXC3cccccccc!
1
3F800000
1
D
4
aXC4!
aXC4cccccccc!
0
00000000
2
scale
5
aXC5!
aXC5cccccccc!
0.09765625 3DC80000
2
A
6
aXC6!
aXC6cccccccc!
0
00000000
2
B
7
aXC7!
aXC7cccccccc!
0
00000000
2
C
8
aXC8!
aXC8cccccccc!
1
3F800000
2
D
9
aXC9!
aXC9cccccccc!
0
00000000
3
scale
A
aXCA!
aXCAcccccccc!
0.09765625 3DC80000
3
A
B
aXCB!
aXCBcccccccc!
0
00000000
3
B
C
aXCC!
aXCCcccccccc!
0
00000000
3
C
D
aXCD!
aXCDcccccccc!
1
3F800000
3
D
E
aXCE!
aXCEcccccccc!
0
00000000
GPLP-4 Coefficient Commands
Seg #
Coeff.
#
Read
Write
Default
(decimal)
Default
(hex)
1
scale
0
aXC0!
aXC0cccccccc!
0.09765625 3DC80000
1
A
1
aXC1!
aXC1cccccccc!
0
00000000
1
B
2
aXC2!
aXC2cccccccc!
0
00000000
1
C
3
aXC3!
aXC3cccccccc!
1
3F800000