I worked a little on my elevator logic this morning and came up with the following microchip.
Starting at the top, I have a blue tag sensor attached to a NOT logic gate, which connects to the AND logic gate. The other thing connected to the AND logic gate is the grab switch for the “up button” in the elevator. The purple tag sensor is attached to a similar NOT, then AND switch for the “down button” in the elevator. The green tag sensor is used to stop at all floors in between.
To create the stopping location for the elevator, I placed a blue tag at the top floor, a purple tag at the bottom floor, and green tags at all floors in between.
Basically, the NOT gate is used to make sure that grabbing the up or down button will always work, unless the elevator is at the top or bottom floor, respectively.
The OR logic gate is connected to all three tag sensors so that no matter which sensor is activated, the elevator will stop.
All this work got me thinking of something another player asked in one of the forums, how do you make an elevator call button? Give me something to think about for improving on the design.
No comments:
Post a Comment