Book Image

Internet of Things with Arduino Blueprints

By : Pradeeka Seneviratne
Book Image

Internet of Things with Arduino Blueprints

By: Pradeeka Seneviratne

Overview of this book

Table of Contents (15 chapters)
Internet of Things with Arduino Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 infrared socket—front view

The following image shows the side view of the IR socket:

The IR socket side view

A generic type of IR socket comes with a basic remote control with a single key for power on and off:

The IR remote control for The IR socket

  1. Before you proceed with this project, trace the IR raw code for the power button of your remote control.

  2. Copy the Arduino sketch, B04844_08_05.ino, from the sample code folder of Chapter 8, and paste it to...