paul3461000:
Westi is correct about one aspect, call a locksmith,security system company or a door installer.
I personally would not use the analog port to trigger the door. The IPO has 2 relay points (w/common ground) that I would use. I have put in a great number of access control systems (some tied to security) and have learned some valuable lessons:
1) Select a locking mechanism that supports "continuous duty". There are locks that a truly designed to be momentary and will burn up if constant power is supplied (as in unlock continuously during the day and automatically lock at night).
2) Look at the amperage draw as it relates to the relay capacities of the IPO (in the PDFs on the support site). If the solenoid inside of the lock (or the mag lock relay) exhibits too much power to the IPO, you'll burn up the relay in the IPO. Some will utilize a different power source and add an additional relay to protect the IPO. Some doors have controllers which are isolated and should be safe for the IPO. Some actuate the solenoid directly and would probably overheat the IPO relay.
3) You must select whether you would like the lock "fail safe" or "fail secure". This essentially means that when power is removed, do you want the door to unlock allowing ingress/egress or stay locked. IMPORTANT NOTE: you may have to put a motion sensor over the door and/or a button to allow egress. Consult with your local fire department! Here in my area of the US, you must have 2 door overrides (especially if you're using a mag bar lock).
4) Use the relays in the IPO. That's what they are there for. If you want to be secure, remove the short codes for relay actuation and use Voicemail Pro to trip the relay for added security by assigning a PIN code to the action.
Now, this is not meant to scare, only educate. You can get this done for a pretty insignificant price and pretty easily. It's the intended use the relays and you open up a multitude of options. Such as, trip the door by CallerID, Code, Button on a phone, etc. You should be able to do schedules (tie the door lock into night mode for example), etc.
The IPO can control access control systems or even security systems. The choices are endless....
Drew