Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO numbers for Weigand
#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


Messages In This Thread
GPIO numbers for Weigand - by surfmk - 11-20-2025, 06:33 PM
RE: GPIO numbers for Weigand - by admin - 11-20-2025, 11:13 PM
RE: GPIO numbers for Weigand - by surfmk - 11-20-2025, 11:58 PM
RE: GPIO numbers for Weigand - by surfmk - 11-21-2025, 04:46 PM
RE: GPIO numbers for Weigand - by admin - 11-22-2025, 12:28 AM
RE: GPIO numbers for Weigand - by surfmk - 11-22-2025, 12:34 PM
RE: GPIO numbers for Weigand - by admin - 11-22-2025, 12:48 PM
RE: GPIO numbers for Weigand - by surfmk - 11-22-2025, 12:58 PM
RE: GPIO numbers for Weigand - by admin - 11-22-2025, 11:55 PM
RE: GPIO numbers for Weigand - by surfmk - 11-23-2025, 01:47 PM
RE: GPIO numbers for Weigand - by admin - 11-23-2025, 10:56 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)