v3 of VHS door control is the first to be used at 270 E 1st Ave
There are several components the access reader, the lock control and the RPi based control.
The lock control and monitoring is done by an Arduino with opto-isolated relays attached. The schematic is shown below. The lock handle is engaged by the existing bidirectional motor. When not energized the relays pass control through to the motor from the keypad operated controller built in to the lock. Each relay drives the motor in a different direction, there is no limit switch, the control is time based. To allow someone to open or close the door, the lock is engaged for a period of time and then disengaged. The relay optoisolators are connected to P2 and P3, not P1 and P2 as shown in the schematic.
An additional optoisolator connected to P4 is used to provide feedback on the position of the door bolt, this is used for logging purposes only.
An Arduino is used to decode the wiegard protocol from the rfid reader and report it as a string to the RPi over a serial port.
The access reader is connected the RPi via USB serial converter and is controlled/monitoring via ascii strings over the serial port.