Smart Home Automation Forum
KC868-A inputs pulses - 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-A inputs pulses (/showthread.php?tid=7881)



KC868-A inputs pulses - kulibin - 03-28-2025

Which inputs are best used to read pulses. (KC868-A  V1.6) 
For example, from a water sensor. 0-5V range? 
I think A1-A2 or S3-S4? 
How to correctly write a configuration for such an input?


RE: KC868-A inputs pulses - admin - 03-29-2025

i don't know your pulse frequency. you can use by 1-wire port or digital input port, not use by analog input ports.


RE: KC868-A inputs pulses - kulibin - 03-29-2025

(03-29-2025, 12:00 AM)admin Wrote: i don't know your pulse frequency. you can use by 1-wire port or digital input port, not use by analog input ports.

Did I write the code and pin correctly for ESP Home?
Code:
sensor:
  - platform: pulse_counter
    pin: GPIO14
    name: "Pulse Counter"



RE: KC868-A inputs pulses - admin - 03-29-2025

this need test , connect with your pulse sensor.


RE: KC868-A inputs pulses - kulibin - 03-30-2025

(03-29-2025, 11:37 PM)admin Wrote: this need test , connect with your pulse sensor.

 KC868-A8 v1.6  Which outputs on the ESP correspond to the S1 S2 S3 S4 outputs? 
I already know that S1=  GPIO14; S2 =  GPIO13 а S3 S4 ?


RE: KC868-A inputs pulses - admin - 03-30-2025

https://www.kincony.com/forum/showthread.php?tid=823


RE: KC868-A inputs pulses - thomasfrank - 03-31-2025

@Block Blast For reading pulses from a water sensor on the KC868-A V1.6, the S3-S4 digital inputs are best since they handle discrete high/low signals effectively.


RE: KC868-A inputs pulses - kulibin - 03-31-2025

(03-30-2025, 10:47 PM)admin Wrote: https://www.kincony.com/forum/showthread.php?tid=823

I didn't get it. 
Contactors  32 and 33 are used simultaneously on #define ANALOG_A1  32; #define ANALOG_A2  33 ; S3: GPIO32; S4: GPIO33 ?
If on S (32; 33) then which contats  on the A1; A2?


RE: KC868-A inputs pulses - admin - 03-31-2025

#define ANALOG_A1  34
#define ANALOG_A2  35

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24

Input_IIC_address 0x22

DS18B20/DHT11/DHT21/LED strip -1: 14
DS18B20/DHT11/DHT21/LED strip -2: 13
DS18B20/DHT11/DHT21/LED strip -2: 32
DS18B20/DHT11/DHT21/LED strip -2: 33


RF433MHz wireless receiver: 2
RF433MHz wireless sender: 15

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT