EE200_cruise_control

EE200_cruise_control - EE 200 Lab 3 State Machines and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Last Revised: 8/14/2008 1 EE 200 Lab 3 - State Machines and Control Systems 1 Introduction In this lab you will create a state machine for a simple cruise control system for an automobile. You will be provided a description of the desired operation of the cruise control operation, its inputs and outputs. However, it will be up to your creative problem solving skills to identify necessary states and transition (update) functions. Your cruise control system will be tested with a provided state machine that will be generate input stimulus and simulate the automobiles speed as it travels. 2 What you will learn This lab will give you practice designing a state machine and help you learn how to simulate the operation of a state machine in software (via Matlab functions and scripts). You will and also learn to debug errors that you may have in your design and explore the operation of randomized (non-deterministic) state machines. 3 Background Information and Notes Cruise Control System : The cruise control system described here is somewhat simplified yet typical of a modern automobile. The inputs to your system are the following: Speed (integer representing the current speed of the car), Start/Resume Button (1 or 0), Coast/Set (1 or 0), and BrakePedal (1 or 0 indicating if the driver is depressing the brake pedal). In addition to these overall inputs, you will need to maintain not only the current state of your state machine, but the CruiseSpeed which is an integer indicating what speed your cruise control system is attempting to maintain. The outputs of your system are two signals: Accel (1 or 0 indicating that the car should accelerate) or Brake (1 or 0 indicating that the car should brake). Your cruise control system should operate as follows. Unless otherwise specified your outputs Accel and Brake should be 0 (off) leaving the car sensitive to manual control of the accelerator and brake pedals. The system should initially be off or idle until the Start/Resume button is pressed. Once pressed the cruise control system will save the current speed of the car and attempt to maintain that speed by generating the appropriate Accel and Brake outputs. As the speed is maintained a
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 5

EE200_cruise_control - EE 200 Lab 3 State Machines and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online