Introduction: ESP8266 TV Remote for Homekit

Hi, in this instructable, i want to show my latest project.

ESP8266-03 TV remote board.

Can control with Homekit, or any TCP socket client.

Powered from 5V with micro USB connector.

Step 1: Step 1: the PCB and the Circuit.

The circuit is very simple.

A basic voltage regulator circuit powering the ESP8266-03.

There is only 1 pinout used for the ir led control (GPIO13).

Used a XC6206 voltage regulator, maybe you can use AMS1117 or same with higher output current.

The SMD IR led have surprisingly good range.

Circuit printed to special PCB paper. (better than regular copy papers)

Step 2: Step 2: ESP8266 Code

ESP8266:

For the ESP programming, im used Arduino IDE with sparkfun ESP8266 library.

ESP ir library found on github:

https://github.com/markszabo/IRremoteESP8266

In the code, you need to add your net ssid and password on the proper place (see in the pic)

And need to change the ir value too for your tv type.

In this tutorial im not show again how to get you tv remote ir codes, here is my old tutorial link for that (from 3:13):

Homekit:

There is a previous homekit tutorail too, so im not repeat myself, there is the link:

https://www.instructables.com/id/Raspberry-Pi-2-Hom...

Im created a new accessory for the tv remote (just copy of a light accessory) and added reference to call the tvonoff.py file. This file control the tv. (see the pic).

There is the link for the files (homekit accessory js, homekit py, ESP arduino code):

https://drive.google.com/file/d/0B6GR9Hj5Ut61Z0dYW...

Upload the .ino file to your ESP with arduino IDE

Copy the .py file to the homekit HAP-NodeJS folder

Copy the .js file to the homekit HAP/NodeJS/accessoires folder.

Don't forget to change the ESP ip address in the python file.

Check the youtube video for testing.

Thanks: Imre

Comments

author
DanieleT15 (author)2017-02-02

Why do you need the Raspberry Pi? Can't you just implement a HomeKit Server on the ESP8266 directly?

author
christopher_a (author)2016-12-08

This is awesome- thanks for sharing. Do you have a parts list for the build? Where can I get the PCB etching file?

About This Instructable

20,301views

151favorites

License:

More by planetleak:iPhone Touch ID windows loginESP8266 TV remote for HomekitRaspberry Pi 2 Homekit - from zero to Hey, Siri (Updated)
Add instructable to: