Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO numbers for Weigand
#1
Photo 
Hi,

I am finding the documentation for GPIO numbers a bit confusing.

Am I correct :

   

HT1 = GPIO1
HT2 = GPIO2
HT3 = GPIO3

Am I correct :

   

P39 = GPIO39
P40 = GPIO40
P41 = GPIO41

Finally, Can any of these pins be assigned for TX/RX for D0/D1 with Weigand Protocol?

Hopefully, this will allow me to configure my entry alarm system.

Many thanks in advance.

Paul
Reply
#2
sure, it's ok for wiegand.
Reply
#3
(11-20-2025, 11:13 PM)admin Wrote: sure, it's ok for wiegand.

Thank you for your kind response... but I still need an answer please:

Please can you comment about the GPIO numbers - actually I am just guessing.

HT1 = GPIO1
HT2 = GPIO2
HT3 = GPIO3

P39 = GPIO39
P40 = GPIO40
P41 = GPIO41

1. Are these GPIO correct ?
2. Can any of these GPIO be assigned for TX/RX for D0/D1 ?
3. To help other customers, please can you provide GPIO numbering documentation for KC868-A16v3 ?

Thank you,

Paul
Reply
#4
Can anyone help answer the questions ?
Many thanks
Paul
Reply
#5
1-wire (pull-up resistance on PCB):
1-wire1:GPIO47
1-wire2:GPIO48
1-wire3:GPIO38

free GPIOs (without pull-up resistance on PCB):
free gpio-1:GPIO39
free gpio-2:GPIO40

all esp32 pin define at here: https://www.kincony.com/forum/showthread.php?tid=7614
free gpio-3:GPIO41
Reply
#6
For anyone else that needs the correct GPIO for this board... see:

https://www.kincony.com/forum/showthread...&pid=21118

The important image is:    


I would like to know what the best GPIO for Weigand... 

now I understand the location and PGIO numbering

Thanks.
Reply
#7
1-wire1:GPIO47
1-wire2:GPIO48
1-wire3:GPIO38
showed in your RED section. just GPIO-1, GPIO-2, GPIO-3.
GPIO-1=GPIO47
GPIO-2=GPIO48
GPIO-3=GPIO38
Reply
#8
(11-22-2025, 12:48 PM)admin Wrote: 1-wire1:GPIO47
1-wire2:GPIO48
1-wire3:GPIO38
showed in your RED section. just GPIO-1, GPIO-2, GPIO-3.
GPIO-1=GPIO47
GPIO-2=GPIO48
GPIO-3=GPIO38

This makes sense now...

ESPhome has code:

Code:
- platform: gpio
    name: "A16v3 IO47"
    pin:
      number: 47
      inverted: true

  - platform: gpio
    name: "A16v3 IO48"
    pin:
      number: 48
      inverted: true

  - platform: gpio
    name: "A16v3 IO38"
    pin:
      number: 38
      inverted: true

  - platform: gpio
    name: "A16v3 IO39"
    pin:
      number: 39
      inverted: true

  - platform: gpio
    name: "A16v3 IO40"
    pin:
      number: 40
      inverted: true

  - platform: gpio
    name: "A16v3 IO41"
    pin:
      number: 41
      inverted: true


So, for Weigand we use

Code:
wiegand:
  - id: mykeypad
    d0: GPIO47
    d1: GPIO48
    on_key:
      - lambda: ESP_LOGI("KEY", "received key %d", x);
    on_tag:
      - lambda: ESP_LOGI("TAG", "received tag %s", x.c_str());
    on_raw:
      - lambda: ESP_LOGI("RAW", "received raw %d bits, value %llx", bits, value);

d0: GPIO47
d1: GPIO48

Can you advise this is the best solution for Weigand communication?

Thanks, 

Paul
Reply
#9
you can config wiegand by ESPHome, we also will update new KCS v3 firmware to support wiegand.
Reply
#10
(11-22-2025, 11:55 PM)admin Wrote: you can config wiegand by ESPHome, we also will update new KCS v3 firmware to support wiegand.

Hi

I am a beginner with wiegand and ESPHome. I understand how to install wiegand ESPHome - this looks quite easy.

Please can you advise: If I install wiegand ESPHome ... do I still need the firmware upgrade for KC868-A16v3 ??

When will the latest KCS v3 firmware support wiegand please?

Maybe the KCS v3 firmware to support wiegand is only required for non-ESPHome applications?

Thanks,

Paul
Reply


Forum Jump:


Users browsing this thread: