Adding an IR socket to non-IR enabled devices
Think, what if you want to control a device that hasn't any built-in infrared receiving functionality. Fortunately, you can do this by using an infrared socket. An infrared socket is a pluggable device that can be plugged into a electrical wall socket. Then, you can plug your electrical device into it. In addition, the IR Socket has a simple IR receiving unit, and you can attach it to a place where the IR signal can be received properly.
The following image shows the frontal view of the IR socket:
The following image shows the side view of the IR socket:
A generic type of IR socket comes with a basic remote control with a single key for power on and off:
Before you proceed with this project, trace the IR raw code for the power button of your remote control.
Copy the Arduino sketch,
B04844_08_05.ino
, from the sample code folder ofChapter 8
, and paste it to...