Skip to content

HJLeslye/Power-Window-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automotive Power Window Control System (FSM)

Finite State Machine–Based Safety-Critical Simulator in C


Automotive Power Window FSM

ABOUT

This project is a functional simulation of an automotive power window system, implemented in C and structured around a Finite State Machine (FSM) architecture. The design emphasizes deterministic behavior, safety compliance, and clear state transitions, which are critical characteristics of automotive embedded systems.

Key automotive concepts such as anti-pinch protection, child lock functionality, boundary validation, and event logging are implemented to reflect industry-standard power window controllers (e.g., FMVSS 118 safety principles). Although the system runs as a console application, the logic is directly transferable to microcontroller-based environments.


INSTALATTION AND EXECUTION

REQUIREMENTS

  1. GCC compiler

  2. Windows, Linux, or macOS

STEPS

  1. Clone the repository

    git clone https://github.com/hdezj-leslye/power-window-simulator.git
    cd power-window-simulator
  2. Compile

    gcc main.c -o window_simr
  3. Run

    ./window_sim

KNOWN ISSUES AND LIMITATIONS

  • This is a software-only simulation; no real sensors or motors are interfaced.
  • Timing behavior is simplified and does not use real-time interrupts.
  • Obstacle detection is manually simulated rather than sensor-driven.
  • Designed for single-window control (scaling to multiple windows is not yet implemented).
  • LICENSE

    Distributed under the Unlicense License. See LICENSE for more information.

    CONTACT

    About

    C-based mechatronic door control system simulation with Anti-Pinch safety protocol and error logging.

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors

    Languages