Posts: 6,552
Threads: 842
Joined: Oct 2020
Reputation:
161
maybe you can check your RS485 circuit whether is well. one of our customer use own esp32 board also can't work, after he replaced with KinCony's esp32 board, it work well. just check the RS485 circuit of your ESP32 board.
Posts: 19
Threads: 1
Joined: Mar 2024
Reputation:
0
In your kincony boards do you use some kind of uart to rs485 IC ? maybe esp32 alone cannot make a clean rs485 signal alone.. later I will try to measure it with a oscilloscope.
Posts: 19
Threads: 1
Joined: Mar 2024
Reputation:
0
Ok I have the explanation.
Esp32 itself makes low level at +1V and high level at +3,3V
Your hav2 board is a real rs485 level. +1,5 and - 1,5v
So you cannot use an esp32 mcu directly in the rs485 bus.
You have to tell this thing in the presentation video of the hav2 board. I have purchased an uart to rs485 and I will try to add it to the circuit and see what happens.
I will update you.
Thank you
Posts: 6,552
Threads: 842
Joined: Oct 2020
Reputation:
161
i see now, you PCB not have uart to rs485 circuit. such as MAX13487 or SP485 chip.
Posts: 19
Threads: 1
Joined: Mar 2024
Reputation:
0
03-24-2024, 03:16 PM
(This post was last modified: 03-24-2024, 03:17 PM by procet.)
Hi,
with an rs485 to uart converter the communication is ok finally!
i have one more issue:
i can turn on and off the switch from the homeassistant page to the ha v2 board with no problem but i cannot view the state of the ha v2 board inputs on homeassistant. i attach the esphome logs:
Code: [15:15:32][D][kc868_ha.component:019]: uart bus receive 1:10:0:a:0:6:c:65:3:0:0:0:0:0:0:0:0:0:0:f:b8
[15:15:32][D][kc868_ha.component:030]: uart crc=f:b8, calc crc=f:b8
[15:15:32][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1
[15:15:32][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2
[15:15:32][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3
[15:15:32][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4
[15:15:32][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5
[15:15:32][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6
[15:15:32][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1
[15:15:32][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2
[15:15:32][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3
[15:15:32][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4
[15:15:32][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5
[15:15:32][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6
[15:15:32][W][component:204]: Component esphome.coroutine took a long time for an operation (0.16 s).
[15:15:32][W][component:205]: Components should block for at most 20-30ms.
[15:15:33][D][kc868_ha.component:019]: uart bus receive 1:10:0:a:0:6:c:65:0:0:0:0:0:0:0:0:0:0:0:0:fc
[15:15:33][D][kc868_ha.component:030]: uart crc=0:fc, calc crc=0:fc
[15:15:33][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1
[15:15:33][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2
[15:15:33][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3
[15:15:33][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4
[15:15:33][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5
[15:15:33][D][kc868_ha.component:046]: dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6
[15:15:33][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1
[15:15:33][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2
[15:15:33][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3
[15:15:33][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4
[15:15:33][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5
[15:15:33][D][kc868_ha.component:057]: found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6
[15:15:33][W][component:204]: Component esphome.coroutine took a long time for an operation (0.16 s).
[15:15:33][W][component:205]: Components should block for at most 20-30ms.
so what is the problem now?
the board is on its default settings
thank you
Posts: 6,552
Threads: 842
Joined: Oct 2020
Reputation:
161
if you want to use HAv2 INPUT port, just do as this video, it have details:
https://youtu.be/s5Htc43HqAc
Posts: 19
Threads: 1
Joined: Mar 2024
Reputation:
0
I've already see the video many times.
What about my problem?
Posts: 19
Threads: 1
Joined: Mar 2024
Reputation:
0
Sorry, my mistake. I make an error on the configurator.
Can i ask you how many milliamps can I pull from the hav2 board outputs? Can i drive directly a rele coil?
Posts: 6,552
Threads: 842
Joined: Oct 2020
Reputation:
161
it's mA level, can't drive relay coin directly, you need add drive circuit.
Posts: 19
Threads: 1
Joined: Mar 2024
Reputation:
0
|