Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I dont understand how to write a program that when using a 3-dip switch connected to the Arduino. Make a program that is like sequential

image text in transcribed
image text in transcribed
image text in transcribedI dont understand how to write a program that when using a 3-dip switch connected to the Arduino. Make a program that is like sequential tail lights.
Lab Project Description In this lab project, you have to write a program in C language for the Arduino microcontroller, that uses the DIP switches to provide input and the set of eight LED available in the prototyping board (Figure 1) to act as a set of intelligent lights for a car. For this lab you will have to write a comprehensive report Background 8-LED' s and 3-DIP switches that will be connected to the Arduino microcontroller board are internally connected to Port B and Port H 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 write a delay loop. The switches specify the sequence to be generated as follows: S2SiSo Switches 000, So Switches 00 1,S Switches 010, S2 Switches 011, S Switches 1 0 0, S Switches 1 0 1, Ss Switches 1 1 0, S6 Switches 11 1, S7 means Right Turn means Left Turn means Scan means Flashing means Hazard means Back off means Stop means your sequence When So is given, the respective lights should turn on for a half a second period, moving rom left to right, in a continuous rotation, until the last light is reached. Each sequence should continuously generated until the user selects another sequence Lab Project Description In this lab project, you have to write a program in C language for the Arduino microcontroller, that uses the DIP switches to provide input and the set of eight LED available in the prototyping board (Figure 1) to act as a set of intelligent lights for a car. For this lab you will have to write a comprehensive report Background 8-LED' s and 3-DIP switches that will be connected to the Arduino microcontroller board are internally connected to Port B and Port H 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 write a delay loop. The switches specify the sequence to be generated as follows: S2SiSo Switches 000, So Switches 00 1,S Switches 010, S2 Switches 011, S Switches 1 0 0, S Switches 1 0 1, Ss Switches 1 1 0, S6 Switches 11 1, S7 means Right Turn means Left Turn means Scan means Flashing means Hazard means Back off means Stop means your sequence When So is given, the respective lights should turn on for a half a second period, moving rom left to right, in a continuous rotation, until the last light is reached. Each sequence should continuously generated until the user selects another sequence

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago