ESP8266 TV Remote for Homekit

30,592

166

5

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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

Share

    Recommendations

    • Indoor Lighting Contest

      Indoor Lighting Contest
    • Make It Fly Challenge

      Make It Fly Challenge
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    5 Discussions

    0
    None
    DanieleT15

    2 years ago

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

    2 replies
    0
    None
    diy_blokeDanieleT15

    Reply 1 year ago

    I presume you already found your answer, but in case you didnt, the answer is "NO".

    0
    None
    christopher_a

    2 years ago

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