Question: Course: Microprocessor and Microcontroller P lease solve as soon as possible. Q.No.3 Consider a smart Lecture Room having two separate doors for entry only and

 Course: Microprocessor and Microcontroller Please solve as soon as possible. Q.No.3

Course: Microprocessor and Microcontroller Please solve as soon as possible.

Q.No.3 Consider a smart Lecture Room having two separate doors for "entry only" and "exit only". When a first person (teacher/student) enters the room, lights become ON and a counter is incremented. When a person leaves the room, the counter is decremented. If the counter becomes zero, i.e. no person in the room, lights become OFF automatically. Take care of value of the counter. It cannot be negative. Write an interrupt-based C++ program using INTO and INT1 for AVR ATMega328 microcontroller in Arduino environment to display the number of persons in the room on Port C. For INTO and INT1 use falling edge. [CLO-4] [15]

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 Databases Questions!