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

1 Expert Approved Answer
Step: 1 Unlock

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

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 Electrical Engineering Questions!