Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started