Write an arduino program using the if

Assignment Help Basic Computer Science
Reference no: EM131237649

Note: For all exercises, write a multi-line comment at the top of the program. Include on the first line your name, student number and date. Include the unit # and ex# on the second line. And on the third line, include a description of the program. Write single line comments generously throughout the program to explain sections of the program, what they do.

Remember: Comments make it easier to understand the code you wrote for others and for yourself when you re-visit the program in the future.

1. Write an Arduino program using the IF / ELSE statement to turn an LED at pin 3 on when a pushbutton connected at pin 9 is pressed, similar to Fig. 1 and Fig. 2. And the LED is off if the pushbutton is not pressed.

2. Write an Arduino program using the IF / ELSE IF statement to turn an LED at pin 5 on when a pushbutton connected at pin 11 is pressed, similar to Fig. 1 and Fig. 2. And the LED is off if the pushbutton is not pressed.

3. Write an Arduino program using the IF / ELSE IF statement to turn an LED at pin 7 on and off 7 times with a delay of 0.7 seconds when a pushbutton is pressed at pin 1. The LED is off when the pushbutton is not pressed.

Reference no: EM131237649

Questions Cloud

What kind of rock is produced at great depths : What is often the most interesting characteristic of sedimentary rocks? How does temperature and pressure change with depth in the Earth? What kind of rock is produced at great depths?
Analyze factor that will affect demand and prices of product : Analyze any comparative advantages and international trade opportunities. Explain the factors that will affect demand, supply, and prices of that product.
Why are sedimentary rocks the most important rocks for human : Why are sedimentary rocks the most important rocks for humans? Distinguish between detrital and chemical sedimentary rocks. Distinguish between a stalactite and a stalagmite. (How can one remember?)
List several physical characteristics of sedimentary rock : Name a famous one in the United States. List several physical characteristics of sedimentary rock.
Write an arduino program using the if : Write an Arduino program using the IF / ELSE IF statement to turn an LED at pin 7 on and off 7 times with a delay of 0.7 seconds when a pushbutton is pressed at pin 1. The LED is off when the pushbutton is not pressed.
What two factors determine the viscosity of magma and lava : Distinguish between discordant and concordant igneous rock bodies. What two factors determine the viscosity of magma and lava? Describe how flood basalts have changed the landscape of many continents.
What are three products of a volcano : Name a common igneous rock that is an example of each texture. Distinguish between discordant and concordant igneous rock bodies. What are three products of a volcano?
How are intrusive and extrusive igneous rocks classified : Distinguish between magma and lava. How are intrusive and extrusive igneous rocks classified?
What is the characteristic cleavage of mica : What is the characteristic cleavage of mica? Define the term rock. What is the study of rocks called? Name the three basic types of rocks, and briefly state the process by which each type is formed.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are prototyping''s advantages and disadvantages?

What are prototyping's advantages and disadvantages?

  What major problem do you see with this method

What major problem do you see with this method?

  Two problems in lisp

1. Define a function foo(A,L), where A is an integer and L is a list that will remove each A in L. This is a shallow function.

  Prepare a project task list to include all the detailed task

You are the data transformation specialist for the first data warehouse project in an airlines company. Prepare a project task list to include all the detailed tasks needed for data extraction and transformation.

  Show that the frictional relationship between belt tensions

Show that the frictional relationship between the belt tensions, the coefficient of friction , and the angular contacts and for the V-belt is . T2 = T1emb/sin(a/2)

  Health insurance portability and accountability act

The case described in the Introduction is not atypical, even with as much emphasis as there is on information security; it is a good example of where an organization has violated the HIPAA and/or state laws.

  How well does the number of hops correlate

How well does the number of hops correlate with geographical distance?

  What is probability that one of students will beliving

What is the probability that one of the students will beliving on campus given that he orshe is from out of state?

  Determine which resumes are chosen for further scrutiny

determine which resumes are chosen for further scrutiny. Is such screening fair to applicants? Why or why not? Justify your answers using examples and reasoning.

  Write the algorithm to compute compound interest

write the algorithm to compute compound interest

  Change font and font size

500 words with a bibliography summary must include all of the following topics: (Microsoft 2013)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd