Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configure KC868-A8 in ESPHome
#11
(07-08-2022, 12:07 AM)admin Wrote: not need, just different hardware version, you can see your A8 board PCB whether printed V1.4

Thank you very much!.
You have helped me a lot. Otherwise I wouldn't be able to get it started! I will recommend you to everyone I know, technical support is essential.
Reply
#12
you are welcome, KinCony will support great technical support.
Reply
#13
Hello, I am trying to configure pins A1 and A2 of a KC868-A8 board, but I do not see the configuration of these pins in the file that you have published, please can you guide me to configure them in ESPhome

Thanks in advance
Reply
#14
# Example configuration entry
sensor:
- platform: adc
pin: 34
name: "analog-1"
update_interval: 10s
attenuation: 11db

- platform: adc
pin: 35
name: "analog-2"
update_interval: 10s
attenuation: 11db
Reply
#15
Hi,

I would like to configure an input for count my water with pulse_counter with a KC868-a8, I Have a contact dry between GND and Input 0, with a Binary_sensor, it's ok , but I can't count it with ESPHOME in Home Assistant with a sensor.

I Think I don't have the correct PIN, I Try all from 0 to 39, But Nothing...
Do you have an idea ?

Thanks

This is my configuration in HA :

esphome:
name: kc868-a8
platform: ESP32
board: esp32dev


# Example configuration entry for ESP32
i2c:
sda: 4
scl: 5
scan: true
id: bus_a


# Example configuration entry
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0

# Optional manual IP
manual_ip:
static_ip: 192.168.0.199
gateway: 192.168.0.1
subnet: 255.255.255.0


# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_output'
address: 0x24

- id: 'pcf8574_hub_input'
address: 0x22

sensor:
- platform: pulse_counter
pin:
number: 21
inverted: true
mode:
input: true
pullup: true
name: "Pulse Counter"
Reply
#16
digital input 1-8 can use for dry contact sensor. but whether ESPHome can calculate the pulse number, i have not tested. if ESPHome support and make sure what your water sensor pulse frequency, whether esp32 gpio speed fast enough.
Reply
#17
(11-16-2022, 12:48 PM)admin Wrote: digital input 1-8 can use for dry contact sensor. but whether ESPHome can calculate the pulse number, i have not tested. if ESPHome support and make sure what your water sensor pulse frequency, whether esp32 gpio speed fast enough.

For digital input it's simple, it's a binary_sensor and the platform is - platform: gpio and pin is 0,1, 2....
But for   - platform: pulse_counter what is the way to configure the PIN ? 0,1,2 doesn't oK

Who can have a configuration for pulse_counter on K868-A8 on Home assistant ?
 
Thanks

Binary sensor -> simple 

pcf8574:
  - id: 'pcf8574_hub_output'
    address: 0x24
 
  - id: 'pcf8574_hub_input'
    address: 0x22   

binary_sensor: 
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input2"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 1
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false


But for pulse_counter, for input 0,1,2,3.... ?


sensor:
  - platform: pulse_counter
    update_interval: 2s
    pin:
      number: 21
      inverted: true
      mode:
        input: true
        pullup: true
    name: "Pulse Counter"
Reply
#18
https://esphome.io/components/sensor/pulse_counter.html
here ESPHome showed MAX can use 8 channel for counter. maybe you need to set "count_mode". A8's input by Optocoupler circuit, so check your sensor pulse speed, whether is too fast.
Reply
#19
(11-16-2022, 02:59 PM)admin Wrote: https://esphome.io/components/sensor/pulse_counter.html
here ESPHome showed MAX can use 8 channel for counter. maybe you need to set "count_mode". A8's input by Optocoupler circuit, so check your sensor pulse speed, whether is too fast.

I know this article, but that doesn't explain which pin is for input 0, 1, etc 
For Pin12 by exemple, what is the real input on K868-A8 ? 
I have only one Counter to install, I put it between GND and Input 0, but how to configure it ? PIN 12 : Nothing....

Thanks
Reply
#20
i think maybe you can't connect directly by digital input of A8, because A8's digital input use by PCF8574 IIC extend chip, so i asked you what your water pulse sensor's speed, PCF8574 refresh input port need time.
you can try to connect with these ports:
DS18B20/DHT11/DHT21/LED strip -1: GPIO14
DS18B20/DHT11/DHT21/LED strip -2: GPIO13
DS18B20/DHT11/DHT21/LED strip -2: GPIO32
DS18B20/DHT11/DHT21/LED strip -2: GPIO33

such as connect with GPIO14, it's connect with ESP32 pin directly, just have a pull up resistance.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)