Smart Home Automation Forum
How to measure current using Analog Inputs on KC868-A16? - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: How to measure current using Analog Inputs on KC868-A16? (/showthread.php?tid=7604)



How to measure current using Analog Inputs on KC868-A16? - Brouk - 02-11-2025

dear admin,
I need to measure current on one phase (230V AC). I would like to use Analog Inputs on the A16 module for this (there are 4 inputs in total). I bought a CT clamp "SCT-013 5A=1V". I tested it and at 5A on the measured phase it has 1V AC at the output.
   
Can you advise me how to connect it correctly and how to configure it in ESPHome (in Home Assistant)? Now I have the inputs configured like this...
Code:
sensor:
  - platform: adc
    pin: 36
    name: "analogInput1"
    update_interval: 10s
    attenuation: 12db

  - platform: adc
    pin: 34
    name: "analogInput2"
    update_interval: 10s
    attenuation: 12db

  - platform: adc
    pin: 35
    name: "analogInput3"
    update_interval: 10s
    attenuation: 12db

  - platform: adc
    pin: 39
    name: "analogInput4"
    update_interval: 10s
    attenuation: 12db

...but the values are 0.14V, which is nonsense:

   

Thanks in advance


RE: How to measure current using Analog Inputs on KC868-A16? - admin - 02-11-2025

no, can't use by this way. the CT clamp sensor output AC signal, KC868-A16 analog input use by DC signal.
if you want use by CT clamp sensor, need use M30 board.


RE: How to measure current using Analog Inputs on KC868-A16? - Brouk - 02-12-2025

thank you for the quick response. 
I was afraid that my plan would not work, but buying the M30 module for measuring current on one or two phases does not make sense. 

can I connect a device like "Split Core Current Transmitter 0-500A AC DC Hall Current Sensor Transducer 20mm Hole 0-10V 4-20mA RS485 Current Transmitter" (eg: https://vi.aliexpress.com/item/1005007120648979.html ) in the "0-5V Output" variant to the analog input A16? 
if yes, is the code below correct for this purpose?
Code:
sensor:
  - platform: adc
    pin: 36
    name: "analogInput1"
    update_interval: 1s
    attenuation: 12db

and why is the voltage 0.14V displayed on an input that is not occupied? is this OK, or is there a defect in the analog input?

regards


RE: How to measure current using Analog Inputs on KC868-A16? - admin - 02-12-2025

just make sure your sensor output signal is DC , not AC. you'd better confirm with the sensor's sell.
This is a normal phenomenon, as you may need calibration in home assistant.