Smart Home Automation Forum
KC868-A16S Analog input 4-20mA convert not linear - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: KC868-A16S Analog input 4-20mA convert not linear (/showthread.php?tid=5891)



KC868-A16S Analog input 4-20mA convert not linear - nicolouts - 06-14-2024

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


RE: KC868-A16S Analog input 4-20mA convert not linear - admin - 06-14-2024

if you use ESPHome , you can check with this video: https://www.kincony.com/forum/showthread.php?tid=3499


RE: KC868-A16S Analog input 4-20mA convert not linear - nicolouts - 06-14-2024

(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


RE: KC868-A16S Analog input 4-20mA convert not linear - admin - 06-14-2024

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