I have a project in planning that involves a few sensors and switches and relays to power magnetic locks and a relay that provides power to a motor. I wanted to run my overall plan past folks at AR to get advice. I think the project involves a microcontroller, 6 sensors, 4 magnetic locks, a 12VDC power supply, 12VDC relays (perhaps a single 4-channel relay module) for the magnetic locks, and one 120VAC relay for an electric hoist.
The application is basically safety for the operation of a freight lift. There are two positions for the lift, up and down. There are two sets of double doors, one at the lift's "up" position and one at the lift's "down" position. Each of the 4 doors will be monitored by sensors that indicate whether the door is closed. For these I'm planning on either using a push-button sensor in the door frame, but a magnetic proximity sensor would work. Two more sensors will indicate if the lift is in the "up" or "down" positions. I'm thinking some kind of physical switch, but again a magnetic proximity sensor might work -- I haven't quite figured this out yet. Magnetic locks will prevent the doors from opening when the lift is not at the same position as the door (e.g. "up" doors only unlock when lift is in "up" position).
The logic for the project is something like this:
1. If lift_up then cut power to up_lock_1 and up_lock_2. Else supply power to up_lock_1 and up_lock_2.
2. If lift_down then cut power to down_lock_1 and down_lock_2. Else supply power to down_lock_1 and down_lock_2.
3. If up_door_1_closed AND up_door_2_closed AND down_door_1_closed AND down_door_2_closed then supply power to coil on motor relay. Else cut power to coil on motor relay. Note that this doesn't actually cause the motor to move, just allows the motor to be activated by a separate 2-button controller.
In combination these rules only allow the lift to move when all the doors are closed and prevent the doors at each level from opening when the lift is not present at that level.
I might also add a few status LEDs to let the operator know whether the system is detecting the doors closed or the lift at up or down position.
Here's a link to the magnetic locks I am considering using:
http://www.amazon.com/dp/B00GPB4ETGSince they use 0.32A each, it seems like a 12VDC 2A power supply would be more than sufficient to power all 4 of these locks?
I'd welcome advice on what microcontroller and multi-channel 12VDC relay module to use. I think I'd use 3 channels on the relay module: 1 for the upper door locks, 1 for the lower door locks, and 1 to activate the coil on the motor relay. A lot of the relay modules I've seen require 12V coil voltage, so it doesn't seem like those could be driven directly from GPIO pins on a microcontroller that are 3.3V or 5V.
What else should I watch out for / am I missing?
Nathan