Abstract: This research work describes the design and application of an automatic train detection and gate control system using the ATmega328P microcontroller and Passive Infrared (PIR) motion ...