Question: Write codes for the following task Q3. CTC mode Make a person counter. On each person entering the room, a positive edge can be sensed
Write codes for the following task
Q3. CTC mode Make a person counter. On each person entering the room, a positive edge can be sensed using any pin of the controller. After 10 counts, an LED is turned on, it remains so for 250 ms (assuming 1 MHz clock) and then it turns off. The process is repeated after every batch of 10 persons entering the room. You can think of it as a way to limit large gathering during the COVID crisis and the LED signal as some door closing signal etc.
Step by Step Solution
3.52 Rating (166 Votes )
There are 3 Steps involved in it
To create a simple person counter with an LED indicator that activates every time 10 people enter a room you can use an 8bit microcontroller such as a... View full answer
Get step-by-step solutions from verified subject matter experts
