Elevator Instructions- yardie

Vocabulary for Elevator

  • Blocked/ Unblocked – passengers or objects detected in the doorway or not
  • Call button– the down or up arrow button on the outside of the elevator door on each of the 4 floors
  • Task– the process of receiving and releasing a passenger to their desired destination floor level
  • Elevate– go upward
  • Descend– go downward
  • Pressed– a button is selected

Instructions for Elevator

  • Firstly, know the first level floor as the home floor for returning to after task are completed.

  • Know what call buttons correspond to what floors, there are 4 floors in total.

  • There are also up and down arrow buttons for passengers to press when they’re calling the elevator. Based on the pressed arrow being up or down, tells what direction they’d like to go.

  • Go up to the floor that is being pressed and open doors for 15 seconds, if doors are not blocked after those 15 seconds, proceed to close doors fully.

  • Respond to the selected number that the passenger presses. They can choose between numbers 1-4. Then elevate or descend to the corresponding number to floor that they have selected.

  • Once arrived at the floor open doors for 15 seconds to allow passengers to leave, once 15 seconds is complete close doors if the area is unblocked.

  • Be sure to let on passengers that call the elevator by pressing a down or up arrow even when completing a task called by another passenger.

  • After bringing all passengers to their destination, and there are no call buttons pressed return to ground floor level after 2 minutes of no activity.

  • Wait for process to repeat when call buttons are pressed.

Posted in Elevator Instructions, Yardie | 1 Comment

Elevator Instructions—Rosegold3

  • when notified after the outside button is pushed, begin to lower or raise to that specific level.
  • once at that level open the doors and allow 15 seconds to stay open to allow any movement to enter
  • after no more movement is detected or when the 15 seconds is up, close the doors
  • begin going to the level closest to you depending on what designated floor numbers are pressed inside.
  • continue moving to those numbers in order
  • when a button outside is activated while letting people off, go to that floor in the midst of travels
  • when people get off the elevator allow the doors to stay open for 15 seconds or until no more movement is detected before closing

Posted in Elevator Instructions, RoseGold3 | Leave a comment

Elevator Instructions – Pinkduck

  • When a passenger presses the summons button, have the button light up in response.
  • If a passenger presses the second floor destination button and decides to change their mind and presses the fourth floor destination button, instead open the door at the second floor. Then, move onto the fourth floor so the passenger can get off.
  • If no passenger gets off on a floor, close doors after six seconds have passed.
  • If the fire alarm goes off, return to ground floor.
  • If someone pressed the summons button to go down, wait until all passengers have gone up before moving down.
  • If a passenger presses the emergency stop button, immediately disregard past instructions and stop.
  • If a passenger presses the button to close the doors, wait three seconds before closing the doors.
  • Wait until you get to selected destination to open the doors.
  • Stop when no one is on board and no requests are made.
  • If there are multiple passengers aboard, follow the order of which the destination buttons were clicked.

Posted in Elevator Instructions, PinkDuck | 1 Comment

Elevator Instructions—Softball1321

  • Remain Inactive until the Indication Button is pressed by a user.
  • The Indication Button is either an Up Arrow or Down Arrow.
  • Arrive to the floor where the user pressed the Indication Button. Wait three seconds and open the doors, allowing the user to enter.
  • If the commuter does not enter after five seconds, close the doors. If called to another floor, arrive to it. If not called to another floor, stay in place with the doors shut.
  • When the commuter enters the elevator, shut the doors securely after 3 seconds.
  • In the elevator, there are a set of buttons indicating the floors of the building. When the commuter presses a number signifying what floor level they want to go to, report to the floor immediately.
  • Once arrived to the floor, wait three seconds, allowing the user to either stay or leave.
  • If the user decides to stay in the elevator, without having any floors selected to attend, shut the doors securely and Remain Inactive. Wait for an Indication Button to be used.
  • When the commuter exits the elevator, shut the doors and Remain Inactive until the Indication Button is activated again.

Posted in Elevator Instructions, Softball1321 | 1 Comment

My Hypothesis – ChefRat

How walking benefits us.

  • The relationship between walking and health.
  • How walking can affect the long term quality of life.
  • The inclusion of moderately paced walking has an influence reducing risk of chronic disease.
  • Moderate intensity walking can have a strong effect on risk of disease like obesity, heart disease, diabetes and it can also even increase total life span.
  • The definition of “moderate intensity “of walking can vary person to person, there are other activities performed that may be performed daily like strength training which could provide the same benefits that walking claims to have. So is walking uniquely effective or just another exercise that provides this?
  • Engaging in higher intensity walking 20 minutes, (every other day) may yield greater benefits than the traditional recommendation of daily walking. Opposing the conventional belief of high frequency is superior to higher intensity workloads for long term health benefits like reducing obesity, risk of heart disease and diabetes..

Posted in ChefRat, My Hypothesis | 1 Comment

Elevator Instructions- Taco491

There are 5 floors in this building in which people can push the elevator button. They can travel up and down the elevator. With this being said, the following is the instructions for the elevator to work.

1.When elevator is not in use for 20 seconds, return to floor 1.

2.When Summons Button is pressed, proceed to the corresponding floor.

3.Open the doors when arrived at destination.

4.Close doors after 8 seconds of no motion detected

5.If motion is detected while the doors are closing, reopen doors for 8 more seconds; repeat if necessary.

6.If moving “up”, disregard all “down” summons and proceed to the nearest floor above, in the queue.

7.If proceeding “down”, “ignore all “up” summons and proceed to the nearest floor below, in the queue.

8. If arrived at floor one when responding to all down summons, do not continue step 7. Go to latest summons received.

9.Upon reaching the destination, remove from summons queue.

10.Repeat steps 3-5, and then continue in the same direction until the higher floor in the queue has been reached. 

11.When number “1” button is pressed, go to Floor 1 if it follows the queue order.

12. When number “2” button is pressed, go to Floor 2 if it follows the queue order.

13. When number “3” button its pressed, go to Floor 3 if it follows the queue order.

14. When number “4” button its pressed, go to Floor 4 if it follows the queue order.

15.When number “5” button its pressed, go to Floor 5 if it follows the queue order.

16.If proceeding in an up direction, light up “up arrow” above each door frame in the hallway.

17.If proceeding in a down direction, light up “down arrow” above each door frame in the hallway.

18. When on Floor 1, light up a “1” above each door frame next to arrow.

19.When on Floor 2, light up a “2” above each door frame next to arrow.

20. When on Floor 3, light up a “3” above each door frame next to arrow.

21.When on Floor 4, light up a “4” above each door frame next to arrow.

22.When on Floor 5, light up a “5” above each door frame next to arrow.

23.Upon arrival of any destination make a bell sound “ding”.

24. Open door when “open door” button is pushed

25. Close door when”close door” button is pushed, unless motion is is detected

26.When “emergency” button is pressed, send signal to front desk asking for help.

Posted in Elevator Instructions, Taco491 | 2 Comments

Elevator Instructions—Who’sOnFirst?

  1. respond to the summons buttons by heading to the floor that the button was pushed on
  2. upon reaching the floor, wait until at a full stop before opening doors
  3. doors should remain open for 15 seconds before closing if no activity occurs. Activity includes anybody crossing the sensor line between the doors, or anyone pressing the open doors/closed doors buttons.
    • If the sensor is activated, the door should remain open before closing for 10 seconds from the last time the sensor was activated.
    • If the open door button is pressed the doors should remain open before closing for 10 seconds after the last time the button was pushed.
    • If the closed door button is pushed the doors should close unless interrupted by either the sensor being activated or the open door button being closed.
  4. once the doors have closed after collecting passengers, the elevator should proceed to the floor corresponding to the button that was pressed, stopping in order of the closest floors on its way in a certain direction.
    • if the elevator is on its way up it should only stop at floors along the way that have pressed the up button. Similarly it should only stop on its way down at floors that have pressed the down button.
    • once it has reached the topmost of the floors corresponding to the buttons that had been pressed, the elevator should then go to the floors that it might have passed on its way before.
  5. If the no buttons have been pressed for 15 minutes, the elevator should return to the ground floor until a button is pressed.

Posted in Elevator Instructions, Who'sOnFirst? | Leave a comment

Elevator Instructions—Bagel&Coffee

Before we start, there are some questions to ask. How many floors are there in this building? Is there only a single elevator such as in the Administration Building, or two elevators such as in the Finance Building? Are there pairs of elevators such as in hotels or casinos, where when one is leaving their parking garage, they enter an attached vestibule with pairs of elevators flanking both sides?

I could conceive of people smart enough to program an elevator to dynamic and automatically be able to work in whatever building it is installed into. I should mention that a dynamic program that needs no modification and figures everything out on its own, is probably above my abilities, especially in the case of a building with many elevators.

It was not against the rules of this assignment to study elevators in the wild, so I observed the behavior of the elevators in the Finance Building for 20 to 30 minutes while eating breakfast. I will be writing instructions based on their specific use-case and using their environment to fill in the environment for the questions I asked earlier. Four floors, two elevators, 3 Up-Buttons, 3 Down-Buttons.

Lastly there are some assumptions. Mechanically, the elevator is properly indexed, whereby it stops at specific intervals that align its floor with the building’s floor to be perfectly leveled (aka you won’t trip), and that at these intervals there is a sensor that can detect if there is an elevator at that sensor’s floor (This could be as easy as installing a laser, and when the laser is broken by the elevator passing though, the sensor will send a signal to a central control system, though I suspect that elevators are advance enough to not need the laser detection system from Mission Impossible 2). The sensors will hold a Boolean value of True or False. The elevator shaft will have a sensor at each floor that will register as True if the elevator is at that proper position in front of the sensor to unload its passengers and False if it does not detect an elevator. Then all of this is applied per elevator and elevator shaft.

Instructions

Start up (initialize software, hardware calibrates)

When in idle state, listen on all wires for summons via button presses.

*1st Floor Up Button pressed*

Get the value of the button pressed in.

Info returns as Up Button One. (Find which wire is hot.)

Add to Que Log. (In case buttons on multiple floors are hot, we need to make a first come first serve wait-line.)

Address Que Log in order of summons received. (In this case we will simply only have one item in que to read, which will be the summons to floor one)

(The next several steps below are to add to optimization, in this case reduce wait times by finding the elevator closest to your location, to then send to you.)

Run though Idle Elevator Array, get the location of which floor every idle elevator one is at. Store values in temporary At Floor Array.

Run though At Floor Array, determine the difference between the floor elevator one is at and the floor of the button press, determine the difference between the floor elevator two is at and the floor of the button press. Store the value of these differences in Array Difference. (This can yield positive or negative values depending if the elevator being evaluated is above or below the target floor.)

Perform a search of Array Difference and return the address of the cell with the lowest value as an absolute (remove negative values). Take note of the address of the lowest absolute value returned, and summon the elevator the same address in the Elevator Array

(Arrays can have their values or the subscript that points to the cell in an array where a value is held back to requesting lines of code. The key here is to line up all arrays so you can match values in meaningful ways. Example Elevator [two]’s current floor stored in Idle Elevator Array’s address [two]. At Floor Array’ address [two] stores where Elevator [two] is at. The difference for elevator [two] is stored in Difference Array at its address [two]. You can organize all arrays so that you can see relevant information about an elevator of the same “suffix” as a key.)

To the “winning elevator”, using your non absolute value as a guide, if you had a positive number in the address of the Difference Array, please ascend to the target floor of the summon. If your value was a negative value in the Difference Array, please descend to the target floor of the summon.

While an elevator is descending it receives the Descending Status attribute. Elevators are to read only the down button presses in the Que Log at each floor. If the floor they are at matches to a floor where a Down Button has been pressed, then stop at that floor, open doors, then proceed to normal operation.

While an elevator is ascending it receives the Ascending Status attribute. Elevators are to read only the Up button presses in the Que Log at each floor. If the floor they are at matches to a floor where an Up Button has been pressed, then stop at that floor, open doors, then proceed to normal operation.

If your value in Difference Array was 0 and elevator was idle from the start, skip ahead to opening your doors since you are idling at the correct floor already. (Chances are if this is the first summon of the day, after a restart, the elevators will already be at floor 1 by default and can skip steps to opening doors.)

When the elevator using a request via the Que Log arrives at the floor it was originally intended to, send message back to the que log, so that it may remove this request from the Que Log.

Open Door protocol

Open doors, pause for 10 seconds, close door.

Interruption

If interruption panel between doors is receives pressure re open doors, pause for 10 seconds, close door. Loop until doors close successfully.

Floor selected using internal Elevator buttons.

*The button for Fourth Floor was pressed*

When an internal button is pressed save this value into a variable known as Anchored Floor, evaluate whether the number of the button pressed has a higher or lower value than the floor the elevator is currently stationed at. If the floor selected has a higher value than the current floor the elevator is at, then use ascend. If the value of the floor selected is lower than the current floor, then use descend.

If multiple buttons to select floors have been pressed (those jerks that press every button in the elevator to ruin everyone else’s day or as a prank) then the internal Floor Que will come into use, whereby each floor the specific elevator needs to stop at will be logged (This log is not to be confused with the system wide Que Log which is in conversation with all elevators).

While en route to the Anchor Floor, inherit Ascending Status if ascending, and Descending Status if instead descending.

As before, the elevator will look at the Que Log on its way, stopping for appropriate passengers along the way to the Anchored floor (in this case ascending Up Button pressers we encounter while going up to the fourth floor); however, the elevator will additionally look at its own internal Floor Que for floor requests matching the floor it is at, and will stop at these floors and open its doors. When the doors close, remove the request from the internal Floor Que and the system wide Que log. (There may be a chance the elevator is full and someone can’t fit in, sorry my dude, you will have to press the up or down button again a get back into que. If your company is experiencing many traffic jams, try installing more elevators.).

Once the elevator has reached the Anchored Floor it will open it will stop and open its door, wait ten seconds, then close doors. With the strategy I am using with Anchor Floors, on the Elevators way up, it may have had opportunities to disgorge its passengers along the way (and removing request for summons from ques). The elevator will look at the next request in its Floor Que and assign that as its new Anchor Floor. It will follow all previous instructions until it has exhausted its floor que, at which point it becomes an Idle elevator and will go back to the beginning of these instructions.

(For example, passengers embark on an elevator at floor two. A businessman presses floor 4. Then a snot nose kid decided it’s funny to press all the buttons in, first pressing 1, then 2, then 3, then 4. The floors are logged in the order they are pressed: 4, 1, 2, 3. An elevator button can only be responsive one time, the kid pressing 4 again does nothing, the button will not be useful again until the 4th floor upon which it reactivates. The Elevator takes the first number in que 4, and heads up to that floor. It stops at 3 opens, and removes 3 from the que. The que now looks like 4,1, 2. The Elevator arrives at floor 4, the business man gets off, the que now looks like 1, 2. The elevator having achieved its goal of getting to the Anchored Floor, now looks at its internal que, and selects the next anchor floor, that being 1. The floor descends from the top floor and stops to open at 2. The que updates to 1. The elevator goes down to floor 1, the kid gets off and lives happily ever after. The elevator now returns to idle state.)

Optimization

To reduce wait times. Elevator one, after idling for 1 minute, returns to the ground floor. Elevator 2 after idle for 1 minute, does nothing. (If someone wants an elevator at floor 1, one of the most popular floors for new people to arrive, there will hopefully be one waiting for them already. Elevator 2 will on average be on floor 3, thus reducing wait times for popular floors people are already on such as 2 3 or 4. If elevator 1 and 2 was recalled when in idle state, than wait times for floors 1 and 2 would be low, but wait times for floors 3 and 4 would be high.)

Even with this system there still is some issues, for example having someone stand in the elevator door, would cause an infinite loop of opening and closing and effectively take the elevator out of commission, but there is not much, and elevator can do about that without its programmer going to jail. Additionally, I would need to run tests or simulations to see if the “logic” for two separate ques interfere with each other in unforeseen ways.

Posted in Bagel&Coffee, Elevator Instructions | 1 Comment

Elevator Instructions—loverofcatsandmatcha

Step 1: Remain on the ground floor, which serves as home base, until summoned.

Step 2: When summoned, immediately advance to the floor from which the summons originates. 

Step 3: If, while in the motion of going to the initial summons, there is a secondary summons from a lower level floor that is also going to be ascending, stop at that floor first.

Step 4: Upon arrival at the closest floor from which a summons was received, open doors for ten seconds. 

Step 5: If there is no movement over the automatic sensor, close doors. If there is motion detected, stay open for an additional ten seconds. 

Step 6: If the “close doors” button inside of the elevator is pressed, follow that command and close doors immediately, ignoring the previous instructions from Step 5.

Step 7: After closing the doors, continue ascent to the next highest floor from which a summons was received. 

Step 8: If, during the ascent to the higher floor, there is a summons to a lower floor, ignore that summons until the initial ascent has been completed.

Step 9: Upon arrival to the floor, repeat Steps 4-6. 

Step 10: After the ascent has been completed, begin descent. Stop at the floor that is closest that has sent a summons with the intention to go down, as indicated by the button that was pressed. For example, if a summons has been received from Floor 7 and 5, and the elevator is currently on Floor 9, stop at Floor 7 first, then Floor 5, since Floor 7 is closer. 

Step 11: Repeat Steps 4-6 on each floor that has sent a summons, while maintaining the previously stated order.

Step 12: If, during the descent to the lower floors, there is a summons to a higher floor, ignore that summons until initial descent has been finished. 

Step 13: Repeat Steps 4-6 at each floor until there are no more summons.

Step 14: When there are no more summons to complete, return to the ground floor until another summons is sent. 

Posted in Elevator Instructions, LoverOfCatsAndMatcha | 1 Comment

Elevator Instructions—ChaosLOL

There are 8 floors of the building in which people can travel up and down. If someone needs to use the elevator, they will press the button to call it to the first floor (home). The following plan for the elevator will happen once the button is pressed:

If the elevator is occupied:

  1. If there are people in the elevator, they must be sent to the floor they chose in the respective numerical order going down to home.
    1. Example: If someone got in the elevator on the 7th floor and wished to go to the 3rd floor, but someone else got on the 6th floor and wished to go to the 5th floor, the elevator would stop at the 5th floor first, and then go to the 3rd floor
  2. At each floor stop, the elevator will chime once before opening the doors, will wait 10 seconds, and chime once more before closing the doors again.
  3. For the elevator to close again, it must make sure every person and/or object has passed through the laser to make sure nothing is obstructing the doors.
  4. The elevator will repeat this process until it has reached home.

If the elevator is not occupied:

  1. If there aren’t people in the elevator, then it will arrive straight to home without making any stops.
  2. Steps 2-4 still apply to the elevator’s movements.
    1. Similar to going down if one gets on the elevator from home, and wishes to go to the 8th floor, yet someone else gets on at the 4th floor and wishes to go to the 7th floor, the elevator stops at the 7th floor first, then the 8th floor.
  3. If the elevator has not been occupied for 10 minutes, then it will automatically return to home.

Inside the elevator:

  1. The elevator is equipped with numbered buttons (1-8) that correspond to each floor in the building, a door open and door close button to close the doors manually, an assistance button that when pressed a call is sent to the front desk for help, and finally an emergency button that gets sent straight to the fire department in case elevator gets stuck or any other emergency that requires immediate attention.
    1. There are two sets of buttons, mirroring each other on either side of the elevator doors
  2. A sign is posted stating the maximum occupancy of the elevator should be no more than 10 people
    1. The elevator detects this with sensors that determine the weight inside of the elevator, if this weight limit is exceeded, then the elevator will not move.
  3. A speaker is on the roof of the elevator, in case anyone from the outside needs to get in contact with those riding the elevator, however, it will not play music and only authorized personnel should use the speaker.
Posted in ChaosLOL, Elevator Instructions | 1 Comment