This document describes an automated railway gate controller project that uses infrared transmitters and receivers to automatically open and close railway gates based on the presence of an approaching train. When the train approaches the first reference point, the gate closes, and when the train passes the second reference point, the gate opens. The system utilizes amplitude shift keying modulation at 434MHz and a baud rate of 4800bps. An AT89S8253 microcontroller controls an IR transmitter LED and receiver to open and close the gate motor as trains pass through. The system aims to eliminate human error at unmanned railway crossings and reduce accidents.