Task: For your formal report you are required to design a microcontroller-based system, to monitor the usage of a laboratory at your university. The hardware system will be based on the ATMEL development board which is used in our laboratory.
You will use the switches as inputs to detect students coming into the laboratory, and those coming out of the laboratory.
You will use the output LEDs to indicate the count representing the number of students in the lab.
You may assume that two sets of photo-transmit/receive sensors are spaced 30cm apart as shown in the diagram below. Each sensor will indicate a logical '1' every time that an object is detected. If sensor A detects an object before sensor B, the student is entering the lab. Conversely, if sensor B detects an object before sensor A, the student is leaving the lab.