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 00 to 30. The units display handles the first digit and the tens display changes as capacity rises through the warning range and into the reset-at-30 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 g, f, and e feed a 74LS04 inverter and 74LS08 AND gate network to decode the occupancy state into green, yellow, flashing red, and reset behavior for the 00-to-30 design.
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 across the 20-29 range before the system resets at 30.
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, E = 1
decoded through inverter logic
relay + NE555 active
reset output active