I would then suggest to use the IR receiver using interrupt-based control (since the IR protocol can trigger the interrupt, then one can simply read the code). Thus even a simple 5$ device can perform autonomously whilst also allowing IR-based control. For a code example, see this link... I plan to add an IR receiver and a few extra connections for bump sensors, light sensors etc.