AD2000-M RFID Keypad to ESPEasy?

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
Naesstrom
Normal user
Posts: 21
Joined: 02 Jun 2017, 21:02

AD2000-M RFID Keypad to ESPEasy?

#1 Post by Naesstrom » 13 Jul 2018, 14:48

So I have a AD2000-M'ish RFID keypad connected outside my door, on the inside I have a setup that looks like this:
DSC_0115 (1).JPG
DSC_0115 (1).JPG (1.42 MiB) Viewed 530 times
The relay controlls a magnetic lock, I also have a switch setup so that if somone presses the doorbell I get a mqtt message and an announce in the speakers that someones at the door...

I want to incorporate my rfid reader to into this and saw that ESPEasy has support for Wiegand26, the top 4 pins on my keypad is gnd-rx-tx-5v so I'm guessing that's the WG26 interface... can I just connect rx and tx to the correct pins on my Wemos and add it as a device? Based on tag value in the mqtt stream I can just unlock the magnet?
0747_001.jpg
0747_001.jpg (937.1 KiB) Viewed 528 times
Attachments
0747_001.jpg
0747_001.jpg (937.1 KiB) Viewed 529 times

User avatar
grovkillen
Normal user
Posts: 2356
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: AD2000-M RFID Keypad to ESPEasy?

#2 Post by grovkillen » 13 Jul 2018, 15:44

Yes should be that straight forward. You might want to check the voltage levels on those logical ports. You might need logical converter to get the levels down to 3.3V since you state that the power pin gives 5V
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Naesstrom
Normal user
Posts: 21
Joined: 02 Jun 2017, 21:02

Re: AD2000-M RFID Keypad to ESPEasy?

#3 Post by Naesstrom » 13 Jul 2018, 16:05

yeah I measured the RX/TX ports and they were really fine, I should be able to just skip the gnd and 5V pins on the keypad? it's powered by 12V from my shield and so is the nano

oh and should I use the rx/tx pins on the wemos or some other D pins and select them in the device options? Just noticed that I can't select GPIO-1 and GPIO-3 when setting it up?
esp8266-wemos-d1-mini-pinout.png
esp8266-wemos-d1-mini-pinout.png (616.67 KiB) Viewed 517 times
Last edited by Naesstrom on 13 Jul 2018, 16:08, edited 1 time in total.

User avatar
grovkillen
Normal user
Posts: 2356
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: AD2000-M RFID Keypad to ESPEasy?

#4 Post by grovkillen » 13 Jul 2018, 16:06

You need common ground for the logics to work.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Naesstrom
Normal user
Posts: 21
Joined: 02 Jun 2017, 21:02

Re: AD2000-M RFID Keypad to ESPEasy?

#5 Post by Naesstrom » 13 Jul 2018, 16:09

grovkillen wrote:
13 Jul 2018, 16:06
You need common ground for the logics to work.
they do share that through the powershield tough?

User avatar
grovkillen
Normal user
Posts: 2356
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: AD2000-M RFID Keypad to ESPEasy?

#6 Post by grovkillen » 13 Jul 2018, 16:10

All right, then it should work. :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Normal user
Posts: 2356
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: AD2000-M RFID Keypad to ESPEasy?

#7 Post by grovkillen » 13 Jul 2018, 16:13

And yes, use other pins. The dedicated RX/TX are by default only used for flashing and communications with PC. But if the software based serial is causing problems then you can override the default by disabling hardware serial.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Naesstrom
Normal user
Posts: 21
Joined: 02 Jun 2017, 21:02

Re: AD2000-M RFID Keypad to ESPEasy?

#8 Post by Naesstrom » 13 Jul 2018, 23:59

Thanks @Grovkillen!

Ran into another problem tonight tough, it randomly thinks my doorbell is pressed and then my speakers starts shouting "there's someone at the door"...
Is it possible with rules to make some kind of "de bounce" filter, ie. button has to be pressed for 20ms before actually sending a "1" to the controller?

User avatar
grovkillen
Normal user
Posts: 2356
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: AD2000-M RFID Keypad to ESPEasy?

#9 Post by grovkillen » 14 Jul 2018, 07:59

Yes use rules for that. Here's one example: https://www.letscontrolit.com/wiki/inde ... long_press

But I guess 20mS is too short. So a debounce time would be ideal but it's not possible with current code.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Normal user
Posts: 2356
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: AD2000-M RFID Keypad to ESPEasy?

#10 Post by grovkillen » 14 Jul 2018, 08:06

But you should possibly look at the core problem, why is the door bell letting current pass through?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest