Page 1 of 1

AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 14:48
by Naesstrom
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 6682 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 6680 times

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 15:44
by grovkillen
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

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 16:05
by Naesstrom
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 6669 times

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 16:06
by grovkillen
You need common ground for the logics to work.

Re: AD2000-M RFID Keypad to ESPEasy?

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

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 16:10
by grovkillen
All right, then it should work. :)

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 16:13
by grovkillen
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.

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 13 Jul 2018, 23:59
by Naesstrom
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?

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 14 Jul 2018, 07:59
by grovkillen
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.

Re: AD2000-M RFID Keypad to ESPEasy?

Posted: 14 Jul 2018, 08:06
by grovkillen
But you should possibly look at the core problem, why is the door bell letting current pass through?