1) In this question you shall be providing the C code for an AVR based Door...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) In this question you shall be providing the C code for an AVR based Door Controller. The functionality is provided below: a) A door sensor is connected to Pin 0 of Port C, and an LED is connected to pin 1 of Port C. A LOw value from the door sensor signals that door is open. Your controller should monitor the door sensor such that when the door opens, it turns on the LED. The LED switches OFF immediately as the door is closed. The name of this LED is OPEN_LED. b) Your Door Controller should also keep a record of count of the number of times the door is opened. c) When it detects that door has been opened X" number of times it switches ON an LED connected to Pin 2 of Port C. The name of this LED is DOOR_Limit_LED. Note: X - 60 if your Roll No. is ODD numbered & 70 if your Roll No. is EVEN numbered. d) There is a push button connected to Pin 3 of Port C. When you press this button, the door openin count is reset to ZERO. Marks Distribution [4+16+8 = 28 Marks] Block Diagram . Correct Functionality of a,b,c & d .. 16 Marks Use of Interrupts and Timers . 04 Marks 08 Marks 1) In this question you shall be providing the C code for an AVR based Door Controller. The functionality is provided below: a) A door sensor is connected to Pin 0 of Port C, and an LED is connected to pin 1 of Port C. A LOw value from the door sensor signals that door is open. Your controller should monitor the door sensor such that when the door opens, it turns on the LED. The LED switches OFF immediately as the door is closed. The name of this LED is OPEN_LED. b) Your Door Controller should also keep a record of count of the number of times the door is opened. c) When it detects that door has been opened X" number of times it switches ON an LED connected to Pin 2 of Port C. The name of this LED is DOOR_Limit_LED. Note: X - 60 if your Roll No. is ODD numbered & 70 if your Roll No. is EVEN numbered. d) There is a push button connected to Pin 3 of Port C. When you press this button, the door openin count is reset to ZERO. Marks Distribution [4+16+8 = 28 Marks] Block Diagram . Correct Functionality of a,b,c & d .. 16 Marks Use of Interrupts and Timers . 04 Marks 08 Marks
Expert Answer:
Answer rating: 100% (QA)
include include include include include remoteh unsigned c... View the full answer
Related Book For
Probability and Statistics
ISBN: 978-0321500465
4th edition
Authors: Morris H. DeGroot, Mark J. Schervish
Posted Date:
Students also viewed these programming questions
-
In this question you will derive a simple Laffer curve, which relates tax revenue to the tax rate. Consider two simple labour supply and labour demand curves: Demand: w = b cL Supply: w = al Where w...
-
In this question you will need to complete the boxes for a T4 for Marijke using some of the following information. Enter your answers in the grid provided below the copy of the T4. This would be her...
-
In this question you are required to design a cylindrical tank with a capacity of 36 m 3 , while minimising the cost. The tank will have an open top, and can be at most 6 m high. The material for the...
-
Andrew owns a commercial office building that is insured under three property insurance contracts. He has $100,000 of insurance from Company A, $200,000 from Company B, and $200,000 from Company C....
-
It is necessary to deliver 5 L/min of a water-glycerol solution (sp gr. = l.l ; v = l.03 10-5 m2/ sec) under a pressure head of 50 mm Hg. A glass tube is used (e = 0 .003 mm). Determine the tube...
-
A company manufactures three-speed, five-speed, and ten-speed bicycles. Each bicycle passes through three departments: fabrication, painting & plating, and final assembly. The relevant manufacturing...
-
The Arrow-Pratt relative risk aversion coefficient is \[\mu(x)=\frac{x U^{\prime \prime}(x)}{U^{\prime}(x)} .\] Show that the utility functions $U(x)=\ln x$ and $U(x)=\gamma x^{\gamma}$ have constant...
-
Warf Computers, Inc., was founded 15 years ago by Nick Warf, a computer programmer. The small initial investment to start the company was made by Nick and his friends. Over the years, this same group...
-
Find the present value for the amount given in the table. Amount $3977.23 Nominal Rate 7.4% Frequency of Conversion semi-annually Time 14 years The present value is $ (Round to the nearest cent as...
-
Combustion in a diesel engine may be modeled as a constant-pressure heat addition process with air in the cylinder before and after combustion. Consider a diesel engine with cylinder conditions of...
-
In 1990, John Deere is looking to acquire a company specializing in developing artificial intelligence (AI) assisted agricultural machinery. A potential target is A-Eye, Inc., which has two...
-
An impulse of 2 . 1 N s directed south is imparted on a tennis ball with mass 6 0 g . If the ball had a velocity of 1 5 m / s north before contact, what is the velocity of the ball after contact ?
-
1. A child attaches a 1 5 . 5 cm string to a 2 5 g ball and begins twirling it around his head. He twirl it faster and faster. If the string can withstand 9 5 newtons of force before it breaks, how...
-
Red blood cells can often be charged. Consider two red blood cells with the following charges: 1 6 . 6 pCand + 4 8 . 6 pC . The red blood cells are 3 . 7 0 cm apart. What is the magnitude of the...
-
In scenario A, the formula to calculate the future value after 20 years is indeed Ct = PV (1 + r)20. This formula considers 20 compounding periods because the interest is applied annually. Each year,...
-
A partnership has the following capital balances: Germanese, Capital $640,000 Arent, Capital $250,000 Vertus, Capital $115,000 Profits and losses are currently split 10:7:3 Ryan invests $300,000 to...
-
4. Kathy notices smoke coming out from under the hood of her car. She has the car towed to a mechanic, who determines that a valve cover gasket is leaking. She instructs him to make the necessary...
-
With your classmates, form small teams of skunkworks. Your task is to identify an innovation that you think would benefit your school, college, or university, and to outline an action plan for...
-
Treat the posterior distributions conditional on the first 10 observations found in Exercise 17 as a prior and then observe the 20 additional observations in Exercise 16. Find the posterior...
-
Let F1 be defined as in Eq. (12.3.7). Let U have the uniform distribution on the interval [0, 1]. Prove that F1(U) has the c.d.f. in Eq. (12.3.6).
-
Rutherford and Geiger (1910) counted the numbers of alpha particles emitted by a certain mass of polonium during 2608 disjoint time periods, each of which lasted 7.5 seconds. The results are given in...
-
The position of a particle undergoing simple harmonic motion is given by \(x(t)=20 \cos (8 \pi t)\), where \(x\) is in millimeters and \(t\) is in seconds. For this motion, what are the (a)...
-
Fill in the blanks to make the following statements correct. a. It is difficult to compare two or more data series when absolute numbers and different units are used. For that reason we construct...
-
Fill in the blanks to make the following statements correct. a. The term quantity demanded refers to ___________ purchases by consumers, whereas quantity exchanged refers to ___________ purchases by...
Study smarter with the SolutionInn App