Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16S Analog input 4-20mA convert not linear
#1
Hello,

I have a KC868-A16S and I follow the exemple to read analog input from 4-20mA input.
But do you know why my raw value isn't linear?
I use analog input 4 for my test who is an 0-20mA input.
I have measure raw value from 1mA to 20mA but these value aren't linear.

What can I do?

1 mA -> 17
2 mA -> 208
3 mA -> 390
4 mA -> 582
5 mA -> 763
6 mA -> 958
7 mA -> 1140
8 mA -> 1340
9 mA -> 1525
10 mA -> 1715
11 mA -> 1906
12 mA -> 2095
13 mA -> 2287
14 mA -> 2465
15 mA -> 2663
16 mA -> 2850
17 mA -> 3045
18 mA -> 3253
19 mA -> 3483
20 mA -> 3760

thank you

Nicolouts
Reply
#2
if you use ESPHome , you can check with this video: https://www.kincony.com/forum/showthread.php?tid=3499
Reply
#3
(06-14-2024, 06:25 AM)admin Wrote: if you use ESPHome , you can check with this video: https://www.kincony.com/forum/showthread.php?tid=3499

Hello,

Thank you fro your feedback but I use it in Arduino/C++.
So it's not directly usable with your video.

Regards

Nicolas
Reply
#4
yes, the adc value aren't linear. it's normal.
you can record many different value, make a table.
Reply


Forum Jump:


Users browsing this thread: