Skip to content

BinaryQuBit/Elevator-Emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation







The objective of this project is to develop a functional elevator emulator using the STM32F103RB microcontroller, leveraging RTOS on Keil uVision5 for efficient task management. The emulator will interface with a serial connection through PuTTY, visually representing the operation of a five-floor elevator system. It will accurately display time elapsed, current floor number, and operational status. The emulator will also respond to a comprehensive set of commands including up, down, select floor, open, close, emergency, and maintenance, providing a realistic simulation of elevator operations for testing and educational purposes.



Elevators are a critical component in modern buildings, providing efficient vertical transportation for people and goods. Understanding the control systems and software that manage elevator operations is essential for engineers and developers working in the field of embedded systems and automation.



  • Embedded Systems Engineers
  • Students and Educators
  • Developers and Programmers
  • Researchers
  • Hobbyists and DIY Enthusiasts
  • Industrial Automation Professionals


  • Real-Time Operating System (RTOS) Integration
  • Microcontroller Programming
  • Serial Communication and Interface
  • Command Processing and System State Management
  • User Interface and Visualization
  • Educational and Practical Applications

Assumptions:

  • The STM32F103RB microcontroller and its necessary peripherals are assumed to be correctly configured and operational
  • The RTOS is properly installed and configured on the Keil uVision5 development environment, with all required drivers and libraries integrated
  • Users are expected to have a basic understanding of microcontroller programming, RTOS, and serial communication
  • The serial connection between the microcontroller and PuTTY is assumed to be stable, with accurate data transmission and reception
  • The elevator's status, including time elapsed, current floor number, and operational status, is accurately displayed and updated in real-time on PuTTY

Constraints:

  • Limited processing power and memory of the STM32F103RB microcontroller may restrict task complexity and number
  • Requires a stable power supply to prevent unreliable operation or system resets
  • Dependent on Keil uVision5, which may have compatibility issues with certain libraries or hardware components
  • Text-based command interface through PuTTY can lead to human errors and limited user experience compared to graphical interfaces
  • RTOS must efficiently handle real-time tasks; any delays or scheduling issues can affect the emulator’s accuracy and responsiveness

👩‍💻 Languages

C C++

🚀 Development Tools & Environments

KEIL UVISION5 RTOS

⚙️ Hardware and Microcontroller Boards

STM


Connect Microcontroller to the Computer:

  • Connect the STM32F103RB microcontroller to your computer using a USB-to-Serial adapter or a USB cable

Clone the Project:

  • Clone the project repository
  • Open the cloned project in Keil uVision5

Flash the Project

  • Compile and flash the project onto the STM32F103RB microcontroller using Keil uVision5

Open PuTTY:

  • Launch PuTTY and configure a new serial connection with the appropriate COM port and baud rate settings (115200)

Connect and Enjoy:

  • Connect to the serial port via PuTTY and start interacting with the elevator emulator
  • Use the provided commands (up, down, select floor, open, close, emergency, maintenance) to control the elevator and monitor its status in real-time


  • Successful Serial Communication
  • Real-Time Status Display
  • Command Execution
  • Smooth Operation
  • Educational Insight


  • Feature Enhancements
  • User Interface Improvements
  • Error Handling and Safety Features
  • Performance Optimization
  • Documentation and Tutorials
  • Testing and Validation
  • Integration with Real Hardware