ECE 551 Final Project Description, Dec 1995
System Designers:
System Features
- 1) The key "k" from the keyboard is used to control the acceleration
of the vehicle.
- 2) The key "j" from the keyboard is used to control the deceleration
of the vehicle.
- 3) The key "d" from the keyboard is used to decrease the distance
between the vehicle and the obstacle behind the vehicle. This
feature is simulating the back obstacle sensor.
- 4) The key "f" from the keyboard is used to increase the distance
between the vehicle and the obstacle in front of the vehicle.
This feature is simulating the front obstacle sensor.
- 5) The key "v" from the keyboard is used to decrease the distance
between the vehicle and the obstacle behind the vehicle. This
feature is simulating the back obstacle sensor.
- 6) The key "b" from the keyboard is used to decrease the distance
between the vehicle and the obstacle in front of the vehicle.
This feature is simulating the front obstacle sensor.
- 7) Automatically decelerates the vehicle when the front-sensor
detects obstacle within the pre-defined safty distance in front
of the vehicle.
- 8) Automatically turns on the emergency light when the back sensor
detects obstacles approaching the vehicle within the pre-defined
safty distance behind the vehicle. And also allow the vehicle to
increase velocity if there is no obstacle in front of the vehicle
within the safty distance.
- 9) The "Space Bar" from the keyboard is used to control the brake.
Note that this break will cause a sudden slow down and the vehicle
will eventually stops if no acceleration is performed before the
vehicle stops.
- 10) The speedometer is displayed on the screen and this value is
updated every time interval.
- 11) The distance between the vehicle and the back obstacle is displayed
and updated on the screen.
- 12) The distance between the vehicle and the fornt obstacle is displayed
and updated on the screen.
- 12) When the accelerating and decelerating key is released, the vehicle
contineous to travel at the last calculated speed. In other words,
the vehicle will be travelling at a constant velocity and the
speedometer on the screen will not change.
Inplemetation Descriptions
- 1) When the accelerating key is pressed, the actual acceleration is calculated according to the amount of time the accelerating key has been pressed..
This is implemented using a loop. One loop indicated a certain amount of time.
In this case, one loop will occupies about 1 sec in real-time.
A register is used to keep track of the current speed. The loop will constantly check whether the key is been pressed. If it is, the speed register is increased and this information is stored by to the register and is printed on the screen.
- 2) When the decelerating key is pressed, the actual deceleration is calculated according to the amount of time the decelerating key has been pressed..
This is implemented using a loop. One loop indicated a certain amount of time.
In this case, one loop will occupies about 1 sec in real-time.
A register is used to keep track of the current speed. The loop will constantly check whether the key is been pressed. If it is, the speed register is decreased and this information is stored by to the register and is printed on the screen.
- 3) The key "v" and "b" from the keyboard are used to control and simulate the distance between the obstacle in front of the vehicle and the vehicle itself. A register is used to keep track of this distance. If the value of this register falls below t he safety distance, 16, in this project, the vehicle will automatically decelerates itself. The vehicle should decelerate itself until the distance between the vehicle and the obstacle increases above 16. Every time the distance falls below the safety distance, the speed register is decreased by one and the distance is increased by one.
- 4) The key "d" and "f" from the key board is used to control and simulate the back sensor. "d" key is used to increase the distance between the obstacle behind the vehicle and the vehicle itself. "f" key is used to increase the distance between the obstacle behind the vehicle and the vehicle itself. When the sensor detects an obstacle approaches the car from behind, and the sensor indicates the distance to be within the safety limit, 16, in this case, the LED on the PIC system board will lead on.