Question: need help with this lab not sure how to implement this Lab Project Description In this lab project, you have to write a program in


need help with this lab not sure how to implement this
Lab Project Description In this lab project, you have to write a program in C language for the Arduino microcontroller, that uses three DIP switches to provide input and a set of eight LED connected to the Arduino bard to act as a set of intelligent tail lights for a car. For this lab you will have to write a comprehensive report. Description The 8-LED' s will be connected to pins 2-9 and 3-DIP switches will be connected to pins 10-12 of the Arduino microcontroller board respectively. At the beginning, all the switches should be in the off position (0). Your program should be in a loop, reading the status of the switches, and displaying the corresponding light sequence output. For implementing the project you will need to use a delay loop. The switches specify the sequence to be generated as follows: Switches 0 0 0, Sequence 0 Switches 00 1, Sequence 1 Switches 0 1 0, Sequence 2 Switches 0 1 1, Sequence 3 Switches 1 0 0, Sequence 4 Switches 1 0 1, Sequence 5 Switches 1 1 0, Sequence 6 Switches 1 1 1, Sequence 7 means Right Turn means Left Turn means Scan means Flashing means Hazard means Back off means Stop means your sequence When Sequence 0 is given, the respective set of lights should turn on for a half a second iod, moving from left to right, in a continuous rotation, until the last light is reached. Each uence should be continuously generated until the user selects another sequence When Sequence I is given, the lights should turn on one at a time i sequence, moving from right to left, in a continuous rotation OO o When Sequence 2 is given, the lights should turn on, two at a time in sequence, moving from the center out to left and right, in a circular rotation. When Sequence 3 is given, all the lights should turn all on, and then all off at the same time When Sequence 4 is given the following sequence should be generated When Sequence 5 is given, the following sequence should be generated 60Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
