AD2000-M RFID Keypad to ESPEasy?
Moderators: grovkillen, Stuntteam, TD-er
AD2000-M RFID Keypad to ESPEasy?
So I have a AD2000-M'ish RFID keypad connected outside my door, on the inside I have a setup that looks like this:
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?
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?
- Attachments
-
- 0747_001.jpg (937.1 KiB) Viewed 6742 times
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AD2000-M RFID Keypad to ESPEasy?
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: AD2000-M RFID Keypad to ESPEasy?
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?
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?
Last edited by Naesstrom on 13 Jul 2018, 16:08, edited 1 time in total.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AD2000-M RFID Keypad to ESPEasy?
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: AD2000-M RFID Keypad to ESPEasy?
they do share that through the powershield tough?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AD2000-M RFID Keypad to ESPEasy?
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AD2000-M RFID Keypad to ESPEasy?
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: AD2000-M RFID Keypad to ESPEasy?
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?
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?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AD2000-M RFID Keypad to ESPEasy?
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.
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AD2000-M RFID Keypad to ESPEasy?
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: No registered users and 43 guests