Reference no: EM132196835
Write a c program, using the Arduino's integrated development environment (IDE), use a distance sensor, a buzzer, a red LED, and a 4x4 keypad to simulate the Ford F-Series Forward Collision Warning System.
Simulate the sensor in the front of the car to detect the front side object distance.
When the sensor detects any object within the distance threshold, flash the red LED light and sound the alarm.
The warning system sensitivity is adjusted by the 4x4 keypad. The following safety distance values are reduced tremendously for classroom programming purposes.
oThe distance setting is enabled when the program starts. The sensitive setting is normal by default.
The ‘A' key - pressing the ‘A' key will change the collision warning system to the most sensitive setting. The system will alarm objects approximately within 1 meter (100 cm) or less.
The ‘B' key - pressing the ‘B' key will change the collision warning system to the normal sensitivity setting. The system will alarm objects approximately within 2 feet, 0.6 meter (60 cm), or less.
The ‘C' key - pressing the ‘C' key will change the collision warning system to the lowest sensitivity setting. The system will alarm objects approximately within 1 foot, 0.3 meter (30 cm), or less.
The ‘0' key - pressing the ‘0' key will disable the collision warning system. When the collision warning system is disabled, the system sensitivity can still be adjusted. However, adjusting the sensitivity will not enable the collision warning system.
The ‘1' key - pressing the ‘1' key will enable the collision warning system to it's most current sensitivity setting.