The FX Audio D802 (amazon link) is a small class D amplifier manufactured by FX Audio. One nice feature is that the amp can be controlled via an included small infrared remote.
Many devices (for example the Chromecast with Google TV) come with a remote that supports a pre-set list of devices for infrared remote control. You configure it by picking the make and model of the TV, amp, or soundbar you want to control.
Being a device from a non-mainstream manufacturer, this leaves devices like the FX Audio D802 out in the cold.
This Arduino sketch solves this problem by enabling you to remote-control the FX Audio D802 using "foreign" remote control commands. -- In its current configuration (that I use in conjuction with the aforementioned Chromecast) it recognizes the Volume Up, Volume Down and Mute commands intended for a Panasonic sound bar. -- When such commands are received, the corresponding NEC command codes (that I captured with this sketch as well using the original remote that came with the amp) are emitted instead, hence enabling you to remote-control the FX Audio D802 as if it were a Panasonic sound bar.
If any other infrared command is received it is passed through from the receiver to the transmitter (so the original remote that came with the amp will still work).
- I used one of these NodeMCU boards.
- For infrared receivers/transmitters I went with a pair of these.
- Since the Arduino and the transmitter are inside a cabinet (where the amp is), I also used a ~5ft long ethernet cable to connect the IR receiver to the NodeMCU board when placing it outside the cabinet.
- You want to make sure that there is NO direct line of sight between the amp and the remote you are using (ie: all commands are passed through the IR Translater/Repeater). Otherwise controlling the amp will be unreliable.
- There is a newer version fo the FX Audio D802 available (D802C) that also supports Bluetooth. I do not know whether this version of the amp uses the infrared control commands as the model that I have, so you might have to modify the sketch.