Describe
An Apple Watch and iphone app for controlling any infrared device. The iOS app sends an HTTP request to one or more Arduino with an Ethernet board. Arduino is parsing an HTTP request and sending an infrared signal. The Arduino code is based on the Irremote Library (https://github.com/shirriff/Arduino-IRremote). I use a triple infrared emitter to send infrared signals to multiple devices.
Detailed
Problems encountered:
I need to use 5 different remote controls to control my media device!
Solution:
I built an Apple Watch/iphone app and Arduino device to control all my infrared devices!
Project:
The project is divided into two parts:
1. Arduino device with Ethernet board and IR LED
2. iphone app with Apple Watch extension
Arduino:
I am using an Arduino UNO board with an Ethernet board and an infrared LED. The program has been compiled to receive the HTTP command and parse it into an infrared signal.
Examples of HTTP commands:
Http://<arduino ip>/send?p=1&c=2fd48b7&l=32&
The command will send a power signal to my Toshiba TV.
There are 3 parts of the command:
- p: Protocol (1 is NEC IR protocol)
- c:16 binary code
- l: Length
I'm using the Irremote Arduino library to send infrared signals (HTTPS://GITHUB.COM/SHIRRIFF/ARDUINO-IRREMOTE)
IPhone app:
I have developed an iphone app as a remote user interface. You can add and edit devices in your app's settings.
I gave each device a name that controls device and device introductions via the Arduino IP.
Device description contains the code for the device (power, mute ... Information I have protocol information for each code, hex code and length.
So, when I press the power button on the Toshiba TV, the app knows how to build HTTP commands for this feature.
Users can make changes to device control in the app's device selection menu.
The app has an Apple phone extension, so the user can use the watch to control the device.
Component
1 * Arduino Uno
1 * Arduino Ethernet Board
1 * IR LED
I'm using a triple infrared emitter line to send signals to multiple devices.
1 * Apple Phone
1 * iPhone
Thanks for reading!
Translated from: Https://hackaday.io/project/5894-apple-watch-ir-remote-with-arduino
Wiznet Official website: http://www.iwiznet.cn
Wiznet Public Platform:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Remote IR control of Apple Watches with Arduino