Arduino and Android Home Integration (2013) YouTube Video Link: http://www.youtube.com/watch?v=3vkgXsmiQMw
This code was originally used to program an ATmega328 to control relays and transmit IR messages. Communication with various device protocols was achieved.
This is another project's video that focuses only on the IR aspect of the Arduino and Android Home Integration project. https://www.youtube.com/watch?v=JFMIR_jBmgQ