Wiegand keypad

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Wiegand keypad

#1 Post by marktn » 27 May 2021, 20:58

Hi,

Is it possible to connect this model? If yes wich wire to use?

Can i use the keypad and rifd?

https://a.aliexpress.com/_vaaJol

Dick60
Normal user
Posts: 242
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Wiegand keypad

#2 Post by Dick60 » 28 May 2021, 22:13

I have such a keyboard in use already for serveral years and works great. If you use the same power sourse for both the keyboard and your Arduino devive, you can use the "-(minus)"of the relay on the keyboard PCB.

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#3 Post by marktn » 30 May 2021, 14:04

Dick60 wrote: 28 May 2021, 22:13 I have such a keyboard in use already for serveral years and works great. If you use the same power sourse for both the keyboard and your Arduino devive, you can use the "-(minus)"of the relay on the keyboard PCB.
Thanks! I will order one and test it!

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#4 Post by marktn » 12 Jun 2021, 21:40

Hi,

Is this an error, or...

I did a test with RIFD en the keypad, but it looks that it is not working.

Code: Select all

44800: RFID : reset bits: 12
55800: RFID : reset bits: 36
63804: RFID : reset bits: 21
64356: WD   : Uptime 1 ConnectFailures 0 FreeMem 20184 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
69801: RFID : New Tag: 10 Bits: 26
69802:  Domoticz: Sensortype: 20 idx: 4952 values: 10
70304: RFID : Removed Tag
81800: RFID : reset bits: 3
89800: RFID : reset bits: 9
94356: WD   : Uptime 2 ConnectFailures 0 FreeMem 19880 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
98800: RFID : reset bits: 12
108800: RFID : reset bits: 40
120800: RFID : reset bits: 6
124356: WD   : Uptime 2 ConnectFailures 0 FreeMem 19784 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
154356: WD   : Uptime 3 ConnectFailures 0 FreeMem 19704 WiFiStatus WL_CONNECTED ESPeasy internal wifi status: Conn. IP Init
169800: RFID : reset bits: 18
Attachments
firefox_2021-06-12_21-40-33.jpg
firefox_2021-06-12_21-40-33.jpg (94.41 KiB) Viewed 15205 times

Dick60
Normal user
Posts: 242
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Wiegand keypad

#5 Post by Dick60 » 13 Jun 2021, 18:44

I use the keypad relay, so the donglesare stored in your keypad and if the correct dongle is used, the relay in the keypad is activated. Use that signal for your ESP.

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#6 Post by marktn » 13 Jun 2021, 21:37

Dick60 wrote: 13 Jun 2021, 18:44 I use the keypad relay, so the donglesare stored in your keypad and if the correct dongle is used, the relay in the keypad is activated. Use that signal for your ESP.
Okay, that is also possible. The Wiegand is not working like this?

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#7 Post by marktn » 01 Dec 2021, 20:27

Hello,

anybody any idea? Just did a update to the latest version, ESP_Easy_mega_20211105_normal_ESP8266_4M1M
Is there a way to read out this wiegand?

https://a.aliexpress.com/_vaaJol

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#8 Post by Ath » 01 Dec 2021, 20:51

marktn wrote: 01 Dec 2021, 20:27 Hello,

anybody any idea? Just did a update to the latest version, ESP_Easy_mega_20211105_normal_ESP8266_4M1M
Is there a way to read out this wiegand?

https://a.aliexpress.com/_vaaJol
It looks like you have some poor connections in your wiring, have you tried using short wiring to check that it actually can work?
I did a recent fix to this plugin, that hasn't been merged yet, so not included in a release, but you can download from the PR over here (the Binaries.zip file) to see if that resolves your issue.
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#9 Post by marktn » 01 Dec 2021, 21:01

Ath wrote: 01 Dec 2021, 20:51
marktn wrote: 01 Dec 2021, 20:27 Hello,

anybody any idea? Just did a update to the latest version, ESP_Easy_mega_20211105_normal_ESP8266_4M1M
Is there a way to read out this wiegand?

https://a.aliexpress.com/_vaaJol
It looks like you have some poor connections in your wiring, have you tried using short wiring to check that it actually can work?
I did a recent fix to this plugin, that hasn't been merged yet, so not included in a release, but you can download from the PR over here (the Binaries.zip file) to see if that resolves your issue.
Thanks for helping, should i use a this version? ESPEasy_normal_ESP8266_4M1M?
The wiring is 10cm length. Connected to D0 and D1

What new is, D9 and D10 are TX and RX, but i can't select them. Should i also use another pin?

The ESPEasy_normal_ESP8266_4M1M (fix plugin) version gives a 911920: RFID : reset bits: 14

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#10 Post by Ath » 01 Dec 2021, 21:27

Are you sure you haven't connected some wires the wrong way up? What GPIO's have you connected now, and what is configured on your Hardware page?
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#11 Post by marktn » 01 Dec 2021, 21:35

Ath wrote: 01 Dec 2021, 21:27 Are you sure you haven't connected some wires the wrong way up? What GPIO's have you connected now, and what is configured on your Hardware page?
I have checked the wires, connected to D0 and D1.
There is a reaction, in the log. 1459921: RFID : reset bits: 23

Attached some screenshots.
Attachments
firefox_2021-12-01_21-33-01.jpg
firefox_2021-12-01_21-33-01.jpg (138.63 KiB) Viewed 11596 times
firefox_2021-12-01_21-32-45.jpg
firefox_2021-12-01_21-32-45.jpg (114.05 KiB) Viewed 11596 times
firefox_2021-12-01_21-32-25.jpg
firefox_2021-12-01_21-32-25.jpg (123.78 KiB) Viewed 11596 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#12 Post by Ath » 01 Dec 2021, 21:50

I think GPIO-16/D0 should better not be used unless no other pin is available. You can use GPIO-5/D1 and GPIO-4/D2, and it won't hurt to use 10kOhm pull-up resistors on these pins to define the levels properly.

This page is quite helpful in selecting GPIO pins: https://randomnerdtutorials.com/esp8266 ... nce-gpios/
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#13 Post by marktn » 01 Dec 2021, 21:59

Ath wrote: 01 Dec 2021, 21:50 I think GPIO-16/D0 should better not be used unless no other pin is available. You can use GPIO-5/D1 and GPIO-4/D2, and it won't hurt to use 10kOhm pull-up resistors on these pins to define the levels properly.

This page is quite helpful in selecting GPIO pins: https://randomnerdtutorials.com/esp8266 ... nce-gpios/
I have changed the pins, that gives the same result. How to connect the 10kOhm pull-up resistors, i don not have experience with that.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#14 Post by Ath » 01 Dec 2021, 22:15

A pull-up resistor is connected from VCC (usually 3.3V) to the input pin of the ESP, like this: https://learn.sparkfun.com/tutorials/pu ... istors/all
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#15 Post by marktn » 03 Dec 2021, 18:53

Ath wrote: 01 Dec 2021, 22:15 A pull-up resistor is connected from VCC (usually 3.3V) to the input pin of the ESP, like this: https://learn.sparkfun.com/tutorials/pu ... istors/all
Problem stays the same.
I have double checked the cables and resistor. It reads something, but it says reset bits.

Version, ESP_Easy_mega_20211120_normal_ESP8266_4M1M

Code: Select all

   91485: RFID : reset bits: 9
92041: WD   : Uptime 2 ConnectFailures 0 FreeMem 16080 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
100485: RFID : reset bits: 11
109485: RFID : reset bits: 2
117485: RFID : reset bits: 1
122040: WD   : Uptime 2 ConnectFailures 0 FreeMem 15800 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
126484: RFID : reset bits: 7
134485: RFID : reset bits: 1
    

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#16 Post by Ath » 03 Dec 2021, 19:19

Silly question perhaps, but you have connected both D0 and D1 of the box to the ESP? And added a separate pull-up resistor to both input pins?
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#17 Post by marktn » 03 Dec 2021, 20:12

Ath wrote: 03 Dec 2021, 19:19 Silly question perhaps, but you have connected both D0 and D1 of the box to the ESP? And added a separate pull-up resistor to both input pins?
Yes, on both. I have used the GPIO-5/D1 and GPIO-4/D2 as you suggested.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#18 Post by Ath » 03 Dec 2021, 20:55

I have ordered the reader you linked to in the first message, but that will take some time to arrive from China. When it arrives, I'll be able to test this Wiegand plugin myself, currently it feels somewhat like sailing in the dark, blind-folded, with one hand chained on my back, trying to control my surfboard...
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#19 Post by marktn » 03 Dec 2021, 21:08

Ath wrote: 03 Dec 2021, 20:55 I have ordered the reader you linked to in the first message, but that will take some time to arrive from China. When it arrives, I'll be able to test this Wiegand plugin myself, currently it feels somewhat like sailing in the dark, blind-folded, with one hand chained on my back, trying to control my surfboard...
Thanks!! No problem to wait.

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#20 Post by marktn » 28 Mar 2023, 20:54

Ath wrote: 03 Dec 2021, 20:55 I have ordered the reader you linked to in the first message, but that will take some time to arrive from China. When it arrives, I'll be able to test this Wiegand plugin myself, currently it feels somewhat like sailing in the dark, blind-folded, with one hand chained on my back, trying to control my surfboard...
Any update?

Regards
Mark

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#21 Post by Ath » 28 Mar 2023, 22:25

marktn wrote: 28 Mar 2023, 20:54 Any update?
I have done a couple of enhancements and fixes to P008, so please test a recent build of ESPEasy, or possibly even this still unmerged enhancement
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#22 Post by marktn » 28 Mar 2023, 22:32

Thanks, I will do that! I will let you now how it worked out.

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#23 Post by marktn » 01 Apr 2023, 17:53

Ath wrote: 28 Mar 2023, 22:25
marktn wrote: 28 Mar 2023, 20:54 Any update?
I have done a couple of enhancements and fixes to P008, so please test a recent build of ESPEasy, or possibly even this still unmerged enhancement
Hi,
Still the same,
1051540: RFID : reset bits: 12
1060540: RFID : reset bits: 31

Version : 20230306 - Mega
The other version, i don't understand what do you mean?

Did you test it with the same hardware?

Or do you suggest other hardware/keypad?

Regards,
Mark

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#24 Post by Ath » 01 Apr 2023, 19:42

marktn wrote: 01 Apr 2023, 17:53
I have done a couple of enhancements and fixes to P008, so please test a recent build of ESPEasy, or possibly even this still unmerged enhancement
Version : 20230306 - Mega
The other version, i don't understand what do you mean?
From the Actions run you can download the build (either get the zip for ESP32 or ESP8266, whatever your ESP is), though you will need a (free) Github account, and logged in from your browser, to be able to download the files.
Then extract the desired .bin file and update your ESP for testing.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#25 Post by Ath » 01 Apr 2023, 19:44

marktn wrote: 01 Apr 2023, 17:53 Did you test it with the same hardware?

Or do you suggest other hardware/keypad?
I have ordered exactly that unit and tested with it, but that was some time ago, and don't remember the exact details, other than it working, AFAIR.
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#26 Post by marktn » 01 Apr 2023, 20:03

Ath wrote: 01 Apr 2023, 19:44
marktn wrote: 01 Apr 2023, 17:53 Did you test it with the same hardware?

Or do you suggest other hardware/keypad?
I have ordered exactly that unit and tested with it, but that was some time ago, and don't remember the exact details, other than it working, AFAIR.
Okay. Strange.. I will look for another solution. Looks like this is not going to work.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#27 Post by Ath » 01 Apr 2023, 21:04

I'm pretty sure I used a level converter to bring down the 5V used by the keypad to 3.3V, not sure if you also used one, and also used quite short wiring (wiring included with the unit), that might also make a difference in the receiving signal quality.
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#28 Post by marktn » 01 Apr 2023, 21:21

Ath wrote: 01 Apr 2023, 21:04 I'm pretty sure I used a level converter to bring down the 5V used by the keypad to 3.3V, not sure if you also used one, and also used quite short wiring (wiring included with the unit), that might also make a difference in the receiving signal quality.
The keypad itself is 12 volt. Separate powered.

You mean the d0 and d1 of the keypad is 5volt, and should be 3,3v ?
Attachments
Screenshot_20230401_212022_AliExpress.jpg
Screenshot_20230401_212022_AliExpress.jpg (79.11 KiB) Viewed 4573 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#29 Post by Ath » 01 Apr 2023, 21:37

I think I powered it at 5V, but would have to re-connect as I shelved it some months ago.
Will take time (again) as I'm starting in a new job this Monday, so not sure how much time I'll have available, coming weeks.
/Ton (PayPal.me)

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#30 Post by marktn » 01 Apr 2023, 21:48

Thanks. No problem.

seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

Re: Wiegand keypad

#31 Post by seersucker » 09 May 2023, 21:01

marktn wrote: 01 Apr 2023, 21:21 You mean the d0 and d1 of the keypad is 5volt, and should be 3,3v ?
I just bought a couple of these for simple door openers, so stuck a scope on those outputs.
The signals are TTL (5V) inverted logic. You need to knock them down to 3.3 volts either using level converters or resistive dividers.

marktn
Normal user
Posts: 62
Joined: 06 Nov 2015, 19:43

Re: Wiegand keypad

#32 Post by marktn » 09 May 2023, 22:39

Thanks! Will order and test that.

seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

Re: Wiegand keypad

#33 Post by seersucker » 13 May 2023, 00:08

Putting my money where my mouth is:
.
Wiegand.png
Wiegand.png (16.75 KiB) Viewed 4172 times
.
I decided to test this, so hooked up a Wemos D1 using resistive dividers (2K2/3K3) on the data lines, and it worked, reading tag IDs correctly.
.
Another divider was used to scale down the relay switched 12V output, and this was connected to GPIO12 for future use.
.
wiegand2.jpg
wiegand2.jpg (68.46 KiB) Viewed 4172 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#34 Post by Ath » 13 May 2023, 10:37

That backward compatibility mode checkbox is supposed to be turned off, as the plugin used to have the GPIO pins configured incorrectly before, resulting in totally different card ID's reported. Please verify if the reported numbers match with your RFID cards for easier administration (so ESPEasy reports the actual tag number instead of something completely different). If it works correctly with this option enabled, that's also just fine :lol:
/Ton (PayPal.me)

seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

Re: Wiegand keypad

#35 Post by seersucker » 13 May 2023, 14:27

Ath wrote: 13 May 2023, 10:37 Please verify if the reported numbers match with your RFID cards
Checked 9 key fobs and 10 cards, they all consistently read with the correct values.

Will keep you posted if and when I turn this effort into a completed project.

seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

Re: Wiegand keypad

#36 Post by seersucker » 26 May 2023, 02:11

RFID2.jpg
RFID2.jpg (46.67 KiB) Viewed 4010 times
This is what ended up getting built, with a Wemos D1 piggybacked to the rear of the reader. I used the Wemos because it runs on 12V like the Reader.
On the other side of the wall is the PSU, which includes a 12v 1.2 Ah battery for backup and a big power transistor to energize a door strike.
The small board under the Wemos houses the TTL-CMOS scaling resistors and the through-wall connections.

Haven't worked out what to use it for within esp-easy/Domoticz yet, but otherwise its working.

seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

Re: Wiegand keypad

#37 Post by seersucker » 18 Jun 2023, 18:57

Schematic of a second working device, this time using an esp-32.
tcad3a.jpg
tcad3a.jpg (122.43 KiB) Viewed 3869 times
.
esp_easy_rfid_1.png
esp_easy_rfid_1.png (21.13 KiB) Viewed 3869 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wiegand keypad

#38 Post by Ath » 18 Jun 2023, 19:47

Thanks for sharing :)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests