1 / 5

Designing a Finite State Machine for Vehicle Cabin Temperature Control

This exercise involves creating a finite state machine (FSM) for a cabin temperature control system in a vehicle. It includes implementing a debounce FSM to manage lock and unlock states. The system will utilize three LEDs (green, red, blue) to indicate the control status based on temperature thresholds (TempHigh, TempNormalHigh, TempNormalLow, TempLow). At reset, all systems, including the heating and air conditioning, will be off. Based on temperature readings, the correct LED will illuminate and the relevant systems will be activated or deactivated accordingly.

dory
Download Presentation

Designing a Finite State Machine for Vehicle Cabin Temperature Control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Finite State MachinesExercises

  2. Debounce

  3. Debounce • Fill the table according the FSM for debounce

  4. Lock - Unlock • Codify the next SM in C:

  5. Cabin temperature • Make the state machine for the next feature: The feature controls temperature in the cabin of a vehicle. There are three LEDs which indicate the control state of the temperature system: a LED green, a LED red and a LED blue. At Reset, all the LEDs, the heating system and the air conditioner system are turned off. When the temperature is great than TempHigh, the air conditioner system and only the LED red are turned on. If the temperature is less than TempLow the heating system and only the LED blue are turned on. If the temperature is less than TempNormalHigh and great than TempNormalLow, heating system or air conditioner system are turned off and only the LED green is turned on. Take in count that: TempHigh > TempNormalHigh > TempNormalLow > TempLow

More Related