Descriptive narrative
An Apple Watch and iphone app for controlling random infrared devices.
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!
How to resolve:
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. Ability to 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 includes code for the device (power, mute ...) Information I have protocol information for each code, hex code and length.
So, when I press Toshiba TV's power button. The app will know 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 site: http://www.iwiznet.cn
Wiznet Public Platform:
Remote IR control of Apple Watches with Arduino