
Digital Electronics
Design and Implementation of a 4-Floor Elevator Controller Using Finite State Machine (FSM)
Abstract:
This project focuses on designing a four-floor elevator controller using a Finite State Machine (FSM). The controller processes floor requests, determines the elevator's movement direction, and manages door operations. It uses sequential logic, state registers, and control signals to coordinate elevator movement between the ground floor and the third floor. The design demonstrates FSM-based automation and digital controller implementation.
Project Description:
The project develops an FSM-based elevator controller for a four-floor building consisting of floors F0, F1, F2, and F3.
The system accepts floor requests through push buttons or digital inputs. The controller determines whether the elevator should move upward or downward based on the current floor and requested destination.
The design uses five main operating states:
- S0 – Idle: Elevator is stationary with doors closed.
- S1 – Move Up: Elevator moves toward a higher requested floor.
- S2 – Move Down: Elevator moves toward a lower requested floor.
- S3 – Door Open: Elevator stops and opens the doors at the requested floor.
- S4 – Door Close: Elevator closes the doors before returning to the idle or movement state.
The controller generates UP, DOWN, DOOR OPEN, and DOOR CLOSE signals. A floor indicator can display the elevator's current position.
Working Principle:
1. The controller initializes in the Idle state after reset.
2. The user selects a destination using one of the four floor-request buttons.
3. The FSM compares the requested floor with the current floor.
4. If the destination is higher, the controller activates the UP signal.
5. If the destination is lower, the controller activates the DOWN signal.
6. When the elevator reaches the requested floor, movement stops.
7. The controller enters the Door Open state and activates the door-opening output.
8. After the configured waiting time, the controller enters the Door Close state.
9. Once the doors close, the controller returns to Idle or processes another pending request.
Notes:
- Use a clearly defined FSM with state registers, next-state logic, and output logic.
- Represent the four floors using suitable binary floor-position encoding.
- Use floor-request buttons or digital inputs to select destinations.
- A timer or counter can control door-open duration and movement intervals.
- Use D flip-flops for state storage.
- Use suitable motor-driver circuits for controlling elevator movement in a physical prototype.
- Include limit switches or position sensors to detect floor positions.
- Ensure the controller prevents conflicting UP and DOWN commands.
- Implement door interlocks so the elevator cannot move while doors are open.
- Test requests from every floor, including upward and downward movement.
- Simulation tools include Logisim, CircuitVerse, Proteus, ModelSim, and Vivado.
- Optional upgrades include multiple floor requests, request prioritization, overload detection, emergency stop, and seven-segment floor display.
- This is an educational prototype. Real passenger elevators require certified safety controllers, redundant protection, mechanical safeguards, and professional engineering validation.
Expected Outcome:
The expected outcome is a functional FSM-based elevator controller capable of accepting floor requests, determining movement direction, stopping at the selected floor, and controlling door operations. It demonstrates sequential logic, state transitions, timing control, digital output generation, and automation concepts. The project provides practical knowledge of digital controllers used in elevators, automated transportation systems, and industrial control applications.
All Projects




