Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions about Analog Inputs KC868-A16
#1
Hi all!
I received my KC868-A16 board and now experimenting with it. My goal is to use it for Home Assistant.
Digital inputs and outputs work fine, but there are some confusing points with analog inputs.
I would appreciate clarification.

1. I used the lines from the example .yaml file and it turned out that because of the lines
------------------------------------
    filters:
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
------------------------------------
the measured voltage values were greatly inflated. So I removed these lines from my .yaml file and the voltage values became correct.
What were these lines in the original example for anyway?

2. When the same voltage is applied simultaneously to all four analog inputs, the spread of readings between them is no more than 5%. This is very good accuracy, but can it be increased by changing the parameter "attenuation: 11db" ?

3. When connecting each of the analog inputs to ground, the voltage value is not 0V but 0.14V
Is there any way to fix this?

4. And the main problem. When the input voltage changes from minimum to 3.14V, its value is displayed correctly. However, when the input voltage increases from 3.14V to 5V, it stops changing and always shows 3.14V, which is obviously wrong.
What is the problem here?
Reply
#2
you can check with this video , how to config analog input ports for ESPHome.
https://www.kincony.com/forum/showthread.php?tid=3499
Reply
#3
I bought two boards from Kincony - KC868-A6 and KC868-A16.
The analog inputs of these boards were configured identically in exact accordance with the video https://www.kincony.com/forum/showthread.php?tid=3499
However, they show the voltage value completely differently.
The KC868-A6 board shows absolutely correct input voltage values for all four inputs in the range from 0.1V to 5.0V.
The analog inputs of the KC868-A16 board show incorrect and overstated voltage values.
To understand the situation, here is a table of values:

Real input voltage      Voltage displayed by the board KC868-A16
1.2V -------------------- 1.84V
1.5V -------------------- 2.21V
2.0V -------------------- 2.94V
2.5V -------------------- 3.65V
3.0V -------------------- 4.37V
3.5V -------------------- 5.04V
4.0V -------------------- 5.04V
4.5V -------------------- 5.04V

As you can see, the board displays very high values of the input voltage.
However, starting from a value of about 3.2V, the displayed voltage is 5.04V and does not change further.
This situation occurs for all four inputs of the board KC868-A16.
What's the problem here?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)