Question: Write an arduino code in order to make this car work: - P 1 . The car shall travel forward when there are no obstacles

Write an arduino code in order to make this car work:
- P1. The car shall travel forward when there are no obstacles within \(\sim \beta \) feet of its forward-travel direction.
- P2. The car shall display one or more glowing green LEDs when it is traveling forward and there are no obstacles within \(\sim 3\) feet of its forward-travel direction.
- P3. The car shall execute an avoidance maneuver so as to avoid collisions with obstacles within \(\sim 3\)' of its forward path.
- P4. The car shall light up a red "obstacle-detect" LED when obstacles (including walls, people, other cars) are detected within \(\sim 3\)' of its forward-travel direction and the car is executing a collision- avoidance maneuver.
- P5. The car shall be demonstrated according to the following plan: you will apply battery power to your car, and set it moving forward, heading toward an obstacle (such as a person, a wall, or another car) placed \(>6\)' away. A green forward motion indicator LED will be demonstrated. When the distance decreases to \(\sim 3\) the car shall detect the presence of the nearby obstacle, light up a red obstacle-detect LED and perform a collision-avoidance maneuver. After performing the maneuver, the car will turn off the obstacle-detect LED and resume forward motion in another direction. You need to demonstrate a minimum of 4 collision-avoiding maneuvers during the required demo.
Write an arduino code in order to make this car

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!