Input And Output Parking Detector
Two custom-built IR sensing paths detect vehicle entry and exit at the parking gates. In the physical build the TCRT5000 module is used, while in Proteus the detector is represented with an IREMITTER and PHOTODIODE pair plus transistor conditioning.
When an obstacle is present the conditioned output rises and triggers either the count-up or count-down input. Manual push buttons are included so the circuit can be tested and reset without depending only on the optical path.
Counter And Display Interface
Two CD40110BE decade up/down counters are cascaded with carry and borrow links so the circuit can display occupancy from 0 to 20. The units display handles the first digit and the tens display changes as capacity rises toward the full state.
Each display segment requires its own current-limiting resistor and the displays must be common cathode devices. Pull-down resistors on CLKUP, CLKDN, and RESET keep the logic stable when no signal is present.
LED Status Control Interface
The tens counter outputs feed a 74LS04 inverter and 74LS08 AND gate network to decode the occupancy state into green, yellow, or full-capacity red. The final red indicator is not driven directly from the counter output.
Instead, a transistor and DPDT relay isolate the logic from an NE555 astable timer. That separation protects the counter stage while enabling a visible flashing warning at the 20-car full condition.
LED Status Logic
The final decoded output state is easy to test in the browser demo and easy to verify in the circuit diagrams.
G = 0, F = 1
decoded through inverter logic
relay + NE555 active